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

Tempo: Remove traceqlSearch feature toggle #72029

Merged
merged 11 commits into from
Jul 24, 2023

Conversation

adrapereira
Copy link
Contributor

What is this feature?

This PR removes the traceqlSearch feature toggle, setting the TraceQL Search editor as the editor of choice for the "Search" query type and deprecating the old "Native Search" editor.

The goal is to deprecate the old native search, but not remove it completely from Grafana's code since there may still be users who use it for dashboards or through stored links. Instead, these users (and only these who were already using native search through a dashboard or stored link) will see a deprecation alert asking them to migrate to another query type.

image

The PR also includes a small refactor/reorg of some components of the Tempo data source.

Who is this feature for?

All users of the Tempo data source.

Which issue(s) does this PR fix?:

Fixes #65825

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.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 20, 2023

⚠️   Possible breaking changes

(Open the links below in a new tab to go to the correct steps)

grafana-data has possible breaking changes (more info)

Console output
Read our guideline

@grafanabot grafanabot added levitate breaking change A label indicating a breaking change and assigned by Levitate. type/docs area/backend labels Jul 20, 2023
@adrapereira adrapereira marked this pull request as ready for review July 20, 2023 14:44
@adrapereira adrapereira requested review from grafanabot and a team as code owners July 20, 2023 14:44
@adrapereira adrapereira requested review from jcalisto and jrbgraf and removed request for a team July 20, 2023 14:44
@adrapereira adrapereira self-assigned this Jul 20, 2023
Copy link
Contributor

@joey-grafana joey-grafana left a comment

Choose a reason for hiding this comment

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

  • Should we say which version we are going to remove the old search functionality in?
  • Mark fields spanName, serviceName etc as deprecated?
  • traceqlSearch mentioned in tempo-search-traceql.md

@@ -110,6 +99,11 @@ class TempoQueryFieldComponent extends React.PureComponent<Props, State> {
}
}

// Show the deprecated search option if any of the deprecated search fields are set
if (query.spanName || query.serviceName || query.search || query.maxDuration || query.minDuration) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we also check if queryType is nativeSearch

@adrapereira adrapereira requested review from a team and Eve832 as code owners July 24, 2023 14:56
@adrapereira adrapereira requested review from ashharrison90, JoaoSilvaGrafana and academo and removed request for a team July 24, 2023 14:56
@github-actions github-actions bot added the pr/external This PR is from external contributor label Jul 24, 2023
@adrapereira adrapereira removed the pr/external This PR is from external contributor label Jul 24, 2023
@adrapereira adrapereira requested review from a team and removed request for jcalisto, jrbgraf, Eve832, ashharrison90, JoaoSilvaGrafana, academo and grafanabot July 24, 2023 15:16
@adrapereira adrapereira enabled auto-merge (squash) July 24, 2023 15:16
Copy link
Contributor

@joey-grafana joey-grafana left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@adrapereira adrapereira merged commit bd59a27 into main Jul 24, 2023
18 of 19 checks passed
@adrapereira adrapereira deleted the andre/remove_traceqlsearch_toggle branch July 24, 2023 15:26
@ricky-undeadcoders ricky-undeadcoders modified the milestones: 10.1.x, 10.1.0 Aug 1, 2023
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.

Feature toggle removal: traceqlSearch
4 participants