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

Show the end of purge versions command execution

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None

    Description

      When running purge versions command you never know when it reaches the end of the execution. It would be very useful to show any kind of progression so that users can be sure it is executed or not.

      There are some debug traces that show progression in methods info.magnolia.tools.commands.VersionStorePurgeCommand.execute(Context) and info.magnolia.tools.commands.VersionStorePurgeCommand.purge(Node). A possible solution would be adding a final log trace informing about the end of the execution right before returning true in line 117.

      info.magnolia.tools.commands.VersionStorePurgeCommand.execute(Context)
             long count = 0;
              while (versionIt.hasNext()) {
                  final Node versionNode = versionIt.next();
                  count++;
                  if (count % 100 == 0) {
                      log.debug("processed {} nodes.", count);
                  }
      
                  purge(versionNode);
              }
              <<<<<<<<<<<<<<<<<<<< HERE
              return true;
      }
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              jayala Jonathan Ayala
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD