Support user id filtering in subscriptions list
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start in planet/clients/subscriptions.py around the TODO at line 78 and compare list_subscriptions with the Subscriptions API's user_id parameter. Define the requested optional filtering and user-ID lookup behavior, then verify that both are exposed through the client and preserve existing listing behavior.
Written by the indexing model from the issue text.
Description
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_idfilter arg toSubsciptionsClient.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
- Dominant language
- Python
- Stars
- 300
- Forks
- 99
- Avg merge
- 9d 22h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from planetlabs/planet-client-python
-
better-testing
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
planetlabs/planet-client-python#1110 ·
-
FeaturesClient list_items does not support filteringPossibly taken @steps-re claimed this 91 days ago. Openproposal
Difficulty 3/5 1-2 days Newbie friendliness 65/100
planetlabs/planet-client-python#1221 ·
-
FeaturesClient does not implement Update FeaturePossibly taken @tbarsballe claimed this 120 days ago. Openproposal
Difficulty 3/5 1-2 days Newbie friendliness 57/100
planetlabs/planet-client-python#1214 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
planetlabs/planet-client-python#1197 · 1 comment · 1 reaction ·
-
Quota APIMay be free again @asonnenschein claimed this 419 days ago, and no pull request is open. Openai-claude
planetlabs/planet-client-python#1191 · 1 comment · 1 assignee ·
All issues in planetlabs/planet-client-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
area:docs
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RailtownAI/railtracks#1633 ·
Maintainers usually reply within 2 days
-
review-panel severity:low
Difficulty 1/5 Under an hour Newbie friendliness 85/100
kristovatlas/coin-accounting#152 ·
Maintainers usually reply within 1 day
-
documentation :blue_book:
Difficulty 1/5 Under an hour Newbie friendliness 88/100
PennyLaneAI/pennylane#10280 ·
Maintainers usually reply within 2 days
-
`pipx reinstall` prints a Python traceback when the reinstall failsPossibly taken @ParamTanna claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day