-
Notifications
You must be signed in to change notification settings - Fork 183
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
fix: Validates New Relic provider api url has https #1152 #1172
Conversation
@KanvaBhatia is attempting to deploy a commit to the KeepHQ Team on Vercel. A member of the Team first needs to authorize it. |
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.
@KanvaBhatia I think we should adjust frontend to accept different errors (not only scope validation) from the backend to display the error message you return from the URL validation properly. Are you up for fixing that too?
Sure, here's what I am thinking - Here, status codes Whenever a provider throws a Possible solution - Frontend - Handle the response code |
@KanvaBhatia sounds perfect! Looking forward to reviewing this change |
Added the changes @talboren. Please review. |
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.
LGTM! @KanvaBhatia mind adding a screenshot of how it looks before I merge it in?
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
Sure @talboren here's how it'll look like - If any other Provider throws For example, for |
Closes #1152
π Description
Added a validation that the api url starts with 'https' in
validate_config
ofNewrelicProvider
.β Checks
βΉ Additional Information
Old behaviour -
Earlier it used to show this error instead of validating url.
New -
Added
https
validation in the config, hence this meaningfulerror_msg
.Thanks