[Nuxeo-tickets] Re: [Nuxeo Repository] #851: Provide a mean to upgrade flexible documents

Nuxeo Repository trac at nuxeo.com
Wed May 2 17:32:02 CEST 2007


#851: Provide a mean to upgrade flexible documents
--------------------------------------+-------------------------------------
 Reporter:  jmorliaguet               |        Owner:  madarche 
     Type:  enhancement               |       Status:  new      
 Priority:  P1                        |    Milestone:  CPS 3.4.5
Component:  CPSDocument               |      Version:  TRUNK    
 Severity:  normal                    |   Resolution:           
 Keywords:  flexible layouts schemas  |  
--------------------------------------+-------------------------------------
Changes (by madarche):

  * keywords:  flexible layouts => flexible layouts schemas
  * summary:  upgrading flexible documents => Provide a mean to upgrade
              flexible documents

Old description:

> the layout changes done on flexible layouts do not affect already created
> instance.
>
> there should be a way to upgrade documents that contain flexible layouts.

New description:

 The layout changes done on flexible layouts do not affect already created
 instance.

 There should be a way to upgrade documents that contain flexible layouts.

Comment:

 Here is below a proposed implementation :

 A. The layout properties should be read from the original layout instead
 of being duplicated.

 B. The layout widgets properties should be read from the original layout
 widgets, '''except for the fields property''', instead of being
 duplicated.

 C. A batch process shall be created :

   1. to add the new fields in the flexible schemas
   2. to add the references to those new fields in the widgets fields
 property


 A. and B. will help with use cases such as "I have modified a property in
 a widget and my flexible document has not been updated".

 C. will help with use cases such as "With this new version of CPS there is
 a new field that doesn't appear in a widget of a flexible document". C.
 will be costly to run and should be run whenever schemas and layouts
 change.

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/851>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.