On Apr 18, 2011, at 8:59 AM, Sergiu Dumitriu wrote:
On 04/13/2011 04:37 PM, Marius Dumitru Florea wrote:
Hi devs,
Do we have a specification for what a tag is inside XWiki? On
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tag+Application
tags are defined as keywords but no constraints are specified.
I'd like to enforce this two constraints on tags:
* tags can't have leading and trailing white space characters
+1.
* tags' case is saved but case is ignored
when comparing two tags (once
you defined a tag "news" you can't define a new tag "News"; the
existing
tag is reused; tag's case is used only for display)
+0.
To answer Vincent's problem, changing the case of a tag could be done
via the tag rename.
Yes I know but I didn't test if it works with case sensitivity.
What would happen with case sensitivity?
For example, renaming http into HTTP while Http exists, should Http be
changed to HTTP as well, or only exact, case-sensitive matches of http
be renamed?
Good question, behavior to be decided.
Thanks
-Vincent
Optionally, we could enforce that tags can't
contain white spaces.
-1.
> WDYT?
>
> If no one is against it then I'd like to change the UI to apply these
> constraints.