Skip to content

Improve delete-only-untagged-versions flag and minor bug fix #97

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 3 commits into from
Mar 9, 2023

Conversation

s-anupam
Copy link
Contributor

@s-anupam s-anupam commented Mar 8, 2023

With release v4.0.0, we introduced delete-only-untagged-versions to delete only untagged container versions. This is somewhat equivalent to deleting prerelease versions for other package types.

  • We do not allow specifying num-old-versions-to-delete along with delete-only-pre-release-versions
  • When delete-only-pre-release-versions is true, we default min-versions-to-keep to 0.

delete-only-untagged-versions does not behave in the same way. This is unnecessary inconsistency between two kind of similar flags and this PR aims to fix that.


This also includes a minor bug fix where if two versions have same created_at timestamp (rare), then either could get deleted. Added a logic to sort by ID if created_at timestamp matches

@s-anupam s-anupam requested a review from nishthaGupta March 9, 2023 05:53
@s-anupam s-anupam marked this pull request as ready for review March 9, 2023 05:56
@s-anupam s-anupam requested a review from a team as a code owner March 9, 2023 05:56
@s-anupam s-anupam changed the title Make delete-only-untagged-versions flag behaviour consistent with delete-only-pre-release-versions flag Improve delete-only-untagged-versions flag and minor bug fix Mar 9, 2023
@s-anupam s-anupam merged commit 8c3a64d into main Mar 9, 2023
@s-anupam s-anupam deleted the s-anupam-fix-untagged-flag branch March 9, 2023 10:01
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