Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Flush revisions CLI command/Utility #4851

Open
olivierbon opened this issue Aug 29, 2019 · 4 comments

Comments

@olivierbon
Copy link
Member

commented Aug 29, 2019

It would useful to have a CLI command/Utility to flush revisions when maxRevisions is adjusted mid-project.

As an example, if you decide to set 'maxRevisions' => 10 on a project which didn't have a limit before, all revisions beyond the limit will only get flushed when the entry itself is resaved in the Control Panel.

@gtettelaar

This comment has been minimized.

Copy link
Collaborator

commented Aug 29, 2019

Wouldnt resave/ clear the revisions? Admittedly it's not purpose-built and so a little slower but it should work fine?

@olivierbon

This comment has been minimized.

Copy link
Member Author

commented Aug 29, 2019

Hey @gtettelaar, no it doesn't. Revisions get flushed when a revision is created.

@gtettelaar

This comment has been minimized.

Copy link
Collaborator

commented Aug 29, 2019

@olivierbon Doh! Didn't look at the code but just assumed this would happen during saving in ->getElements()->saveElement().

@michtio

This comment has been minimized.

Copy link

commented Sep 5, 2019

+1 on this tho, deleting entry revisions should be possible or have a dedicated command line exec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.