Need to export blueprint-branch links

Bug #690712 reported by Thierry Carrez on 2010-12-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
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) on 2010-12-15
Changed in blueprint:
status: New → Triaged
importance: Undecided → Low
tags: added: api trivial
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 ?

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
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) on 2011-02-02
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant) on 2011-02-03
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers