category path uniqueness problem
It seems that the ambiguous category problem has some other manifestations.
-
One situation I have in mind is a primary category node X, child A, grandchild B and another primary category Y with child A and grand child B. Since the system assumes that this is not possible, when I create a new category, this kind of ambiguity should be checked, and a dedicated error message produced if there is an ambiguity.
-
What happens if I create the same category twice? I assume that repeating twice a command of the form
{{#annotcat: add | name=X}} or {{#annotcat: add | name='B', parent='A' }}
will not create two categories of the same name, right? In other words, the repeated command will simply do nothing?
--> No, it will fail the second time. This means it will fail all the way and do nothing.
But what about:
{{#annotcat: add | name='X', hashtag='#1'}} and {{#annotcat: add | name='X', hashtag='#2'}}
? What will happen in such a case? Perhaps the best thing is that if I create again a category that already exists (whether with the same hashtag or not), a dedicated error message should occur.
--> This will not create an error, since the hashtag, if present, must be unique. In other words, when the hashtag is not present, the name of the category must be unique, otherwise it is the hashtag.