Project

Profile

Help

Story #5975

closed

As a user I can set 'history' on any repository type

Added by dkliban@redhat.com over 4 years ago. Updated over 3 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Users should be able to limit how many old repository versions are kept.

pulpcore can provide this feature by adding a 'history' field to the Repository model. The default value should be 0 - keep all repository versions. The RepositoryVersion context manager can then remove old version after calling finalize_new_version()[0]. Two use cases should be covered:

User set history before a repository has reached the value of history.
User set history after a repository has reach the value of history.

In both cases the next time a new repository version is created, only the history number (or less) of repository versions remains.

[0] https://github.com/pulp/pulpcore/blob/da3a395efdfd9906b7761ea228d82cf43d6b7cbf/pulpcore/app/models/repository.py#L717

Actions #1

Updated by dkliban@redhat.com over 3 years ago

  • Status changed from NEW to CLOSED - WONTFIX

We will not be implementing this feature in the near future.

Also available in: Atom PDF