-
Notifications
You must be signed in to change notification settings - Fork 32
✨Storage: new paths entrypoint with pagination #7200
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
✨Storage: new paths entrypoint with pagination #7200
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7200 +/- ##
==========================================
+ Coverage 85.54% 87.10% +1.56%
==========================================
Files 1680 1685 +5
Lines 65057 65437 +380
Branches 1106 1115 +9
==========================================
+ Hits 55650 57000 +1350
+ Misses 9093 8122 -971
- Partials 314 315 +1
Continue to review full report in Codecov by Sentry.
|
5672008 to
ccaff88
Compare
7ab8d54 to
02ebf8d
Compare
9bde281 to
8411473
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks a lot 👌
a74a198 to
aad652b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! thx.
packages/models-library/src/models_library/api_schemas_storage/storage_schemas.py
Show resolved
Hide resolved
packages/models-library/src/models_library/api_schemas_storage/storage_schemas.py
Outdated
Show resolved
Hide resolved
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for explanation 👍



Screencast.from.2025-02-25.17-13-48.mp4
Webserver API change

Storage API change

What do these changes do?
reminder: storage caches partially the files in S3 in the DB.
Summary
This PR adds a new entrypoint in storage that allows to list files/folders (both inside DB/S3) with pagination.
Webserver API
GET /storage/locations/{location_id}/pathswithfile_filterquery parameterfile_filteris null then this will list the projects that have files,file_filteris some specific project ID, then it will list the nodes with files inside that project,file_filterisPROJECTID/NODEIDthen it will list the files/folders in that node that have files in them,Storage Rest API
test_handler_paths.pyPagination
GET /storage/locations/{location_id}/pathscan havelimitandcursorquery parameterscursorset to null or not passednext_page(the next cursor), that shall be passed with the next call toGET /storage/locations/{location_id}/pathsto get the next pageAWS-library
test_s3_client.pyRequirements
Next steps
Related issue/s
How to test
Dev-ops checklist