Cannot delete a branch whose recipe build is referenced by a sourcepackagerelease
Bug #624815 reported by
Aaron Bentley
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Aaron Bentley |
Bug Description
Deleting a branch requires deleting or NULLing every reference to it. This means deleting recipes, and therefore, deleting recipe builds. However, deleting recipe builds doesn't NULL the reference from a sourcepackagere
The result is an oops like: OOPS-1699EC1641
IntegrityError: update or delete on table "sourcepackager
Related branches
lp:~abentley/launchpad/safe-delete-recipe-build
- Paul Hummer (community): Approve
-
Diff: 71 lines (+31/-1)3 files modifiedlib/lp/code/model/sourcepackagerecipebuild.py (+5/-0)
lib/lp/code/model/tests/test_sourcepackagerecipe.py (+15/-1)
lib/lp/code/model/tests/test_sourcepackagerecipebuild.py (+11/-0)
description: | updated |
Changed in launchpad-code: | |
assignee: | nobody → Aaron Bentley (abentley) |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad-code: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
A potential workaround would be to delete the PPA the release was published in