Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support user id filtering in subscriptions list #1057

Open
strixcuriosus opened this issue Sep 25, 2024 · 0 comments
Open

Support user id filtering in subscriptions list #1057

strixcuriosus opened this issue Sep 25, 2024 · 0 comments

Comments

@strixcuriosus
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The SubsciptionsClient.list_subscriptions appears to yield all visible subscriptions within an org. The Subscriptions API has support for a user_id parameter to filter, but this does not yet appear to have support in the client.

Describe the solution you'd like

  • add support for optional user_id filter arg to SubsciptionsClient.list_subscriptions
  • add a utility to make it easy to lookup or get your own user_id

Describe alternatives you've considered
instead of separating get user id and user id filtering, there could be an arg such as owned_by_current_user. this would be easier to use but less directly mapped to the API params

Additional context
looks like someone left a TODO to add user_ud support here already https://github.com/planetlabs/planet-client-python/blob/main/planet/clients/subscriptions.py#L78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant