Closed aro closed 5 years ago
Explanations in: https://github.com/enonic/xp/issues/6697 Code present both in epic-6649 and issue-6697
For the following page
Here is the Node data part of the VersionNode before and after nodedata-aftermod.json.txt nodedata-beforemod.json.txt
@aro, @ashklianko : Some question regarding the new serialization:
1) The property "config" of Image components has been dropped. Is that on purpose? It has been replaced by a property "caption" with as value the property "caption" of the Image component config. 2) The property "config" of Fragment components has been dropped. Is that on purpose?
If all of this is on purpose, then I will start the dump migration tomorrow. But we will not be able to merge all of this before https://github.com/enonic/xp/pull/6781 is merged, since dump migration is sequential.
@aro, @ashklianko : Some question regarding the new serialization:
- The property "config" of Image components has been dropped. Is that on purpose? It has been replaced by a property "caption" with as value the property "caption" of the Image component config.
- The property "config" of Fragment components has been dropped. Is that on purpose?
Hi Glenn, I removed it on a purpose in spite of it is not mentioned in a task; Config is not needed neither for fragment or image, it is used with components that have a descriptor (layout and part) and a page itself;
What happens if the fragment is a part or layout?
@GlennRicaud Agree with @ashklianko , image and fragment don't have config. I'm not sure about storing the caption. I guess you could say that caption is part of the image config? If we want to keep it. Not sure if it is actually used.
Fragment just points to the content of type "portal:fragment" that contains the fragment components. It doesn't matter if it is part, layout, image or text.
Create an upgrade script to upgrade content nodes created with 6.x that used the tree structure for the page. They should be converted to the new flattened page structure.
TODO: Describe how to do this @GlennRicaud