Hi Pascal,

Very cool demo ! I wish the XWiki core developers  (including me) would 
document features that well !!
This sounds really cool. I have one question:

How do you automatically upgrade an object to the latest version of a 
class ?

I have the feeling that this could make life complex for users for the 
case happening most time (adding properties over time).

I'm wondering if a way to handle this would be to do a merge between the 
class as it was when the object was last created/updated and the way it 
is now. Basically when you save you ask the user if he wants to 
"upgrade" the object of there are any changes to the class definition 
that go beyond adding properties or when the changes have storage impact.

Now this would mean automatic upgrading if changes are only cosmetic 
(which could be different in some cases from the desired effects).

It's great to see people dig into this part of the code.

Ludovic

Pascal Voitot wrote:
> Hello folks,
> finally I found some time to deploy a demo environment and write some
> explanations about my work...
>
> go on http://myxwikidemo.dyndns.org:8080/xwiki and click on "improve class
> properties management" to access the text presentation and the demo guide...
> Sorry for the long text but it also helped me structure my thinking...
>
> it demonstrates how I implemented class versioning in order to better manage
> class properties deletion and consequences on existing objects.
>
> This is a private server so it might be slower sometimes ;)
>
> It's a draft based on the trunk so you might discover bugs I don't even know
> about.
> This is a proof of concept so be indulgent and follow the demo guide to see
> it work with your own eyes :)
>
> If you are interested in this idea, tell me...
> I'm naturally opened to discussion because I may think in the wrong way or
> you may have other ideas...
>
> Anyway,  I had fun digging in XWiki code ;)
>
> Don't hesitate to tell me if you discover big problems!
>
> Have fun
> regards
> Pascal
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
>   


-- 
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to