-
Notifications
You must be signed in to change notification settings - Fork 56
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
Smarter cleaning rules for packages with SemVer #184
base: main
Are you sure you want to change the base?
Conversation
- updated SDK in global.json - validated regression and unit tests
- added new in memory package database
@robford123 Hey Rob, any chances you could look at integrating the PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some thing are on the todo before we can merge this.
Why did you remove so many lines in the tests? Better would be to create a complete new test file for the smart cleaning only.
/// If this is set to a value, it will limit the number of versions that can be pushed for a package. | ||
/// the older versions will be deleted. | ||
/// </summary> | ||
public uint? MaxVersionsPerPackage { get; set; } = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about people, who are currently using this setting? You must set it deprecated/obsolete.
If they are using it currently you should fill the new RetentionOptions
with the value of MaxVersionsPerPackage
. A message in the console should point them to the problem so they can move to the new configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree - I was hoping this PR would be rolled in release before my other one that had the MaxVersionsPerPackage
tests/BaGetter.Core.Tests/Services/PackageIndexingServiceInMemoryTests.cs
Show resolved
Hide resolved
tests/BaGetter.Core.Tests/Services/PackageIndexingServiceInMemoryTests.cs
Show resolved
Hide resolved
tests/BaGetter.Core.Tests/Services/PackageIndexingServiceInMemoryTests.cs
Show resolved
Hide resolved
Co-authored-by: seriouz <[email protected]> Signed-off-by: Erik <[email protected]>
Co-authored-by: seriouz <[email protected]> Signed-off-by: Erik <[email protected]>
Co-authored-by: seriouz <[email protected]> Signed-off-by: Erik <[email protected]>
Smarter cleaning rules for packages
beta
andalpha
this will keepMaxHistoryPerPrerelease
versions for bothbeta
andalpha
.