[CONTEDIT-399] Compatibility and migration Created: 21/Jul/21 Updated: 07/Oct/21 Resolved: 14/Sep/21 |
|
| Status: | Closed |
| Project: | Content Editor |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.1-beta |
| Type: | Task | Priority: | Neutral |
| Reporter: | Laura Delnevo | Assignee: | Oanh Thai Hoang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | VN-Analysis, VN-Implementation, VN-Testing | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1d 2.25h | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Task DoR: |
Empty
|
||||||||||||||||
| Documentation update required: |
Yes
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Epic Link: | i18n Stories App | ||||||||||||||||
| Sprint: | Content Mngmt 12 | ||||||||||||||||
| Story Points: | 5 | ||||||||||||||||
| Description |
|
Compatibility from 2.1 onwards // Release with 6.3
Development Note: https://git.magnolia-cms.com/projects/ENTERPRISE/repos/content-editor/commits?until=refs%2Fheads%2FCONTEDIT-412-draft
Note: create migration step in VH of stories app |
| Comments |
| Comment by Oanh Thai Hoang [ 14/Sep/21 ] |
|
For document note, cc mdrapela, When upgrading stories module to version 2.1-beta or 2.1, all block node in workspace stories will be moved to intermediate node. See the task MigrateBlockToIntermediateParentTask. In case user have another block node in another workspace. They can run the task in groovy app. Here is example groovy script. import info.magnolia.editor.setup.MigrateBlockToIntermediateParentTask import info.magnolia.module.InstallContextImpl import info.magnolia.module.ModuleRegistryImpl import info.magnolia.objectfactory.Components import javax.jcr.Session Session session = MgnlContext.getJCRSession("stories"); task = new MigrateBlockToIntermediateParentTask("stories", "/", "custom"); task.execute(Components.newInstance(InstallContextImpl.class)); session.save(); Explanation of parameters of MigrateBlockToIntermediateParentTask: stories is workspace name, "/" is path, "custom" is name of intermediate node. This is name of multiJcrBlock field. See https://git.magnolia-cms.com/projects/ENTERPRISE/repos/content-editor/browse/stories-app/src/main/resources/stories-app/apps/stories.yaml#555
|