[MGNLDATA-232] Migration of Data Item to App doesnt care about the folders Created: 05/Dec/13  Updated: 12/Dec/13  Resolved: 12/Dec/13

Status: Closed
Project: Magnolia Data Module (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: 2.2.1

Type: Bug Priority: Critical
Reporter: Samuel Schmitt Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File data.contacts.folder.xml    
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

In 4.5, when you create a data type, in the dialog you can check a box that will allow to organize your items into folders.

When folders are allowed, the property hierarchy is true under /modules/data/config/types/myDataType.

The migration must care of this property, and :

  • add dataFolder under /modules/data/apps/myDataType/subApps/browser/workbench/nodeTypes
  • add action to create / delete folder


 Comments   
Comment by Samuel Schmitt [ 09/Dec/13 ]

I tested it and it's not correctly working, folders are not displayed.

The problem is that in 4.5, the type of a folder created by the module is

  <sv:property sv:name="jcr:primaryType" sv:type="Name">
    <sv:value>dataFolder</sv:value>
  </sv:property>

So either

  • you should allow the node type dataFolder in the workbench of the app
  • or, update all the node type dataFolder to mgnl:folder in the data workspace.

See attached a export a data type with folder.

Comment by Mikaël Geljić [ 09/Dec/13 ]

Thanks for the live QA, Samuel Indeed since we don't touch anything in workspace content or node-types, we should tie the workbench node-types and actions to the 'dataFolder' node-type, or DataConsts.FOLDER_ITEMTYPE fwiw.

Comment by Samuel Schmitt [ 12/Dec/13 ]

Still not working.
I see the fodlers but I cannot create a new one.

Generated at Mon Feb 12 05:12:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.