drop bug_task.title from the LP API

Bug #274537 reported by Markus Korn
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

As you can see in the attached example a bug_task title is different than the bug.title although the api-doc says:
   """ bug_task: [...] title (read-only) The title of the bug related to this bugtask """
This additional bug-id and bug_target_name in bugtask.title does not make any sense, at least to me.

Markus

In [10]: b = launchpad.bugs[150887]

In [11]: b.title
Out[11]: u"RFE: add 'atom'-feed output format"

In [12]: b.bug_tasks[0].title
Out[12]: u'Bug #150887 in bughelper (Ubuntu): "RFE: add \'atom\'-feed output format"'

Tags: api lp-bugs
Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 274537] [NEW] launchpad api: diffenrent result of bug.title and bug.bug_tasks[0].title

On Thu, Sep 25, 2008 at 08:06:31PM -0000, Markus Korn wrote:
> Public bug reported:
>
> As you can see in the attached example a bug_task title is different
> than the bug.title although the api-doc says:
> """ bug_task: [...] title (read-only) The title of the bug related to this bugtask """
> This additional bug-id and bug_target_name in bugtask.title does not
> make any sense, at least to me.

Right. bugtask.title shouldn't actually be there. It doesn't make sense.
I don't think we use it internally, and I think it should be removed.

    status triaged
    subscribe bjornt

Changed in malone:
status: New → Triaged
Revision history for this message
Eleanor Berger (intellectronica) wrote : Re: launchpad api: diffenrent result of bug.title and bug.bug_tasks[0].title

The advantage of having BugTask.title is that you can use it without fetching the bug itself.

Revision history for this message
Robert Collins (lifeless) wrote :

We're overhauling the API's to provide related data more efficiently, at which point the optimisation to not get the bug at all will be effectively irrelevant; I am going to repurpose this to say that we should drop the attribute.

Changed in launchpad:
status: Triaged → Won't Fix
status: Won't Fix → Triaged
importance: Undecided → Low
summary: - launchpad api: diffenrent result of bug.title and bug.bug_tasks[0].title
+ drop bug_task.title from the LP API
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.