It shouldn't be possible to link multiple productseries to a sourcepackage in a given distroseries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Unassigned |
Bug Description
The unique constraint specified on the Packaging table is
(distroseries, sourcepackagename, productseries).
I think this should really be (distroseries, sourcepackagename). I don't think it makes much sense to allow linking multiple productseries to a sourcepackage. Since there will be only one active link at a time (otherwise, they'll be different sourcepackagena
The wrong constraint causes problems:
1. SourcePackage.
2. Reload several time the +index page of a sourcepackage with multiple productseries link and you'll get a different one each time. Example: https:/
If the historical trail is important, we should add an active boolean flag (or model that state through the packaging column). And only allow one active link.
Related branches
- Jonathan Lange (community): Approve (db)
- Stuart Bishop (community): Approve (db)
-
Diff: 14 lines (+10/-0)1 file modifieddatabase/schema/patch-2207-09.0.sql (+10/-0)
Changed in launchpad: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in launchpad-foundations: | |
status: | Confirmed → Triaged |
Changed in launchpad-registry: | |
status: | Triaged → In Progress |
Changed in launchpad-registry: | |
assignee: | nobody → Curtis Hovey (sinzui) |
Changed in launchpad-registry: | |
milestone: | 3.1.10 → 3.1.11 |
Changed in launchpad: | |
assignee: | Curtis Hovey (sinzui) → nobody |
This is the underlying cause of bug #352374. I think we can fix that bug by deleting the bad link. But it would be better if this non-sense never happened.