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

Datasources: Fix expressions that reference hidden queries #84977

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

sunker
Copy link
Contributor

@sunker sunker commented Mar 22, 2024

What is this feature?

The Change query filtering PR that was merged yesterday introduced a bug that caused expression queries that referenced hidden queries to stop working. This PR changes the order of things in the query runner, ensuring expression data source query method is triggered before any filtering takes place (in case target includes expression queries).

Why do we need this feature?

Who is this feature for?

Users of Grafana

Which issue(s) does this PR fix?:

Fixes #84976

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@sunker sunker requested a review from andresmgot March 22, 2024 09:37
@sunker sunker requested a review from a team as a code owner March 22, 2024 09:37
@sunker sunker requested review from dprokop and bfmatei and removed request for a team March 22, 2024 09:37
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.0.x milestone Mar 22, 2024
Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

LGTM! verified this fixes plugins that rely on the hide property for filterQuery

@sunker sunker changed the title Datasource: Fix expressions that reference hidden queries Datasources: Fix expressions that reference hidden queries Mar 22, 2024
@sunker sunker modified the milestone: 11.0.x Mar 22, 2024
@sunker sunker merged commit 86bb91e into main Mar 22, 2024
28 checks passed
@sunker sunker deleted the datasoruces/expressions-fix branch March 22, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

Datasource: Expression queries that reference hidden queries no longer work
3 participants