Skip to content

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

@pierre-nedelec

Description

@pierre-nedelec

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions