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

[v11.0.x] CloudMonitoring: Fix query type selection issue #88024

Merged
merged 1 commit into from
May 17, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 58d382e from #87990


#86069 introduced a bug which would prevent the query type from being changed.

This fixes that by running a deepEqual check against the saved migratedQuery value and the new query.

I've tested that the original migration fix still works and that the query is correctly maintained across re-renders.

* Use deepEqual to ensure migratedQuery is only returned when query is unchanged

* Add selectors for query editors

* Add more tests for query editor component

* Clarifying comments

* Fix how state is set

* Simplify query editor loading and migration

(cherry picked from commit 58d382e)
@aangelisc aangelisc enabled auto-merge (squash) May 17, 2024 18:11
@aangelisc aangelisc merged commit e49e614 into v11.0.x May 17, 2024
22 checks passed
@aangelisc aangelisc deleted the backport-87990-to-v11.0.x branch May 17, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant