-
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] Enables url drilldowns for range selection #95296
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
...plugins/vis_type_timeseries/public/application/components/lib/convert_series_to_datatable.ts
Outdated
Show resolved
Hide resolved
...plugins/vis_type_timeseries/public/application/components/lib/convert_series_to_datatable.ts
Show resolved
Hide resolved
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.
Code review 👍 . Just a minor nitpick really.
Tested PR on Firefox, Chrome and Safari.
Cannot really test on Safari as the TSVB panel is white (but it's same as master
so not a blocker here)
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
* Temp research code * Make it work * Cleanup * Convert series to datatable * Remove unecessary log * Minor * Fix types problem * Add unit tests * Take under consideration the override index pattern setting * Implement brush event for dual mode * Move indexpatterns fetch outside the loop Co-authored-by: Kibana Machine <[email protected]>
* Temp research code * Make it work * Cleanup * Convert series to datatable * Remove unecessary log * Minor * Fix types problem * Add unit tests * Take under consideration the override index pattern setting * Implement brush event for dual mode * Move indexpatterns fetch outside the loop Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Summary
Closes #92164
Until now, TSVB supports only the brush event by using the
APPLY_FILTER
trigger directly. As a result, the user can't create url drilldowns as they require theRANGE_SELECT_TRIGGER
instead.This PR changes the event type and also converts the data to DataTable in order for the event to work properly. The brush event actually requires only the timefilter to work correctly but as we also want to enable filter click on TSVB (currently not supported #83892) I have created the
convertSeriesToDataTable
function as a step towards this direction.How to test it
Go to Dashboard and create a timeseries TSVB visualization. On edit mode create a url drilldown (license should be updated first). You can see that now, there is an extra option
Range Selection
. You can use Discover as theGo to drilldown
Save the drilldown, switch to view mode and then brush on the TSVB vis. You should see a popup with the url drilldown you have just created as an option. Click it, it should navigate to Discover with the correct timeframe.
Checklist
Delete any items that are not applicable to this PR.