Open yarikoptic opened 7 months ago
the key question is whether you expect to only get dandiset id from dandiset.yaml, or do you expect anything more than that. if the former, then it doesn't matter if the rest is valid or invalid.
however, i think the CLI is always an opportunity to inform the user to fix/update something. think npm serve
as an analog. it always tells you which packages have critical issues, and also provides an autofix for some of the issues. thus the cli could start helping the user to automate more tasks (using LLMs or other similar tools as well).
ATM AFAIK we just care about dandiset id
since we are not uploading.
yes -- client has an opportunity, hence this issue, but there are all those concerns especially about ensuring up-to-dateness of local dandiset.yaml.
i would still say remote is the keeper of record and cli could tell user locally to update (or just auto update).
prompted by @satra's question in
ATM:
--upload-dandiset-metadata
but we are not validating.I think, indeed, we should re-approach validation of the dandiset.yaml here.
--upload-dandiset-metadata
option block with the same behavior as we have for assets in terms of--validation
option.dandiset.yaml
might differ from the metadata record on the server.--validation
option)WDYT @satra @jwodder ?