Skip to content

Add embargo_end_date field to Dandiset model#2731

Open
jjnesbitt wants to merge 7 commits intomasterfrom
dandiset-embargo-end-date
Open

Add embargo_end_date field to Dandiset model#2731
jjnesbitt wants to merge 7 commits intomasterfrom
dandiset-embargo-end-date

Conversation

@jjnesbitt
Copy link
Member

@jjnesbitt jjnesbitt commented Mar 13, 2026

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

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

1 participant