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.

Command icon 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

adriancid created an issue. See original summary.

adriancid’s picture

Issue summary: View changes
adriancid’s picture

Zarpele made their first commit to this issue’s fork.

zarpele’s picture

Issue summary: View changes
zarpele’s picture

Issue summary: View changes

zarpele’s picture

Status: Active » Needs review
rajeshreeputra’s picture

Assigned: Unassigned » rajeshreeputra

  • adriancid committed 800f12a on node_revision_delete-2911851-2911851-drush-command-to authored by Zarpele
    Issue #2911851: Drush command to configure the tracked content types
    
adriancid’s picture

Status: Needs review » Fixed

Thanks

  • adriancid committed 4b92072 on 8.x-1.x authored by Zarpele
    Issue #2911851: Drush command to configure the tracked content types
    

  • adriancid committed 800f12a on 8.x-1.x authored by Zarpele
    Issue #2911851: Drush command to configure the tracked content types
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.