-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Delete expired access logs #5097
Merged
Merged
Conversation
This file contains 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
7 tasks
rgraber
force-pushed
the
TASK-869-group-submissions-better
branch
from
September 17, 2024 12:47
67579ff
to
55b66ea
Compare
converting to draft until the questions about grouping submissions are resolved |
rgraber
force-pushed
the
delete-access-logs-config
branch
2 times, most recently
from
September 30, 2024 13:51
0db95de
to
f3eeb98
Compare
rgraber
changed the base branch from
TASK-869-group-submissions-better
to
TASK-869-group-at-fetch
September 30, 2024 14:13
rgraber
force-pushed
the
delete-access-logs-config
branch
from
October 10, 2024 17:16
4645c51
to
e6bb8ce
Compare
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.
Checklist
Description
Delete access logs older than the configured number of days (defaults to 60). The number of days is configurable in constance.
Notes
Adds a new task to run every day at midnight.
batch_delete_audit_logs_by_id
tasksAdditional changes:
Add the
more-itertools
library so we can easily break up the list of ids into batches of a constant size. Plainitertools
has this functionality in python 3.12, but for the older versions we need themore-itertools
library.The batch size is configurable in settings. It defaults to 1000.
Replaces #5084