Need api call to get source packages a team is subscribed to

Bug #281443 reported by Bryce Harrington
14
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Kamran Riaz Khan
launchpadlib
Invalid
Low
Unassigned

Bug Description

This page provides a listing of the packages that a team has subscribed to:
https://edge.launchpad.net/~ubuntu-x-swat/+packagebugs

Please add an api call to launchpadlib that provides this information (well, the left-hand column).

Background:
Many teams work with more than one package. Xorg and GNOME are examples.

When we develop automated tools, we like to be able to apply them against all the packages we care about. The team package subscription mechanism shown at the above link is a convenient way of tracking this in launchpad.

To date, what I've done is screenscrape the above URL to build a list of packages, and then I iterate through that list to do what needs done. For instance, see http://bryceharrington.org/X/PkgList/versions_current.html, which is produced through this mechanism.

So having a way to getting this source package list will help enable migrating such scripts to using launchpadlib.

Related branches

Revision history for this message
Bryce Harrington (bryce) wrote :

Essentially what I want to replace is the following logic (which I'll use for the time being)

#!/usr/bin/perl

use strict;
use LWP::Simple;

my $content = get("https://bugs.launchpad.net/~ubuntu-x-swat/+packagebugs");

foreach my $line (split /\n/, $content) {
    if ($line =~ m|ubuntu-x-swat.*>(.+) in ubuntu</a>|) {
        print "$1\n";
    }
}

Revision history for this message
Diogo Matsubara (matsubara) wrote :

Curtis, any plans to implement api for packages a team is subscribed to?

Revision history for this message
Markus Korn (thekorn) wrote :

I filed bug 282178 with a similar purpose, but I'm not sure if and how this two bugs are related.

Revision history for this message
Curtis Hovey (sinzui) wrote :

This is a request to publish Person.getBugSubscriberPackages

Changed in launchpad-registry:
importance: Undecided → Wishlist
status: New → Triaged
Changed in launchpadlib:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Leonard Richardson (leonardr) wrote :

This is a Launchpad request that requires no launchpadlib changes.

Changed in launchpadlib:
status: Triaged → Invalid
Revision history for this message
Bryce Harrington (bryce) wrote :

Rewrote the screenscraping script in python and added some exception handling.

(We're starting to do more scripts that operate on a per-team rather than per-package basis, so the need for this functionality has increased.)

Bryce Harrington (bryce)
Changed in malone:
assignee: nobody → Bryce Harrington (bryceharrington)
Graham Binns (gmb)
tags: added: story-better-bug-notification
Revision history for this message
Bryce Harrington (bryce) wrote :

Kamran and I have been discussing this, and Kamran has put together a (simple) fix in launchpad to expose the appropriate call - http://inspirated.com/2010/06

Changed in malone:
importance: Low → Medium
assignee: Bryce Harrington (bryceharrington) → nobody
assignee: nobody → Kamran Riaz Khan (inspirated)
status: Triaged → In Progress
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
Changed in malone:
milestone: none → 10.08
tags: added: qa-needstesting
Changed in malone:
status: In Progress → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.