Skip to content

Cleanup Rules for Packages Should Use "Last Updated" Time for Maven Snapshots #34382

Open
@dianaStr7

Description

@dianaStr7

Feature Description

Right now, Gitea uses the creation time of a package to determine when to delete it via cleanup rules. This works fine for most packages, but it doesn't quite fit how Maven snapshot versions are used. Snapshots often get updated frequently while keeping the same version label (like 1.0.0-SNAPSHOT). So even if a snapshot was created a while ago, it might still be actively used and updated.

That's why it makes more sense to base cleanup decisions on the last updated time instead of when it was first created - at least for snapshots. This way, actively used snapshots aren't deleted just because they were created a long time ago.

Proposed Solution:

  • Allow package cleanup rules to choose whether to use created_at or last_updated_at
  • For snapshot versions, it might even make sense to default to using last_updated_at

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/packagestype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions