[Lens] include empty rows setting for date histogram#127453
[Lens] include empty rows setting for date histogram#127453flash1293 merged 17 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
|
Pinging @elastic/kibana-app-services (Team:AppServicesSv) |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
kertal
left a comment
There was a problem hiding this comment.
DataDiscovery.team code LGTM, just tests were changed, did a quick cloud test, looks like before
|
@elasticmachine merge upstream |
There was a problem hiding this comment.
This looks great! - The new behavior makes perfect sense to me. Even on that case

I have seen users who don't like the no results page and would like something like that instead. Also heatmap looks much better now.
Just one comment from my side:
- I have this case, (breakdown by intervals and the empty row on). The missing values setting doesn't do anything on this case.
- Make we could improve the text somehow? I am not sure if the
include empty rowsmakes sense to all our users. Maybe a tooltip to explain it further?
It doesn't do anything because there are no "missing values" - count will always give you a zero which is not "missing" in the sense of xy missing value handling. This is what #127731 will take care of. |
Huh, good point, I kind of forgot this would happen. @ghudgins are we OK with this change of behavior? Instead of a "no results found" chart icon we will get an empty chart for time series. It still seems sensible (and we planned to go into this direction anyway), but important to point out. |
Oh nice, I missed the other PR. |
There was a problem hiding this comment.
Code LGTM, as I said above the new behavior makes perfect sense to me. Even the no results page, as a user I prefer it :)
I think we could improve a bit the text on the switch (or add a tooltip to explain the behavior) but I don't want to block the PR for it. I leave it to you Joe.
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
I've noticed some weird behavior, is this a bug or am I not understanding something? Mar-21-2022.15-43-58.mp4 |
|
Great catch @mbondyra - the issue is the way "drop partials" works, I'm going to fix it on this PR |
|
@mbondyra Should be fixed - I extended the "drop partials" logic to try to look up the used interval from the params before falling back to check the distanced between bucket starts. |
💚 Build SucceededMetrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
mbondyra
left a comment
There was a problem hiding this comment.
Rechecked and works well now 👌🏼
|
[retroactive agreement] |


Fixes #119474
Adding "Show empty rows" switch to date histograms which is set to true by default but can be turned off (existing date histograms are migrated). This gives the user control whether date buckets without any backing data should be filled in or not.
Agg configs
Added a new param
extendToTimeRangewhich takes the current time range and applies it as extended bounds if set.