lp: link targets should be better detected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Jonathan Lange |
Bug Description
In bug reports, lp: links link to a branch unconditionally. However, if a bzr command line is pasted into a bug as is the case with bug 363082, this is not desirable. Launchpad should check lp: links to see:
* Does it link to a valid branch? Yes, then link it there. No? Then:
* Does it link to a valid bug report? Yes, then link it there. No? Then:
* Do not link it at all.
So, the bzr command line in bug 363082 should link to bug 315707, not to an unknown and non-existent branch named 315707.
Possibly better yet, a lp: target should check for linking to a bug before linking to a branch, since I should think that a branch name of all numbers like a bug report makes little sense.
Changed in launchpad-code: | |
status: | Triaged → In Progress |
Changed in launchpad-code: | |
status: | In Progress → Fix Committed |
Changed in launchpad-code: | |
status: | Fix Committed → Fix Released |
You're right: if the thing following lp: is a number, then it should be linked to a bug report, not a branch. Easily done.