retrieve archive subscriptions through the API
Bug #530315 reported by
Diogo Matsubara
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Julian Edwards |
Bug Description
Hello,
I'm trying to write a simple script similar to add-apt-repository,
but that it's able to handle private PPAs also.
Exploring the API, I've been able to get the teams for a person
and the PPAs for each team. However, in the PPA (archive) object
I've not been able to get the subscriptions for a person.
It seems it's possible to create a new subscriptions through newSubscription
method, but I'd like to get subscriptions that are already in place
such as the ones obtained in:
https:/
Is there any way to do that?
Best regards,
Javier
Related branches
lp://staging/~julian-edwards/launchpad/p3a-api-subscriptions-bug-530315
- Gavin Panella (community): Approve
-
Diff: 110 lines (+53/-0)4 files modifiedlib/lp/registry/interfaces/person.py (+9/-0)
lib/lp/registry/model/person.py (+9/-0)
lib/lp/registry/stories/webservice/xx-person.txt (+18/-0)
lib/lp/soyuz/doc/archivesubscriber.txt (+17/-0)
Changed in soyuz: | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
tags: | added: oem-services |
Changed in soyuz: | |
assignee: | nobody → Julian Edwards (julian-edwards) |
Changed in soyuz: | |
status: | Triaged → In Progress |
To post a comment you must log in.
This should be as simple as adding and exposing IPerson. getArchiveSubsc riptions( include_ tokens= False) which calls IArchiveSubscri berSet. getBySubscriber () or getBySubscriber WithActiveToken ()