-
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
[TSVB][Lens] Add "open in lens" functionality for Top N #138200
Conversation
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Hey! Thanx for working on this. Some comments and questions from my side: I wonder why don't we allow the transition for multiple layers? For example: As long this is not allowed in TSVB, we should not allow the transition to Lens either The last value mode should be converted to Lens with the Reduced time range setting. Am I right @flash1293 ? There are some aggs that work on TSVB such as the cumulative sum (due to the date_histogram) but not in Lens. Should we allow this transition? cc @flash1293 In case of percentile ranks split by terms the custom color is not transferred in Lens. So for example this will transition to Lens with the default green color. |
Vlad and me discussed this - as the chart looks pretty weird due to the empty slots for the other series, we decided to not convert these for now. However, looking at it again I think it's worth doing the conversion even if it looks a little weird - better than no chart. @VladLasitsa could you change this? Sorry for the back and forth
yes exactly! I didn't mention this in the doc. We can also split it out. I'll update the doc
No, let's block these please. |
Thanx Joe! I had updated the doc some days ago if I recall correctly! |
@elasticmachine merge upstream |
@stratoula, Could you please review again? |
@elasticmachine merge upstream |
Looks pretty good, just found one bug: "Last value" mode is not respected for formula-type dimensions (like standard deviation or filter ratio) - it seems like it's just ignored for these cases. |
@flash1293, Could you please re-test? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tested and all cases work as expected. I will follow up on the moving average problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app services changes lgtm
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
History
To update your PR or re-run it, just comment with: cc @VladLasitsa |
* Create lens converter for top n * Fix test * Fix tests * Fix comments * Fix problem with timeseries * Some fixes and refactoring * Fix validation Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Joe Reuter <[email protected]>
Summary
Completes part of #138236.
As part of phasing out TSVB and Visualize all TSVB visulizations should support "open in lens" functionality.
In that PR converter for Top N was added.
Also was added support of the following stuff:
Top N in TSVB:
In Lens: