As a user I can set 'history' on any repository type
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(). 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.
Please register to edit this issue