API lacks easy way to get series information on branches/merge proposals

Bug #646044 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Currently, if a branch or a review, is targetted to a specific series, there is no direct link to that series, in the branch or branch_merge_proposal APIs. Instead one must do something similar to the following code, to be able to get the information:

        try:
            series_name = branch.bzr_identity.split('/')[1]
        except IndexError:
            series_name = u'trunk'

        series = project.getSeries(name=series_name)

It would be nice if there was a direct series_link on at least branches, if not branch_merge_proposals as well, to be able to easily get that information.

Tags: lp-code
Revision history for this message
Aaron Bentley (abentley) wrote :

There is a many-to-one link between series and branches, so would have to be a "linked_series" collection, rather than a link to a single series.

summary: - API lacks easy way to get series information on branches/reviews
+ API lacks easy way to get series information on branches/merge proposals
Changed in launchpad-code:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 646044] [NEW] API lacks easy way to get series information on branches/reviews

In the workaround, I think the "= 'trunk'" isn't really right, and you
need to look for the development focus series?

--
Martin

Changed in launchpad:
importance: Medium → Low
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.