Skip to content

Fix Visualize Link Redirecting to Dashboard Linked Visualization#90243

Merged
ThomThomson merged 4 commits intoelastic:masterfrom
ThomThomson:fix/VisualizeNavLinkTracker
Feb 5, 2021
Merged

Fix Visualize Link Redirecting to Dashboard Linked Visualization#90243
ThomThomson merged 4 commits intoelastic:masterfrom
ThomThomson:fix/VisualizeNavLinkTracker

Conversation

@ThomThomson
Copy link
Copy Markdown
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 t// 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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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

Comment thread src/plugins/visualize/public/plugin.ts Outdated
!urlToSave.includes(`${VisualizeConstants.EDIT_PATH}/`) &&
this.isLinkedToOriginatingApp?.()
) {
return core.http.basePath.prepend('/app/visualize');
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 t// 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