Thoughts about the ID assigned to documents, etc.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Thoughts about the ID assigned to documents, etc.

Now, I've sent about 4 of these to the dev list, and they'll probably
all show up at once in a week. *sigh*

I am a big proponent of the principles of this bug:

I don't think the whole ID scheme currently used should be thrown out,
however, as it might break anyone with an existing XWiki installation
of any size (which I have).

I would like to see the following:
 a) go ahead and use a hash of the name to find an initial ID
 b) increment the number if necessary to ensure it's unique.
 c) stay with that ID, period. Don't change it when something is renamed, etc.

I've been seeing some issues with renames where the name hash
collides, or all of the attachments associated with an ID aren't
updated correctly (so the attachments effectively "disappear"..)

There is no reason to keep the ID associated with a hash of the name,
as the initial lookup is almost always based on the document's name...

I think this is pretty important, especially with document renaming
now possible.

I was talking to Vincent about this, and I'll see if I can find a
patch. This also seems to line up with a Google Summer of Code item:


'Waste of a good apple' -Samwise Gamgee

You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: