Deleting a branch set for translations export generates a OOPS
Bug #522724 reported by
Adi Roiban
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Tim Penhey |
Bug Description
It looks like the Launchpad UI allows me to delete a branch that is currently set as exported for translations , but when it needs to do the actual job it just OOPSes.
It would be nice if LP could inform users they can not delete a specific branch due to the fact it is already set for export.
Another option, would be to acknowledge the setting and ask if the user also want to stop the translation export.
Related branches
lp://qastaging/~thumper/launchpad/fix-deletion-syncUpdate
- Jonathan Lange (community): Approve
-
Diff: 105 lines (+16/-17)2 files modifiedlib/lp/code/model/branch.py (+3/-5)
lib/lp/code/model/tests/test_branch.py (+13/-12)
Changed in launchpad-code: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Tim Penhey (thumper) |
milestone: | none → 10.09 |
Changed in launchpad-code: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Branch deletion should check for all the foreign references before trying to remove the branch (and I believe it does that already for things like MPs, so it just needs extending). It should be safe to unset a translations_branch when branch is being removed, provided we warn users about it.