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

New MaxVersionsPerPackage to clean packages #180

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Conversation

ErikApption
Copy link

Added a new optional setting MaxVersionsPerPackage to auto delete packages when there are more than MaxVersionsPerPackage versions. We have been running out of space regularly on our bagetter server and been looking for a system to auto clean.

I added corresponding unit tests, this required adding a InMemoryPackageDatabase implementation. All unit tests do pass.

- updated SDK in global.json
- validated regression and unit tests
- added new in memory package database
@seriouz
Copy link

seriouz commented Sep 4, 2024

@ErikApption Thanks for you contribution! This code looks good to me.
But I do have a concern.
Could you leave the existing unit tests as they are and just add new tests that test package deletion during indexing?
It would also be cool if you could describe the new MaxVersionsPerPackage property in the docs.

@ErikApption
Copy link
Author

@seriouz done - let me know if you need anything else,

Copy link

@seriouz seriouz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thanks for authoring this feature!

@seriouz seriouz merged commit 1f1d37c into bagetter:main Sep 6, 2024
2 checks passed
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