Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve error messages for invalid characters in variables names #536

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

frodehk
Copy link
Contributor

@frodehk frodehk commented Jun 21, 2024

ECALC-647

Have you remembered and considered?

  • I have used conventional commits syntax (if you squash, make sure that conventional commit is used)
  • I have included the Jira issue ID somewhere in the commit body (ECALC-XXXX)

Why is this pull request needed?

Difficult to understand error messages related to invalid characters in VARIABLES names, no information about where the issue is in the eCalc model.

What does this pull request change?

Included validation errors of type string_pattern_mismatch into CUSTOM_MESSAGES, to ensure better and customized feedback to user for these kind of errors.

Issues related to this change:

https://equinor-ecalc.atlassian.net/browse/ECALC-647?atlOrigin=eyJpIjoiZmY2NzNlNWE2NTdjNGE5MjhmOTEzYWZlNzQ2Yjg4MzEiLCJwIjoiaiJ9

@frodehk frodehk self-assigned this Jun 21, 2024
@frodehk frodehk requested a review from a team as a code owner June 21, 2024 13:28
@frodehk frodehk merged commit 325bfec into main Jun 21, 2024
9 checks passed
@frodehk frodehk deleted the ECALC-647-improve-error-messages-variables-names branch June 21, 2024 14:33
equinor-schen pushed a commit that referenced this pull request Aug 23, 2024
…es (#536)

* chore: improve error messages for invalid characters in variables names

ECALC-647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants