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

Fix Visualize Link Redirecting to Dashboard Linked Visualization #90243

Merged
merged 4 commits into from
Feb 5, 2021

Conversation

ThomThomson
Copy link
Contributor

Summary

FIxes #90221 (option 2) by using onBeforeNavLinkSaved to return the nav link only when the state transfer service is not linked to an originating app. Otherwise it will return the visualize listing page.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@ThomThomson ThomThomson added Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas Feature:Vis Editor Visualization editor issues v8.0.0 Project:TimeToVisualize v7.12.0 labels Feb 3, 2021
@ThomThomson ThomThomson requested a review from a team February 3, 2021 22:22
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

Copy link
Contributor

@wylieconlon wylieconlon left a comment

Choose a reason for hiding this comment

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

Tested that this only affects the flow you're talking about, but does not affect the flow if you started from Visualize. LGTM

!urlToSave.includes(`${VisualizeConstants.EDIT_PATH}/`) &&
this.isLinkedToOriginatingApp?.()
) {
return core.http.basePath.prepend('/app/visualize');
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm surprised this isn't pulled out into a separate constant of some kind, in case it ever changes or becomes configurable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was surprised about this too - though it was only used once before this PR so maybe this is the right time to pull it out. Will add it to the constants.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
visualize 28.0KB 28.8KB +728.0B

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Dashboard Dashboard related features Feature:Vis Editor Visualization editor issues Project:TimeToVisualize release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Time to Visualize] Visualize Breadcrumb Lost
4 participants