[TSVB][Lens] Add "open in lens" functionality for Top N#138200
[TSVB][Lens] Add "open in lens" functionality for Top N#138200VladLasitsa merged 14 commits intoelastic:mainfrom
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? |
flash1293
left a comment
There was a problem hiding this comment.
LGTM, tested and all cases work as expected. I will follow up on the moving average problem
ppisljar
left a comment
There was a problem hiding this comment.
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 <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>












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:
