Merge lp:~lifeless/python-oops-tools/prune into lp:python-oops-tools
Proposed by
Robert Collins
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 23 |
Proposed branch: | lp:~lifeless/python-oops-tools/prune |
Merge into: | lp:python-oops-tools |
Diff against target: |
250 lines (+188/-1) 7 files modified
.bzrignore (+1/-0) setup.py (+1/-0) src/oopstools/NEWS.txt (+3/-0) src/oopstools/oops/migrations/0020_add_oops_prune.py (+40/-0) src/oopstools/oops/models.py (+19/-0) src/oopstools/scripts/prune.py (+123/-0) versions.cfg (+1/-1) |
To merge this branch: | bzr merge lp:~lifeless/python-oops-tools/prune |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email:
|
Commit message
Permit pruning of OOPS from the DB that are not referenced by a bug report after a week.
Description of the change
This implements oops pruning building on the pruning present in datedir-repo. The custom code for python-oops-tools, that isn't part of the CLI, is uhm trivial. I've got room to add tests, but they seemed of vanishing utility here so I'm going to throw myself on the mercy of my reviewer.
To post a comment you must log in.
+ oldest_oops = Oops.objects. order_by( 'id')[0]
id isn't used as a criterion anywhere else. Perhaps sort by date?