expose API to get projects for a person/team

Bug #506127 reported by Bill Filler
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Low
Unassigned
launchpadlib
Invalid
Undecided
Unassigned

Bug Description

There is currently no API exposed that returns the projects that a team or person are associated with. i.e. the equivalent of ~team/+projects or ~team/+related-projects. According to jml, this could be accomplished by exposing the IPerson getOwnedOrDrivenPillars method.

Related branches

Revision history for this message
Jonathan Lange (jml) wrote :

Note that exposing this method, which should be a very, very simple patch, is actually quite tedious. The method in question returns IPillarName, which is itself not exposed via the API yet.

Revision history for this message
Jonathan Lange (jml) wrote :

The linked branch doesn't actually fix the bug, but it demonstrates what a pain the API can be. We can't expose IPillarName via the API because it doesn't have a canonical URL.

Revision history for this message
Leonard Richardson (leonardr) wrote :

You don't need to publish internal Launchpad methods exactly as is. You should be able to define a new method that returns pillar objects (which are already published), and publish that as a named operation.

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

Jono, you have a branch for this bug. Are you planning to work on it or should this bug be closed as won't fix (or maybe invalid)? If you do plan to resume work on that branch, please set the bug status accordingly

Changed in launchpadlib:
status: New → Incomplete
Revision history for this message
Jonathan Lange (jml) wrote :

I don't plan to resume work. The branch is Abandoned and the merge proposal Rejected.

Looks like it's time for me to file a bug against malone! :)

Revision history for this message
Gary Poster (gary) wrote :

Given Leonard's description in comment 3, I believe this is a task for launchpad-registry.

Changed in launchpadlib:
status: Incomplete → Invalid
Gary Poster (gary)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: New → Triaged
importance: Undecided → Low
tags: added: api
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: Triaged → Invalid
Revision history for this message
Curtis Hovey (sinzui) wrote :

This method is used twice in lp code, and in both case we work to convert the PillarName into a distro, project, or project group. The method do the conversion so that all callsites get what they want.

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.