-
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
[Dashboard] Fix Missing Legacy Redirect #87246
[Dashboard] Fix Missing Legacy Redirect #87246
Conversation
Pinging @elastic/kibana-presentation (Team:Presentation) |
@elasticmachine merge upstream |
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.
lgtm
id="dashboard.noMatchRoute.bannerText" | ||
defaultMessage="Dashboard application doesn't recognize this route: {route}." | ||
values={{ | ||
route: <EuiLink href={window.location.href}>{history.location.pathname}</EuiLink>, |
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.
nit: idk if it's worth making the invalid route a link if it's invalid but not a big deal either way
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.
Hahah, yeah that's definitely true. I copied this from Visualize and didn't even look at that, but it seems weird that you can just keep refreshing the error by clicking the link. Will remove.
…homson/kibana into fix/dashboardMissingLegacyRedirect
💛 Build succeeded, but was flaky
Test FailuresChrome X-Pack UI Plugin Functional Tests.x-pack/test/plugin_functional/test_suites/resolver.Resolver test app when the user is interacting with the node with ID: secondChild when the user hovers over the primary button when the user has clicked the primary button (which selects the node.) should render as expectedStandard Out
Stack Trace
Metrics [docs]Module Count
Async chunks
Distributable file count
History
To update your PR or re-run it, just comment with: |
* Added dashboard no match to run legacy redirect. Added functional test coverage
* Added dashboard no match to run legacy redirect. Added functional test coverage
Summary
Fixes #87181 by adding some missing BWC from the deangularization effort.
Adds a new component,
DashboardNoMatch
to the end of the dashboard router. It attempts to migrate legacy dashboard urls when the route is not recognized. Copied from similar logic in the visualize app.Additionally adds a new functional test which covers this by testing a markdown link with legacy url redirecting from one dashboard to another.
Checklist
Delete any items that are not applicable to this PR.
For maintainers