Unclear situation after creating an empty branch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Edwin Grubbs |
Bug Description
On staging just now, I created a productseries. Its overview page told me:
Code for this series
You haven't yet told Launchpad where your source code is for [...] series.
I picked the handy "Configure series branch" option on the page. That gives me 3 options: select an existing branch, create a new branch, or mirror a branch from elsewhere. I pick option 2: create an empty new branch. Submit.
Now I'm back on the series page, where it still says "You haven't yet told Launchpad where your source code is" etc. If I follow the "Configure series branch" link again, I can again "create" a new branch with the same name as before—there is no indication that one of the same name already exists. Yet browsing around in the Code section, I find that the branch was indeed registered.
It seems as if this is yet another case where the UI gets confused about branches existing in the database but not being pushed. This is a widespread problem. I think we need to fix this specific instance, but also talk about general improvements for this situation.
Related branches
- Francis J. Lacoste (community): Approve (release-critical)
- Abel Deuring (community): Approve (code)
-
Diff: 183 lines (+80/-16)3 files modifiedlib/lp/registry/browser/productseries.py (+13/-4)
lib/lp/registry/browser/tests/productseries-setbranch-view.txt (+32/-0)
lib/lp/registry/browser/tests/productseries-views.txt (+35/-12)
affects: | launchpad → launchpad-registry |
Changed in launchpad-registry: | |
milestone: | none → 10.04 |
status: | New → Triaged |
importance: | Undecided → High |
Changed in launchpad-registry: | |
status: | Triaged → In Progress |
assignee: | nobody → Edwin Grubbs (edwin-grubbs) |
tags: |
added: qa-ok removed: qa-needstesting |
bug 288645 argues that Launchpad should not allow registering an empty branch, but provide instructions to push. This bug can be considered a duplicate if that is the correct course.