-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Lens] Fixes problem with timeshift in formula and breakdown (#150406)
## Summary Closes #146200 This bug can easily be replicated with the following scenario: 1. Add a date histogram on the x axis 2. Add a formula with shift (use different timeshifts) i.e. count() - count(shift=1d) 3. Add a terms breakdown and switch off the Aggregate by this function first The fi is easy, it fails on the each look as it requires the agg to have buckets but it doesnt at this scenario. I also added a test. How it looks now <img width="1049" alt="image" src="https://user-images.githubusercontent.com/17003240/217195447-3b6edb8d-0814-4148-888d-9bd64e924c76.png"> ### Checklist - [ ] [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
- Loading branch information
Showing
2 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters