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

Alerting: Fix panic in provisioning filter contacts by unknown name #83070

Merged

Conversation

JacobsonMT
Copy link
Member

What is this feature?

Prevents a panic for index out of range when querying api/v1/provisioning/contact-points with a name query parameter that filters for a contact point name that doesn't exist.

Why do we need this feature?

Prevent panic.

Who is this feature for?

Users of alerting provisioning API / alerting Terraform provider.

@JacobsonMT JacobsonMT added this to the 10.4.x milestone Feb 19, 2024
@JacobsonMT JacobsonMT requested review from a team, rwwiv, yuri-tceretian and grobinson-grafana and removed request for a team February 19, 2024 15:16
@JacobsonMT JacobsonMT enabled auto-merge (squash) February 19, 2024 15:26
@JacobsonMT JacobsonMT merged commit 87ab98e into main Feb 19, 2024
25 checks passed
@JacobsonMT JacobsonMT deleted the jacobsonmt/fix-provisioning-contact-point-read-error branch February 19, 2024 15:30
@aangelisc aangelisc modified the milestones: 10.4.x, 11.0.x Feb 20, 2024
@mengjie-ms
Copy link

Hi @JacobsonMT , @fabrizio-grafana , could you please backport the fix to v10, we have seen many "index out of range" error in v10.4.x. Thank you very much!

@brahmnes
Copy link

brahmnes commented Jul 3, 2024

Hi @JacobsonMT, @fabrizio-grafana , this looks like a simple fix and we would appreciate if it can be backported to Grafana 10.
Thank you!

CC @aangelisc

@ryan-grafana ryan-grafana added the product-approved Pull requests that are approved by product/managers and are allowed to be backported label Jul 15, 2024
@ryan-grafana
Copy link

approved to backport from product

JacobsonMT added a commit that referenced this pull request Jul 15, 2024
…own name (#90440)

Alerting: Fix panic in provisioning filter contacts by unknown name (#83070)

(cherry picked from commit 87ab98e)

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/alerting Grafana Alerting area/backend area/provisioning backport v10.4.x product-approved Pull requests that are approved by product/managers and are allowed to be backported type/bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants