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] Add more tests in unified_histogram #165431

Closed
stratoula opened this issue Sep 1, 2023 · 2 comments · Fixed by #165568
Closed

[ES|QL] Add more tests in unified_histogram #165431

stratoula opened this issue Sep 1, 2023 · 2 comments · Fixed by #165568
Labels
Feature:ES|QL ES|QL related features in Kibana Feature:UnifiedHistogram Issues related to the Unified Histogram plugin Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. technical debt Improvement of the software architecture and operational architecture

Comments

@stratoula
Copy link
Contributor

stratoula commented Sep 1, 2023

Describe the feature:

Some missing test cases were mentioned on the ES|QL feature branch #146971

At the moment there is no test for the src/plugins/unified_histogram/public/layout/hooks/use_lens_suggestions.ts. It will be good to add some test cases:

  • test when there is no chart
  • test when there are lens suggestions
  • test when there are no lens suggestions but a ESQL histogram is being displayed

We should also add a test case(s) to src/plugins/discover/public/application/main/hooks/use_text_based_query_language.ts to test the difference in behaviour when using or not using transformational commands in ES|QL.

@stratoula stratoula added technical debt Improvement of the software architecture and operational architecture Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Feature:UnifiedHistogram Issues related to the Unified Histogram plugin Feature:ES|QL ES|QL related features in Kibana labels Sep 1, 2023
@elasticmachine
Copy link
Contributor

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

@davismcphee
Copy link
Contributor

@stratoula Updated to add what I was thinking for use_text_based_query_language.ts, mainly something to test the impact of transformational commands on the hook.

stratoula added a commit that referenced this issue Sep 7, 2023
## Summary

Closes #165431

Adds more unit tests in unified_histogram plugin, as a follow up from
ES|QL

### 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

---------

Co-authored-by: kibanamachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:ES|QL ES|QL related features in Kibana Feature:UnifiedHistogram Issues related to the Unified Histogram plugin Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. technical debt Improvement of the software architecture and operational architecture
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants