equinor / equinor/fmu-settings-api

Give better error messages

Open
#430 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
0
Forks
7
Avg merge
2d 20h
Merged PRs (30d)
15

Description

When one rms well is mapped to two simulator wells:
```text
Could not import simulator names: Invalid mappings: Value error, A source_id can only have one cross-system mapping per target system
```
this is confusing to the users. In general we should improve the error message for validation errors due to the validation rules that we have.

This is somewhat lower priority for now because we can guard this in the GUI, so this error message is not reachable from GUI flow.

Contributor guide

Open the contributing guide

Research direction

Start with the validation rules and simulator-name import path that produce the shown mapping error. Review how validation errors are assembled, then make the messages clearer for this case and other validation-rule failures; done means the reported errors are understandable outside the GUI flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.