From 6b8122674a02a3e37a46b9d42343ee463041a8d8 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 19 Sep 2022 15:32:55 -0400 Subject: [PATCH] DOC: embargoedUntil -- extend semantic to be able to mark with the date when it was unemabroed The motivation is to (ab)use this metadata field to enable annotating dandisets which were unembargoed in the archive. ATM it would be impossible (?) to tell from dandiset metadata if it was unemabrgoed since we do not carry much (if any) of provenance. Whenever we unemabrgo a dandiset we could use this field then to fill-in datetime for when it was unembargoed, which would actually be "semantically" correct since that would be the date time until when it was embargoed. Of cause if the intention of this field is more of "unembargoUntil" (so no "done" notion), then it must remain as is --- dandischema/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandischema/models.py b/dandischema/models.py index 31839bcd..fbd84591 100644 --- a/dandischema/models.py +++ b/dandischema/models.py @@ -611,7 +611,7 @@ class AccessRequirements(DandiBaseModel): embargoedUntil: Optional[date] = Field( None, title="Embargo end date", - description="Date on which embargo ends.", + description="Date on which embargo ends or ended.", readOnly=True, nskey="dandi", rangeIncludes="schema:Date",