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 Query Builder FilterEditor on Alert Rules page #838

Merged
merged 6 commits into from
May 23, 2024

Conversation

SpencerTorres
Copy link
Collaborator

Fixes #828

Dropdown wasn't working because filter.operator was marked as readonly. I assume there's some magic going on within Grafana to where this code is interpreted differently on this page compared to the regular explore/dashboard view.

It is a valid problem though, the current state was being mutated to generate the next state. Fixed by copying the filter and then modifying. Dropdown now works as expected on Alert Rules page.

@SpencerTorres SpencerTorres requested a review from a team as a code owner May 17, 2024 21:23
adamyeats
adamyeats previously approved these changes May 23, 2024
Copy link
Contributor

@adamyeats adamyeats left a comment

Choose a reason for hiding this comment

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

Aside from the one comment left on #837, this looks good! Please rebase/merge main on both branches and I'll be happy to merge them in!

@SpencerTorres
Copy link
Collaborator Author

updated 😎

adamyeats
adamyeats previously approved these changes May 23, 2024
Copy link
Contributor

@adamyeats adamyeats left a comment

Choose a reason for hiding this comment

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

Thank you as always @SpencerTorres!

@SpencerTorres SpencerTorres dismissed adamyeats’s stale review May 23, 2024 17:34

The merge-base changed after approval.

@adamyeats adamyeats enabled auto-merge (squash) May 23, 2024 17:35
@adamyeats adamyeats merged commit a933e8e into grafana:main May 23, 2024
16 checks passed
@SpencerTorres SpencerTorres deleted the issue-828 branch May 23, 2024 21:25
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.

Alerts Section --> Query Builer --> Filter dropdown doesn't work . Not able to change "IS NOT NULL"
2 participants