MauroDataMapper/mdm-ui

Changing a Folder's parent is using the wrong endpoint which is stopping finalised VFs from being moved

Closed this issue · 1 comments

When changing a folder's parent the UI should NOT be using a standard PUT/update with the body

{"id":"23fc4906-c1a9-43fc-8b8f-7414136ff426","parentFolder":"fc6a86e3-2497-4f81-a790-2fc9de387d71"}

it MUST use the changeFolder endpoint http://localhost/api/folders/{{folder_id}}/folder/{{destination_folder_id}}
if the above endpoint is not used then VersionedFolders cannot be moved around after they are finalised.

There is a corresponding issue to update this endpoint for "root" moves where the destination_folder_id would be null see MauroDataMapper/mdm-core#235.

Use root in the destination_folder_id param to move a folder to the root, otherwise use the UUID of the folder to move the chosen folder into