Merge lp:~jtv/launchpad/bug-872646 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14146 |
Proposed branch: | lp:~jtv/launchpad/bug-872646 |
Merge into: | lp:launchpad |
Diff against target: |
80 lines (+21/-26) 2 files modified
lib/lp/translations/interfaces/translationimportqueue.py (+2/-1) lib/lp/translations/tests/test_autoapproval.py (+19/-25) |
To merge this branch: | bzr merge lp:~jtv/launchpad/bug-872646 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Данило Шеган (community) | Approve | ||
Review via email: mp+79053@code.launchpad.net |
Commit message
Purge Approved translations uploads after half a year.
Description of the change
= Summary =
Hardy's translations import queue still has a few hundred 8-month-old uploads sitting in its Approved queue, because imports for Hardy have long been disabled. They're just noise in the operational graphs, making it look as if there's something wrong with the importer.
== Proposed fix ==
Set an expiry age of half a year for Approved queue entries. See bug 872646 for my reasoning.
Note that expiry counts from last status change (tests recommended below also cover this) so if for whatever reason an ancient upload suddenly gets approved after a long time of sitting in the needs-review queue, it still gets that full half-year period.
== Pre-implementation notes ==
The code change is easy, since expiry policy is data-driven. All I need now is consensus on the policy change, but I'll need to wait for Europe to wake up. My frank expectation is that people will agree in principle, but may want a different expiry age. If so, I don't see a change in the parameter value affecting review.
== Implementation details ==
The tests for expiry policy hard-coded some statuses. Fully generalized this so that (1) it's more robust against future change and (2) you don't need to read through the repetition to recognize that it does the same thing for multiple statuses.
== Tests ==
{{{
./bin/test -vvc lp.translations
}}}
== Demo and Q/A ==
Run the translations import queue gardener (cronscripts/
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
Your lint doesn't include all the files, so please run it over the test to ensure it's fine as well. :)
As for the change, it's good, and I don't mind the expiry time you selected: this should affect only unsupported distributions nowadays, so six months is probably as good as any other period.