Skip to content

Add embargo_end_date field to Dandiset model#2731

Merged
jjnesbitt merged 9 commits into
masterfrom
dandiset-embargo-end-date
Apr 9, 2026
Merged

Add embargo_end_date field to Dandiset model#2731
jjnesbitt merged 9 commits into
masterfrom
dandiset-embargo-end-date

Conversation

@jjnesbitt

@jjnesbitt jjnesbitt commented Mar 13, 2026

Copy link
Copy Markdown
Member

Closes #2730
Closes #1286
Closes #2116
Supersedes #2729

This PR creates a field on the Dandiset model directly, to store the embargo end date for embargoed dandisets. This massively improves the ergonomics around embargoed dandisets, as now, we can guarantee that an embargoed dandiset has an embargo end date, at the database level. It also removes the ability for a user to change the embargo end date, which was easily accomplished via a PUT request. Now, the embargoedUntil metadata field is populated from the dandiset embargo_end_date field.

This also has additional ramifications for asset metadata. Now we can guarantee that if an embargoed asset is associated with any versions, it will have an embargoed end date.

@jjnesbitt jjnesbitt force-pushed the dandiset-embargo-end-date branch 2 times, most recently from f15f5fb to 9119727 Compare March 16, 2026 19:19
@jjnesbitt jjnesbitt force-pushed the dandiset-embargo-end-date branch from 9b1d78d to 2582261 Compare March 16, 2026 20:16
@jjnesbitt jjnesbitt marked this pull request as ready for review March 16, 2026 21:56
@jjnesbitt jjnesbitt requested a review from waxlamp March 26, 2026 16:49

@waxlamp waxlamp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread dandiapi/api/tests/test_version.py Outdated
Comment thread dandiapi/api/migrations/0031_dandiset_embargo_end_date.py
@jjnesbitt jjnesbitt added minor Increment the minor version when merged release Create a release when this pr is merged labels Apr 9, 2026
@jjnesbitt jjnesbitt merged commit d994161 into master Apr 9, 2026
7 checks passed
@jjnesbitt jjnesbitt deleted the dandiset-embargo-end-date branch April 9, 2026 15:23
@dandibot

dandibot commented Apr 9, 2026

Copy link
Copy Markdown
Member

🚀 PR was released in v0.23.0 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Increment the minor version when merged release Create a release when this pr is merged released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Store embargo_end_date on dandisets directly Embargo end date should not be a user populated field upon unembargo set embargoedUntil

3 participants