Skip to content
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

Prevent pageload on drilldown in tsvb #78005

Merged
merged 2 commits into from
Sep 24, 2020

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Sep 21, 2020

Related to #77733

TSVB has its own notion of drilldown urls (called "Item URL") in the UI in table and top n visualizations. These are currently triggering a full page load in some scenarios because they are not using core.application.navigateToUrl.

This PR fixes this by adding a RedirectAppLinks boundary for the table and calling navigateToUrl directly for the top n visualization.

The problem described in the linked issue is not 100% fixed though because the logic of navigateToUrl is not resolving ../ paths correctly, thinking e.g ../app/discover not being an app URL (#78007)

@flash1293 flash1293 marked this pull request as ready for review September 21, 2020 14:15
@flash1293 flash1293 requested a review from a team September 21, 2020 14:15
@flash1293 flash1293 added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 21, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in chrome, LGTM 🎉

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id value diff baseline
visTypeTimeseries 1.8MB +129.0B 1.8MB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@flash1293 flash1293 merged commit 5d5ce40 into elastic:master Sep 24, 2020
flash1293 added a commit to flash1293/kibana that referenced this pull request Sep 24, 2020
flash1293 added a commit that referenced this pull request Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants