dandi / dandi-cli

DANDI command line client to facilitate common operations
https://dandi.readthedocs.io/
Apache License 2.0
22 stars 28 forks source link

Return/Add validation of dandiset.yaml upon upload? #1427

Open yarikoptic opened 7 months ago

yarikoptic commented 7 months ago

prompted by @satra's question in

ATM:

I think, indeed, we should re-approach validation of the dandiset.yaml here.

WDYT @satra @jwodder ?

satra commented 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).

yarikoptic commented 7 months ago

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.

satra commented 7 months ago

i would still say remote is the keeper of record and cli could tell user locally to update (or just auto update).