there seems to be no way to access the requesting user from a property exported in the API
Bug #275637 reported by
Michael Hudson-Doyle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
We'd like to export the branches belonging to a person in the API as an attribute. But, we need to know who's asking so that we can filter branches to those that the requesting user can see.
This doesn't seem to be possible.
One way to do this would be to allow exporting a method (which we could decorate with call_with(
tags: | added: api |
Changed in launchpad-foundations: | |
status: | New → Triaged |
importance: | Undecided → Low |
To post a comment you must log in.
Exporting a method as an attribute is a planned improvement. For now, you can export a method as a method. The only difference to the end-user difference will be the launchpadlib syntax and the URL to the information.