Skip to content

feat: Add the new ownership parameter to the storage listing methods#696

Open
nmanerikar wants to merge 2 commits intomasterfrom
feat/storage-listing-ownership
Open

feat: Add the new ownership parameter to the storage listing methods#696
nmanerikar wants to merge 2 commits intomasterfrom
feat/storage-listing-ownership

Conversation

@nmanerikar
Copy link
Copy Markdown

Description

Adds an ownership query parameter (ownedByMe | sharedWithMe) to the list() method on DatasetCollectionClient, KeyValueStoreCollectionClient, and RequestQueueCollectionClient (both sync and async variants). This allows filtering listed storages by whether they are owned by the user or shared with the user.

Testing

Includes unit tests verifying the parameter is correctly passed through to the API request for all three storage types.

@nmanerikar nmanerikar requested review from tobice and vdusek April 2, 2026 09:02
@nmanerikar nmanerikar self-assigned this Apr 2, 2026
@github-actions github-actions bot added t-core-services Issues with this label are in the ownership of the core services team. tested Temporary label used only programatically for some analytics. labels Apr 2, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.84%. Comparing base (2f67a5d) to head (3328587).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #696      +/-   ##
==========================================
+ Coverage   94.79%   94.84%   +0.04%     
==========================================
  Files          45       45              
  Lines        4403     4405       +2     
==========================================
+ Hits         4174     4178       +4     
+ Misses        229      227       -2     
Flag Coverage Δ
integration 94.84% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@tobice tobice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Nish!

From my PoV, it's just piping the param to API, which makes sense. I'll leave the Python stuff to the tooling team.

Copy link
Copy Markdown
Contributor

@vdusek vdusek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one small thing:

Could you please move the definition of the ownership type

Literal['ownedByMe', 'sharedWithMe']

to a _types.py and give it a name?

This is the preferred approach for now. In the future, it should be derived from the specs and live in _models.py, but _types.py is currently the right place for manually defined types.

Thanks.

@nmanerikar nmanerikar requested a review from vdusek April 2, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-core-services Issues with this label are in the ownership of the core services team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants