Need to export blueprint-branch links

Bug #690712 reported by Thierry Carrez
6
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

Curtis Hovey (sinzui)
Changed in blueprint:
status: New → Triaged
importance: Undecided → Low
tags: added: api trivial
Revision history for this message
Thierry Carrez (ttx) wrote :

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 ?

Revision history for this message
Thierry Carrez (ttx) wrote :

Thanks to leonardr, which pointed me to an uncleared launchpadlib cachedir. The patch works. Will propose a branch soon

Changed in launchpad:
assignee: nobody → Thierry Carrez (ttx)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: none → 11.02
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Gavin Panella (allenap)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.