Add operation/utility to delete a draft version #15557
jhb-dev
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am currently implementing a custom content approval view that lists all draft versions of documents which are not yet published, including actions to review, discard, and publish individual versions.
While working on this, I noticed that there is no built-in operation or utility to delete a specific version while also ensuring that the latest tag is correctly reassigned in the database for collections with drafts enabled.
Below is the approach I came up with. I would appreciate feedback on whether this aligns with existing patterns or if there is a preferred way to handle this internally. If this is something the team would find useful, I would be happy to contribute it to the codebase.
Beta Was this translation helpful? Give feedback.
All reactions