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

Return IntegrationValidationError instead of pointer #76

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

yuri-tceretian
Copy link
Contributor

@yuri-tceretian yuri-tceretian commented Apr 18, 2023

Changes error type that function notify.BuildReceiverConfiguration returns. The problem is that errors.As(err, &IntegrationValidationError) does not match the error (expected by Grafana code (https://github.com/grafana/grafana/blob/main/pkg/services/ngalert/api/api_alertmanager.go#L409)).

@yuri-tceretian yuri-tceretian self-assigned this Apr 18, 2023
Copy link
Collaborator

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

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

LGTM

@yuri-tceretian yuri-tceretian merged commit 5f374e5 into main Apr 18, 2023
@yuri-tceretian yuri-tceretian deleted the yuri-tceretian/fix-error-pointer branch April 18, 2023 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants