Skip to content

Store embargo_end_date on dandisets directly #2730

@jjnesbitt

Description

@jjnesbitt

Related to #1286 and #2729

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    embargoIssues around embargo functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions