-
Notifications
You must be signed in to change notification settings - Fork 19
Description
That issue and PR made me realize that if we're going to start relying on the embargo end date of a dandiset, we should probably store it in a field that the user can't modify. At the moment, since the embargo end date is only stored within the metadata, it could be overwritten by someone simply using the API.
I think we should instead create a new embargo_end_date field on the Dandiset directly, which would not be modifiable by the user directly. Instead, the value would be set initially on embargoed dandiset creation, and updated upon dandiset unembargo.
This way, the embargoedUntil value within the access metadata field can be computed from the source of truth (the field on the dandiset). It would be trivial to migrate the existing values from embargoedUntil to this new field.
Thoughts @satra @yarikoptic @waxlamp? If nobody objects to this, I could make a PR that supersedes #2729