Merge lp:~abentley/launchpad/upgrade-not-branch-error into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Aaron Bentley | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 13756 | ||||
Proposed branch: | lp:~abentley/launchpad/upgrade-not-branch-error | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
447 lines (+95/-40) 10 files modified
database/schema/security.cfg (+2/-0) lib/lp/code/browser/branch.py (+2/-3) lib/lp/code/interfaces/branch.py (+1/-1) lib/lp/code/model/branch.py (+2/-2) lib/lp/code/model/branchjob.py (+18/-3) lib/lp/code/model/tests/test_branch.py (+7/-8) lib/lp/code/model/tests/test_branchjob.py (+46/-17) lib/lp/code/scripts/tests/test_upgrade_branches.py (+2/-2) lib/lp/scripts/tests/test_garbo.py (+5/-3) lib/lp/testing/__init__.py (+10/-1) |
||||
To merge this branch: | bzr merge lp:~abentley/launchpad/upgrade-not-branch-error | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+72242@code.launchpad.net |
Commit message
NotBranch while upgrading branch is user error, not oops.
Description of the change
= Summary =
Fix bug #823485: NotBranchError raised by upgrade_branches.py script
== Proposed fix ==
Handle NotBranchError as a user error and email to user.
== Pre-implementation notes ==
None
== Implementation details ==
The error notification should go to the user who requested the upgrade, but
until now, the requester was not recorded. Now, BranchUpgradeJo
requires a requester, and various tests are updated to match.
== Tests ==
bin/test -t test_branch -t test_branchjob -t test_upgrade_
== Demo and Q/A ==
Create a branch. Request an upgrade. Immediately delete the contents of the
branch (but don't delete the branch from the database.)
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
database/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/