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

Data retention settings for package registry #20766

Closed
fuero opened this issue Aug 11, 2022 · 3 comments · Fixed by #21658
Closed

Data retention settings for package registry #20766

fuero opened this issue Aug 11, 2022 · 3 comments · Fixed by #21658
Labels
topic/packages type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@fuero
Copy link

fuero commented Aug 11, 2022

Feature Description

The package registry feature should offer settings for data retention for package versions:

  • How long versions are kept,
  • how many versions are kept,
  • globally, per organization, per repo.

The goal is to allow to conserve space without having to manually delete packages.

If that's already possible, I've missed it in the docs - so please point it out to me :-)

Screenshots

No response

@fuero fuero added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Aug 11, 2022
@hypervtechnics
Copy link

And there should be an option using e.g. Regex or a semver parser to semantically select version to retain e.g. only last 5 prereleases

@KN4CK3R
Copy link
Member

KN4CK3R commented Aug 11, 2022

related #20514

@KN4CK3R
Copy link
Member

KN4CK3R commented Nov 2, 2022

Implemented this in #21658.

lafriks pushed a commit that referenced this issue Nov 20, 2022
Fixes #20514
Fixes #20766
Fixes #20631

This PR adds Cleanup Rules for the package registry. This allows to
delete unneeded packages automatically. Cleanup rules can be set up from
the user or org settings.
Please have a look at the documentation because I'm not a native english
speaker.

Rule Form

![grafik](https://user-images.githubusercontent.com/1666336/199330792-c13918a6-e196-4e71-9f53-18554515edca.png)

Rule List

![grafik](https://user-images.githubusercontent.com/1666336/199331261-5f6878e8-a80c-4985-800d-ebb3524b1a8d.png)

Rule Preview

![grafik](https://user-images.githubusercontent.com/1666336/199330917-c95e4017-cf64-4142-a3e4-af18c4f127c3.png)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
fsologureng pushed a commit to fsologureng/gitea that referenced this issue Nov 22, 2022
Fixes go-gitea#20514
Fixes go-gitea#20766
Fixes go-gitea#20631

This PR adds Cleanup Rules for the package registry. This allows to
delete unneeded packages automatically. Cleanup rules can be set up from
the user or org settings.
Please have a look at the documentation because I'm not a native english
speaker.

Rule Form

![grafik](https://user-images.githubusercontent.com/1666336/199330792-c13918a6-e196-4e71-9f53-18554515edca.png)

Rule List

![grafik](https://user-images.githubusercontent.com/1666336/199331261-5f6878e8-a80c-4985-800d-ebb3524b1a8d.png)

Rule Preview

![grafik](https://user-images.githubusercontent.com/1666336/199330917-c95e4017-cf64-4142-a3e4-af18c4f127c3.png)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/packages type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants