Problem/Motivation
You can configure by the user interface the tracked content types with his minimum number of revisions to keep, the minimum age of revisions to delete and when to delete the revisions but this is not possible through a drush command.
Proposed resolution
We need something like this:
Track the content type article with 50 revisions to keep having a minimum age of 1 month and deleting after 15 days of inactivity.:
drush ndr-track article 50 1 15
Note: Take in count that the times values for the minimum age of revisions to delete and when to delete the revisions are managed by the commands drush nrd-when-to-delete-time and drush nrd-set-time described in #2899740: Drush command to configure time options to know when the revision should be deleted and #2899066: Drush command to configure frequency with which to delete revisions while cron is running. So here we need to validate that the params have valid values.
Remaining tasks
Implement the code.
User interface changes
None.
API changes
A new drush command is added:
drush nrd-track
Data model changes
None.
Issue fork node_revision_delete-2911851
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
adriancidComment #3
adriancidComment #4
adriancidComment #6
zarpele commentedComment #7
zarpele commentedComment #9
zarpele commentedComment #10
rajeshreeputraComment #12
adriancidThanks