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

Add API support for Embargoed Zarrs #2069

Merged
merged 5 commits into from
Nov 13, 2024
Merged

Add API support for Embargoed Zarrs #2069

merged 5 commits into from
Nov 13, 2024

Conversation

jjnesbitt
Copy link
Member

This PR adds API support for embargoed zarrs, with the following notable changes:

  1. ZarrArchive, EmbargoedZarrArchive, and BaseZarrArchive have all been merged into one ZarrArchive model.
  2. The Asset model now has an is_embargoed property, which will account for both asset blob and zarr embargo status.
  3. The unembargo_dandiset function has been extended to include zarrs.
  4. The zarr list and retrieve endpoints have been modified to account for embargoed zarrs. If the requested zarr is embargoed, and the user is either unauthenticated or not an owner on the respective dandiset, a 404 Not Found is returned.

This does not address any changes in the GUI, as I'm unsure what exactly that entails. These changes are necessary for embargoed zarr support in any case, and so can be merged before any GUI re-work.

- Remove EmbargoedZarrArchive model
- Remove BaseZarrArchive abstract model
- Add ZarrArchive.embargoed column
- Fix imports and model usage
@dandibot
Copy link
Member

dandibot commented Dec 2, 2024

🚀 PR was released in v0.3.111 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants