Add default tags for distro name/version

Bug #404250 reported by Bryce Harrington
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Invalid
Undecided
Unassigned
apport (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Please make apport by default add a tag for the distro name ('kubuntu', 'fedora', etc.) and version code name ('karmic', 'jaunty') for all bugs filed by apport.

Since Launchpad tries to be pretty general purpose, it lacks functionality for more precisely sorting/filtering through masses of bugs by identifying the distro and distro version. This makes it difficult to do certain common tasks, such as if a Kubuntu developer wished to look at all the Xorg bugs filed by Kubuntu users, or if the Xorg maintainer wished to get a list of all bugs reported against jaunty but not karmic, to ask people to test the newer version.

It is possible to add tags to apport reports via package-hooks, ala report['Tags'] = 'tag1 tag2'. However, I think this is a generally useful functionality which probably should just be on by default for everyone, esp. since it is not uncommon for bugs to be filed against incorrect components and then later moved.

I think this could be implemented simply by just looking for /etc/lsb-release and extracting DISTRIB_ID and DISTRIB_CODENAME, and adding the value of each of those as tags.

Changed in apport:
status: New → Confirmed
Changed in apport:
assignee: nobody → Marco Rodrigues (gothicx)
status: Confirmed → In Progress
Changed in apport:
status: In Progress → Confirmed
Changed in apport:
status: Confirmed → In Progress
Changed in apport:
status: In Progress → Confirmed
assignee: Marco Rodrigues (gothicx) → nobody
Revision history for this message
Martin Pitt (pitti) wrote :

The distro isn't necessary, that's already built into Launchpad itself: "apport (Ubuntu)"

I added the release code name tag in ubuntu r1577. (@Marco: I used a different solution than you to avoid breaking backwards compatibility and introducing redundancy of the DistroRelease field).

Changed in apport:
status: Confirmed → Invalid
Changed in apport (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Bryce Harrington (bryce) wrote :

> The distro isn't necessary, that's already built into Launchpad itself: "apport (Ubuntu)"

Not for tracking 'kubuntu/xubuntu/etc.'

Revision history for this message
Martin Pitt (pitti) wrote :

For the derivative we need to apply some heuristics, like which session is currently running. Reopening.

Changed in apport (Ubuntu):
status: Fix Committed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.9.6-0ubuntu1

---------------
apport (1.9.6-0ubuntu1) lucid; urgency=low

  [ Brian Murray ]
  * debian/local/apport-collect: Strongly encourage collectors who are not
    the bug reporter to file a new bug report.

  [ Marco Rodrigues ]
  * debian/control: Fix lintian warnings. Move python-distutils-extra
    to b-d-i and add misc:Depends to apport-qt.

  [ Martin Pitt ]
  * New upstream version 1.9.5 and 1.9.6:
    - apport-retrace: Fix crash if InterpreterPath/ExecutablePath do not
      exist.
    - hookutils.py, attach_alsa(): Attach /proc/cpuinfo too, for CPU flags.
    - Fix crash if InterpreterPath does not exist any more at the time of
      reporting. (LP: #428289)
    - apport-gtk: Connect signals properly, to repair cancel/window close
      buttons. (LP: #427814)
    - Update German translations and fix "konnre" typo. (LP: #484119)
    - launchpad.py: Ensure that text attachments on initial bug filing are
      valid UTF-8. (LP: #453203)
    - man/apport-retrace.1: Document -R option.
    - Add pm-utils hook to record current operation, so that apportcheckresume
      can check it. Before this was kept in Ubuntu's pm-utils package.
    - general-hooks/generic.py: Check if using ecryptfs, and which directory.
      (LP: #444656)
  * data/general-hooks/ubuntu.py: Add distro release codename tag.
    (LP: #404250)
  * debian/local/apport-chroot: Fix last occurrence of "--no-dpkg" to be
    "--no-pkg". (LP: #487056)
  * debian/local/apport-collect: Use "apport-collect data" as comment for the
    apport-collect attachments to enable bug mail filtering. Thanks to Bryce
    Harrington for the suggestion.
 -- Martin Pitt <email address hidden> Wed, 02 Dec 2009 00:01:06 +0100

Changed in apport (Ubuntu):
status: In Progress → 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.