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

webhook: fix panic on unedpected parser expression #1182

Merged
merged 1 commit into from
May 22, 2024

Conversation

squat
Copy link
Contributor

@squat squat commented May 22, 2024

Even if a vector expression in an SLO returns a vector, the webhook API
handler will panic if the underlying expression is not a vector selctor.

Fixes: #1181

Signed-off-by: squat [email protected]

Even if a vector expression in an SLO returns a vector, the webhook API
handler will panic if the underlying expression is not a vector selctor.

Fixes: pyrra-dev#1181

Signed-off-by: squat <[email protected]>
@metalmatze
Copy link
Member

Good find and thanks for the fix!
Do you want to send a similar one against the release-0.7 branch? We could then cut a new patch release.

@metalmatze metalmatze merged commit 15624d3 into pyrra-dev:main May 22, 2024
9 of 10 checks passed
@squat squat deleted the fix_webhook_panic branch May 22, 2024 22:52
@squat
Copy link
Contributor Author

squat commented May 22, 2024

Oh yeah happily!

@squat squat restored the fix_webhook_panic branch May 22, 2024 22:54
@squat
Copy link
Contributor Author

squat commented May 22, 2024

Grrrr I think the release-0.7 branch was deleted! https://github.com/pyrra-dev/pyrra/tree/release-0.7

@metalmatze
Copy link
Member

I fat-fingered and deleted that branch after #1145 it seems like.
It's back now to send PRs against.
Sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webhook Panic on Unexpected Parser Expression
2 participants