-
Notifications
You must be signed in to change notification settings - Fork 15
Specify key requirements in validate_key_value error #511
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
base: master
Are you sure you want to change the base?
Conversation
|
Kudos, SonarCloud Quality Gate passed!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #511 +/- ##
=======================================
Coverage 79.65% 79.65%
=======================================
Files 73 73
Lines 3584 3584
=======================================
Hits 2855 2855
Misses 729 729 ☔ View full report in Codecov by Sentry. |
johannaengland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When posting to /api/v1/incidents/ with the following tags [{"tag": "HELLO=world"}] I get the error "Enter a valid key consisting of lowercase letters, numbers and underscores." which stems from line 20 in the same file.
But it is still good to also include the key requirements in this error message
Co-authored-by: Johanna England <[email protected]>
81c443c to
50d3748
Compare
|
johannaengland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only needs a changelog file











Updates the error message to include requirements for the key. Previously, if you tried to add a tag with invalid Key, it was not clear this could be the issue in the error message.