Fixed #18409 - command line option to purge signatures#18437
Merged
Conversation
marcusmoore
reviewed
Jan 14, 2026
Collaborator
marcusmoore
left a comment
There was a problem hiding this comment.
Already merged but one minor formatting thing I noticed.
| $acceptances = CheckoutAcceptance::HasFiles()->where('updated_at','<', $interval_date)->with('assignedTo')->get(); | ||
|
|
||
| if (!$this->option('force')) { | ||
| if ($this->confirm("\n****************************************************\nTHIS WILL DELETE ALL OF THE SIGNATURES AND EULA PDF FILES SINCE '.$interval_date.'. \nThere is NO undo! \n****************************************************\n\nDo you wish to continue? No backsies! [y|N]")) { |
Collaborator
There was a problem hiding this comment.
The output of this line is weird because it's wrapped in ".
Suggested change
| if ($this->confirm("\n****************************************************\nTHIS WILL DELETE ALL OF THE SIGNATURES AND EULA PDF FILES SINCE '.$interval_date.'. \nThere is NO undo! \n****************************************************\n\nDo you wish to continue? No backsies! [y|N]")) { | |
| if ($this->confirm("\n****************************************************\nTHIS WILL DELETE ALL OF THE SIGNATURES AND EULA PDF FILES SINCE $interval_date \nThere is NO undo! \n****************************************************\n\nDo you wish to continue? No backsies! [y|N]")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This introduces a command line tool to purge EULA PDFs and signature files that are older than X days to reduce the backup file size and handle general cleanup for very old EULAs.
It's arguable that we might want to add an option to only allow this for users who have been deleted, but I can see several different use-cases.
Fixes #18409