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