-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
The CI failure on "nightly" is due to zowens/crc32c#51 and doesn't matter for our purposes. |
Codecov ReportAttention:
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. |
Great -- thank you! Let's try in production! |
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 bydandidav
as directories without the.json
extensionPaths 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.