-
Notifications
You must be signed in to change notification settings - Fork 24
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
Convert zarr helpers to utilities, update numpy chunk encoding in zarr router #260
Merged
Merged
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
39b4244
Move zmetadata and zvariable to utils
mpiannucci 3b7dd45
Handle numpy chunk encoding, Update tests
mpiannucci 913fd1b
Update tests (I think this is correct)
mpiannucci 4f9765d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e7961e6
ruff
mpiannucci 87a6d66
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 97cd7eb
Clean up, add docs for xpublish_id
mpiannucci 409c380
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0e2588a
Update cache test with new behavior
mpiannucci ba361ac
Small doc update
mpiannucci e189bd8
Update docs
mpiannucci 32c8fb6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 453b899
Update docs/source/user-guide/plugins.md
mpiannucci 7547d85
Update docs/source/user-guide/plugins.md
mpiannucci File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -348,7 +348,7 @@ def test_cache(airtemp_ds): | |
|
||
response1 = client.get('/zarr/air/0.0.0') | ||
assert response1.status_code == 200 | ||
assert '/air/0.0.0' in rest.cache | ||
assert 'airtemp/air/0.0.0' in rest.cache | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All datasets now have an |
||
|
||
# test that we can retrieve | ||
response2 = client.get('/zarr/air/0.0.0') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It's probably worth being more explicit, and making it more important than alert. Also could you tweak the example above to explicit set the attr as an example?
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.
Do you mean move that up and change it to a warning? Ill update the example code too
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.
Ya, warning is probably the right level. I was thinking tweaking the tone as well, 'you need to set a unique
DATASET_ID_ATTR_KEY
fromxpublish.api
on each dataset for routers to manage caching appropriately' to go with the warning.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. I like that, K updated it!