IBugTask.reportedin should return a distribution, a sourcepackage, or a product

Bug #1425 reported by Brad Bollenbach
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Brad Bollenbach

Bug Description

Quoting from an sabdfl email:

> - Distribution, this is a bugtask that has ONLY distribution, not a
> distrorelease nor a sourcepackage name. It is used as an "untriaged bug"
> storage point, bugtasks on a distro only are bugtasks that need to be
> redirected to a sourcepackage by the QA team.
> - SourcePackageName + Distro, this is the normal kind of distro
> bugtask, it is targeted on a particular sourcepackage name in a given
> distro, but not required to be fixed within a given distrorelease.
> - SourcePackageName + DistroRelease, this is a bugtask that is focused
> on a specific *distrorelease* and source package. In other words, it's a
> bug we want to fix in Breezy specifically.
> - Product, this is an upstream bug
>
> Currently a SourcePackage object only can be a "SourcePackageName +
> DistroRelease", which is the third kind of bugtask. If you initialise it
> with a Distribution, it uses the distro.currentrelease as its
> distrorelease. I would like to extend SourcePackage so that it can be a
> true SourcePackageName + Distribution as well, representing the concept
> of "the source package called foo in the distro bar" regardless of
> distrorelease.
>
> - please implement BugTask.target to return a Distribution, a
> SourcePackage, or a Product.

Tags: lp-bugs
Revision history for this message
Christian Reis (kiko) wrote :

a) Mark uses BugTask.target too :-P

b) How does this differ from bug 1424?

Revision history for this message
Brad Bollenbach (bradb) wrote :

1424 is to do with the renaming (which is probably a [trivial] fix.)

This bug report involves semantic changes to the return value.

One thing that was probably not obvious in the other bug report (re: the choice of the name of the attribute) was that I first confirmed with sabdfl on IRC that he liked the name before filing the bug report.

Brad Bollenbach (bradb)
Changed in malone:
assignee: nobody → bradb
status: New → Fixed
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.