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

Add code for revision cleanup #6442

Merged
merged 13 commits into from
Sep 14, 2024
Merged

Add code for revision cleanup #6442

merged 13 commits into from
Sep 14, 2024

Conversation

Gared
Copy link
Member

@Gared Gared commented Jun 9, 2024

This will add two methods for revision cleanup:

  • deleteAllRevisions (copies only the latest version and removes the old database entries)
  • deleteRevisions (deletes all revisions, but keeps the last x revisions of a pad and rewrites the first revision)

Relates to #6194

There are still some TODOs:

  • Remove duplicated code
  • Add config to change behaviour of cleanup (and enable/disable)
  • Test with a lot of revisions (mainly the key revisions)

@github-actions github-actions bot added the Stale No recent activity label Aug 9, 2024
@github-actions github-actions bot removed the Stale No recent activity label Aug 17, 2024
@Gared Gared marked this pull request as ready for review September 10, 2024 15:26
src/node/utils/Cleanup.ts Outdated Show resolved Hide resolved
@Gared Gared merged commit 1ad9418 into develop Sep 14, 2024
37 checks passed
@Gared Gared deleted the feat/add_revision_cleanup branch September 14, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants