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

Fix bug in query frontend diff handling #3315

Merged
merged 1 commit into from
May 28, 2024

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented May 24, 2024

This fixes a panic, that could happen when one of the query results in the diff are empty.

Also adds some more coverage to the Diff handler in the frontend.

Note: We should pull this into f68.

@simonswine simonswine changed the title Fixes frontend panic WIP: Fixes frontend panic May 24, 2024
This also adds some test coverage to the query-frontend diff handler.
@simonswine simonswine force-pushed the 20240524_fix-frontend-panic branch from 8aa7d5b to 0fd9ac9 Compare May 28, 2024 12:20
@simonswine simonswine changed the title WIP: Fixes frontend panic Fix bug in query frontend diff handling May 28, 2024
@simonswine simonswine marked this pull request as ready for review May 28, 2024 12:22
@simonswine simonswine requested a review from a team as a code owner May 28, 2024 12:22
Copy link
Contributor

@aleks-p aleks-p left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you for adding the tests!

@simonswine simonswine merged commit 1a3a8a1 into grafana:main May 28, 2024
16 checks passed
simonswine added a commit that referenced this pull request May 28, 2024
This also adds some test coverage to the query-frontend diff handler.
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.

2 participants