Problem/Motivation

We have a huge site where multiple content type with revisions enable, I observe that workflow have been migrated previously but some of the moderation state doesn't exits anymore, hence I would request a feature to delete those revisions.

Proposed resolution

Create completely new plugin that handle such revisions automatically.

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

imran1217 created an issue. See original summary.

imran1217’s picture

Status: Active » Needs review
imran1217’s picture

Using combination of plugin provided by this module, we can't delete older draft + keep the revision upto the specified age. Hence created this plugin which will do the work

alexpott’s picture

Status: Needs review » Closed (won't fix)

Hi @imran1217 thanks for your work on this issue. I feel that the situation described here is very specific to your site - where inconsistent changes have occurred. I.e workflows that are in use have been deleted. This should be possible via the UI and is not something this module should handle-out-of-the-box. If you want to create a module on Drupal.org to handle this so you can share your plugin with everyone - great but I do not think that this plugin is in the 90% use-case for the module.

Also as deleting revisions is destructive I encourage you to create an automated test that proves your plugin works.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.