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

Serve Zarrs view via manifests at /zarrs/ #52

Merged
merged 17 commits into from
Feb 6, 2024
Merged

Serve Zarrs view via manifests at /zarrs/ #52

merged 17 commits into from
Feb 6, 2024

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Feb 6, 2024

Closes #43.

Notes on the implementation:

  • The deserialized JSON manifests are cached by the server. The cache stores 16 manifests, with the least-frequently used being evicted when the size is exceeded.

  • Paths under https://datasets.datalad.org/dandi/zarr-manifests/zarr-manifests-v2-sorted/ are assumed to take only the following forms:

    • {any}/
    • {any}/{any}/
    • {any}/{any}/{any}/
    • {any}/{any}/{any}/{any-non-period}.json — Manifests (where the last {any} is the Zarr ID), served by dandidav as directories without the .json extension

    Paths that do not have one of the above forms may be listed by dandidav under certain circumstances but will result in a 404 upon access.

@jwodder jwodder added the enhancement New feature or request therefor label Feb 6, 2024
@jwodder
Copy link
Member Author

jwodder commented Feb 6, 2024

The CI failure on "nightly" is due to zowens/crc32c#51 and doesn't matter for our purposes.

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Attention: 467 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (main@56acdce). Click here to learn what that means.
Report is 3 commits behind head on main.

Files Patch % Lines
src/zarrman/mod.rs 0.00% 208 Missing ⚠️
src/dav/types.rs 0.00% 90 Missing ⚠️
src/zarrman/resources.rs 0.00% 37 Missing ⚠️
src/httputil.rs 47.76% 35 Missing ⚠️
src/dandi/mod.rs 0.00% 27 Missing ⚠️
src/dav/mod.rs 0.00% 26 Missing ⚠️
src/paths/component.rs 72.88% 16 Missing ⚠️
src/paths/dirpath.rs 47.36% 10 Missing ⚠️
src/main.rs 0.00% 8 Missing ⚠️
src/paths/purepath.rs 64.70% 6 Missing ⚠️
... and 2 more
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #52   +/-   ##
=======================================
  Coverage        ?   35.05%           
=======================================
  Files           ?       23           
  Lines           ?     3323           
  Branches        ?        0           
=======================================
  Hits            ?     1165           
  Misses          ?     2158           
  Partials        ?        0           

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

@jwodder jwodder marked this pull request as ready for review February 6, 2024 19:08
@yarikoptic
Copy link
Member

Great -- thank you! Let's try in production!

@yarikoptic yarikoptic merged commit c2195f4 into main Feb 6, 2024
9 of 10 checks passed
@yarikoptic yarikoptic deleted the gh-43 branch February 6, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request therefor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide zarrs/ top level folder with support for experimental zarr manifests
2 participants