Problem/Motivation

It would be great to be able to alter the getCandidatesRevisions query, along the same lines as what was done for the getCandidatesNodes query in https://www.drupal.org/project/node_revision_delete/issues/2905912.

This could be helpful in complex workflows with different "published" states.
For example, a workflow might have a "pre-published" moderation state whose revisions should never be deleted.

Proposed resolution

Add the following tags to the sub-query:
- 'node_revision_delete_candidate_revisions'
- 'node_revision_delete_candidate_revisions_' . $content_type

Remaining tasks

- add tags
- write tests

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

semiaddict created an issue. See original summary.

semiaddict’s picture

Assigned: semiaddict » Unassigned
Issue summary: View changes
Status: Active » Needs review

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

adriancid’s picture

Status: Needs review » Fixed

Thanks

adriancid’s picture

Status: Fixed » Closed (fixed)

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