-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
remove 'No results found' treatment for single count visualization #5092
remove 'No results found' treatment for single count visualization #5092
Conversation
Addresses issue #3682 LGTM, functionally |
593d100
to
3db8819
Compare
Yeah, unfortunately, this has a lot of side effects. One example is the table vis type, which is completely empty if there are no results. Also, date histograms still show "no results found." I think we should try to make a change that's limited in scope to modifying the metric vis to show "0" when there are no results, and only when the metric agg is set to "count" or "unique count". |
3db8819
to
87c1e9f
Compare
@lukasolson I updated the PR and the screenshots. Now I'm having only the metric vis type modified (table and date histogram vis are untouched). It's shows a "no data available" message if it encounters something with no readable value. Assuming I am on the right track now, before this is merged, I'd like to discuss how to remove some repetition of code from |
Yeah, this looks good, and I agree that it makes sense to have a value in scope instead of checking all three of those values each time. LGTM. |
87c1e9f
to
69c9048
Compare
68031e5
to
a483150
Compare
a483150
to
28df328
Compare
28df328
to
586720e
Compare
After rebasing this branch, the feature is not testing out as well as it used to. It has new buggy behavior where it'll throw an error for certain kinds of metric aggregations if the result count is 0. |
Closing this for the same reason as #5253. It's not such a low fruit, it needs more attention |
Addresses: #3682 (count and unique count widget)