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

Discover fetches date histogram even when no documents match the query #198456

Open
lukasolson opened this issue Oct 30, 2024 · 1 comment
Open
Labels
bug Fixes for quality problems that affect the customer experience Feature:UnifiedHistogram Issues related to the Unified Histogram plugin impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Data, DataViews)

Comments

@lukasolson
Copy link
Member

Describe the bug:

The unified histogram fetches the date histogram even when there are no results.

Steps to reproduce:

  1. Open Discover
  2. Use a query that produces no results
  3. Notice that two queries are made - one for the documents & one for the histogram

Ironically, if you refresh the entire browser, only one request is made (for the documents). But each time you click the "refresh" button, you get two additional queries.

Expected behavior:

Only one query for the documents.

Screenshots (if relevant):

Screen.Recording.2024-10-30.at.4.34.44.PM.mov

Any additional context:

Probably related to #165192.

@lukasolson lukasolson added bug Fixes for quality problems that affect the customer experience Feature:UnifiedHistogram Issues related to the Unified Histogram plugin impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Data, DataViews) labels Oct 30, 2024
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:UnifiedHistogram Issues related to the Unified Histogram plugin impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Data, DataViews)
Projects
None yet
Development

No branches or pull requests

2 participants