Need to export blueprint-branch links
Bug #690712 reported by
Thierry Carrez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Thierry Carrez |
Bug Description
Though it's really easy to link and unlink a branch to a blueprint, it's currently very tricky to get the list of branches associated with one blueprint. The only way is to iterate through all branches for a project and look for matching specifications in spec_links, which is not practical.
To solve that, we need to expose a branch_links collection in the specification object.
Related branches
lp:~ttx/launchpad/lp690712
- Gavin Panella (community): Approve
-
Diff: 50 lines (+16/-2)3 files modifiedlib/canonical/launchpad/interfaces/_schema_circular_imports.py (+1/-0)
lib/lp/blueprints/interfaces/specification.py (+7/-2)
lib/lp/blueprints/tests/test_webservice.py (+8/-0)
Changed in blueprint: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: api trivial |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hmm, maybe it's trivial, but I still have been wrapping my head around it :)
IIUC all that's needed should be the attached patch... However when I test it it appears that "linked_branches" is *not* exported (while "dependencies", which is defined in very much the same way, is)
Any clue ?