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

Use custom Number deserialization in pushover and webhook #54

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

yuri-tceretian
Copy link
Contributor

The json.Number implementation fails if the field is an empty string. However, that may be the case when the configuration was created in Grafana 8 and wasn't changed since then.

This PR implements a custom OptionalNumber to support empty strings.

@yuri-tceretian yuri-tceretian added the bug Something isn't working label Feb 9, 2023
@yuri-tceretian yuri-tceretian self-assigned this Feb 9, 2023
@JacobsonMT JacobsonMT self-requested a review February 9, 2023 00:56
Copy link
Member

@JacobsonMT JacobsonMT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can you put the "why" for this directly in the code as a comment. Basically the first paragraph of your PR description will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants