Merge lp:~henninge/launchpad/bug-446160 into lp:launchpad
Proposed by
Henning Eggers
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~henninge/launchpad/bug-446160 |
Merge into: | lp:launchpad |
Diff against target: |
39 lines 2 files modified
lib/lp/translations/model/translationbranchapprover.py (+2/-1) lib/lp/translations/tests/test_translationbranchapprover.py (+17/-0) |
To merge this branch: | bzr merge lp:~henninge/launchpad/bug-446160 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | code | Approve | |
Review via email: mp+13558@code.launchpad.net |
To post a comment you must log in.
= Details =
See bug 446160
This branch fixes the bug by checking the state of an entry before setting it to approved.
== Tests == chApprover
bin/test -vvct TranslationBran
== Demo/QA ==
1. Push a branch with a translation template file to a project on LP.
2. Select that branch as series branch and request a one-time import.
3. Wait for the file to appear in the queue. It should be "Approved". No need for it to wait for it to become "Imported".
4. Set the file to "Deleted" or "Blocked".
5. Change the file and push the branch again.
6. Request another one-time import.
7. The date on the queue entry will change but the state should not change to "Approved" again but remain "Deleted" or "Blocked", as selected in step 4.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: translations/ model/translati onbranchapprove r.py translations/ tests/test_ translationbran chapprover. py
lib/lp/
lib/lp/