Uploaded image for project: 'Repository Tools'
  1. Repository Tools
  2. MGNLTOOLS-87

Remove empty folders in mgnlVersion workspace

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • None
    • None
    • 3

      When calling delete content, version of content is also deleted (introduced in 5.5 too, MAGNOLIA-6784: https://git.magnolia-cms.com/projects/PLATFORM/repos/main/browse/magnolia-core/src/main/java/info/magnolia/cms/core/version/MgnlVersioningNodeWrapper.java#111). So there are many many empty folders in version workspace now.

      Solution: We could improve Purge Version Command to prune empty version folders

      Step to reproduce:

      • Create page with name 'test' in pages app
      • Publish that 'test' page
      • Check version of it is created in JCR-Browser app/magnolia-mgnlVersion
      • Delete 'test' and publish deleted- page in pages app
      • Open JCR-Browser app/magnolia-mgnlVersion and see the 'test' version is gone but there are remaining empty folders nodes

        Acceptance criteria

              Unassigned Unassigned
              oanh.thai Oanh Thai Hoang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:

                  Task DoD