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

[ES|QL] [Discover] Removes the suggestion selector #180249

Closed
stratoula opened this issue Apr 8, 2024 · 5 comments · Fixed by #180323
Closed

[ES|QL] [Discover] Removes the suggestion selector #180249

stratoula opened this issue Apr 8, 2024 · 5 comments · Fixed by #180323
Assignees
Labels
enhancement New value added to drive a business result Feature:Discover Discover Application Feature:ES|QL ES|QL related features in Kibana impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) Team:ESQL ES|QL related features in Kibana

Comments

@stratoula
Copy link
Contributor

stratoula commented Apr 8, 2024

Describe the feature:
In 8.11+ we introduced a suggestion dropdown on the unified histogram plugin, in the cases where the user is visualizing an ES|QL query with stats / keep.

On #175227 we decided to remove the suggestions selector:

  • it adds complexity to our code without any reason
  • it adds some UX confusion especially when the user has selected a suggestion but then changes the chart type from the flyout to something else.

The lens inline editing flyout has already this functionality. We are going to use this instead. In order to do so we need:

<Component
          attributes={visContext.attributes}
          updatePanelState={updatePanelState}
          updateSuggestion={newCallback}
          lensAdapters={lensAdapters}
          output$={lensEmbeddableOutput$}
          displayFlyoutHeader
          closeFlyout={() => {
            setIsFlyoutVisible(false);
          }}
          wrapInFlyout
          datasourceId="textBased"
        />
@stratoula stratoula added Feature:Discover Discover Application enhancement New value added to drive a business result impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana labels Apr 8, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@stratoula
Copy link
Contributor Author

Adding impact: high as I hope it will get prioritized cc @davismcphee @jughosta

@jughosta jughosta self-assigned this Apr 8, 2024
@jughosta
Copy link
Contributor

jughosta commented Apr 8, 2024

@stratoula I'm think about still setting hidesSuggestions to true for ES|QL histogram mode as we are using a different underlying query for this chart.

So if query is from logs* | limit 10, then hide suggestions in the flyout. The underlying query is from kibana_sample_data_logs | limit 10 | EVAL timestamp=DATE_TRUNC(24 hour, @timestamp) | stats results = count(*) by timestamp | rename timestamp as "@timestamp every 24 hour".

If query is from logs* | limit 10 | stats var0 = avg(bytes) by extension.keyword, then allow to use suggestions in the flyout.

Is that okay?

@stratoula
Copy link
Contributor Author

Yes totally! Good catch, I had mostly in mind the charts that the suggestion selector is being rendered!

jughosta added a commit that referenced this issue Apr 12, 2024
…out (#180323)

- Closes #180249
- Closes #179515

## Summary

This PR removes suggestions from above the UnifiedHistogram vis. Now
users can change suggestions via the lens flyout.

ES|QL query which supports suggestions:
<img width="600" alt="Screenshot 2024-04-10 at 16 57 09"
src="https://github.com/elastic/kibana/assets/1415710/a0e7aed9-c223-4e29-8919-3e65eef52443">

ES|QL query which does not support suggestions for the histogram vis:
<img width="600" alt="Screenshot 2024-04-10 at 16 58 08"
src="https://github.com/elastic/kibana/assets/1415710/6ba3c283-5bd3-46eb-839f-6d6fda41db5b">

25x
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5656

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Discover Discover Application Feature:ES|QL ES|QL related features in Kibana impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) Team:ESQL ES|QL related features in Kibana
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants