-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add a background job to prune outdated sync tokens #31064
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
Merged
Merged
Conversation
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
Contributor
|
Looks good, but code scanning is complaining a bit :) |
Member
It's merged |
apps/dav/tests/unit/BackgroundJob/PruneOutdatedSyncTokensJobTest.php
Outdated
Show resolved
Hide resolved
Merged
d015e6c to
445a8f0
Compare
Merged
445a8f0 to
cb7a189
Compare
Merged
cb7a189 to
9898a0f
Compare
| $this->setTimeSensitivity(self::TIME_INSENSITIVE); | ||
| } | ||
|
|
||
| public function run($argument) { |
Check notice
Code scanning / Psalm
MissingReturnType
Method OCA\DAV\BackgroundJob\PruneOutdatedSyncTokensJob::run does not have a return type, expecting void
| $this->setTimeSensitivity(self::TIME_INSENSITIVE); | ||
| } | ||
|
|
||
| public function run($argument) { |
Check notice
Code scanning / Psalm
MissingParamType
Parameter $argument has no provided type
Merged
Merged
9898a0f to
8baac0d
Compare
ChristophWurst
approved these changes
Oct 2, 2022
miaulalala
approved these changes
Oct 27, 2022
Contributor
|
/rebase |
We remove all outdated sync tokens, based on their auto-incremented ID. By default we only keep the last 10 000, but this can be configurable. Signed-off-by: Thomas Citharel <[email protected]>
8baac0d to
6f15873
Compare
This was referenced Mar 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3. to review
Waiting for reviews
feature: caldav
Related to CalDAV internals
feature: carddav
Related to CardDAV internals
feature: dav
performance 🚀
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.
We remove all outdated sync tokens, based on their auto-incremented ID.
By default we only keep the last 10 000, but this can be configurable.
Closes #3349
We can add
if #30945 is merged first.