Improve cv validator error messages
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start in cdds/common/request/validations/cv_validators.py and inspect how validation errors such as the parent_experiment_id mismatch are assembled. Update the relevant messages to include the received value and valid expected values, then verify that incorrect request-file inputs report this context consistently.
Written by the indexing model from the issue text.
Description
When incorrect information within a request file is flagged by cdds/common/request/validations/cv_validators.py, it might be valuable to give more information about the expected valid input.
e.g. Upon giving an incorrect parent_experiment_id, the following error is returned: "Parent experiment id does not match with id in CV config". However, it may be more valuable and user friendly to update this to something of the form "Parent experiment id '<request.metadata.parent_experiment_id>' does not match with id in CV config, expected one of the following: <cv_parent_experiment_ids>.
- Dominant language
- Python
- Stars
- 8
- Forks
- 7
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 23
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MetOffice/CDDS
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100