medperf icon indicating copy to clipboard operation
medperf copied to clipboard

[BUG] `dataset submit` only validates fields after doing a bunch more stuff

Open pierre-nedelec opened this issue 1 year ago • 1 comments

Describe the bug Only validates field after some lengthy operations, and error message doesn't say whether the command should be rerun or whether we can still change the field after the fact.

To Reproduce Steps to reproduce the behavior:

medperf dataset submit -p 99 -d path1 -l path1 --name name --location "loc" --description "123456789012345678901"

output:

MedPerf 0.1.2
❌ Field Validation Error:
- description: ensure this value has at most 20 characters.

Expected behavior Run such validation first so we don't have to wait 10' to see that message.

pierre-nedelec avatar Apr 17 '24 05:04 pierre-nedelec

Thank you for reporting this!

hasan7n avatar Apr 19 '24 12:04 hasan7n