Skip to content

Add retain_checkpoints field to Repository#7437

Open
Moustafa-Moustafa wants to merge 1 commit intopulp:mainfrom
Moustafa-Moustafa:feature/retain-checkpoints
Open

Add retain_checkpoints field to Repository#7437
Moustafa-Moustafa wants to merge 1 commit intopulp:mainfrom
Moustafa-Moustafa:feature/retain-checkpoints

Conversation

@Moustafa-Moustafa
Copy link
Contributor

Add a retain_checkpoints field to the Repository model that limits the number of checkpoint publications per repository. When set, older checkpoint publications beyond the limit have their checkpoint flag cleared automatically.

Cleanup is triggered both when retain_checkpoints is updated on an existing repository and when a new checkpoint publication is created.

closes #7428
Assisted-by: GitHub Copilot

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

Add a retain_checkpoints field to the Repository model that limits
the number of checkpoint publications per repository. When set,
older checkpoint publications beyond the limit have their checkpoint
flag cleared automatically.

Cleanup is triggered both when retain_checkpoints is updated on an
existing repository and when a new checkpoint publication is created.

closes pulp#7428
Assisted-by: GitHub Copilot
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.

Add the ability to limit the number of checkpoints per repo

1 participant