From ebe4e5c6b23187c485216ba4bed582a21f86a6c3 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 Conflicts: dandischema/models.py -- so much water since old days --- dandischema/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandischema/models.py b/dandischema/models.py index 58e57355..e5cae848 100644 --- a/dandischema/models.py +++ b/dandischema/models.py @@ -1160,7 +1160,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.", json_schema_extra={ "readOnly": True, "nskey": DANDI_NSKEY,