-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[ML] Migrate to React BrowserRouter and Kibana provided History. #71941
Merged
Merged
Changes from 11 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
3301ff5
[ML] Migrate to React BrowserRouter and Kibana provided History.
walterra 2cb3f93
Merge branch 'master' into ml-migrate-router
walterra b8e6abf
[ML] Fixes redirects and adds comments for router related components.
walterra 686e6d8
[ML] Pass history on as part of PageDependencies.
walterra 2c02364
[ML] Use useEffect for legacy redirect.
walterra 635e32e
[ML] Migrate breadcrumbs away from hash based urls.
walterra 85fec20
[ML] Fixes breadcrumb full refreshes.
walterra 1d9c8b4
[ML] Fixes job creation card navigation.
walterra 38994c1
[ML] Fix translations.
walterra 4859521
Merge branch 'master' into ml-migrate-router
walterra 9580a79
[ML] Fix job creation button.
walterra fad85ec
[ML] Introduces useNavigateToPath().
walterra 0cae8a1
[ML] Fix data visualizer navigation.
walterra 7afef2b
Merge branch 'master' into ml-migrate-router
walterra 7cf3944
Merge branch 'master' into ml-migrate-router
walterra 8907a16
[ML] Fix anomaly detection wizard url params.
walterra 44cc53b
[ML] Fix hash position.
walterra 24bc277
Merge branch 'master' into ml-migrate-router
walterra 4cd358b
[ML] Fix anomaly detection wizard navigation.
walterra 748cb71
Merge branch 'master' into ml-migrate-router
walterra 6d9b6f2
[ML] Fix opening of custom URLs with relative paths.
walterra 4a12842
[ML] Add jest tests for openCustomUrlWindow().
walterra d069fa7
Merge branch 'master' into ml-migrate-router
walterra 95eccbe
[ML] Delete unused code.
walterra 909b7ae
[ML] Fix link to calendars list.
walterra 5cfa29a
Merge branch 'master' into ml-migrate-router
walterra 7c43179
Merge branch 'master' into ml-migrate-router
walterra ed7d8d7
[ML] Tweak button code.
walterra 8ddbc80
Merge branch 'master' into ml-migrate-router
elasticmachine ab504a5
Merge branch 'master' into ml-migrate-router
walterra 1e64ab3
[ML] Add security to isKibanaUrl check.
walterra d329b40
Merge branch 'ml-migrate-router' of github.com:walterra/kibana into m…
walterra a4e5a2b
[ML] Fix security link.
walterra b7248f5
[Ml] Add legacy SIEM link to isKibanaUrl().
walterra dbce65d
Merge branch 'master' into ml-migrate-router
elasticmachine 12afcba
Merge branch 'master' into ml-migrate-router
elasticmachine f2c47e3
Merge branch 'master' into ml-migrate-router
elasticmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
seeing as we use this function combination a lot, could this be wrapped in a provider function that just takes the path and supplied by
useMlContext
?it should also use
PLUGIN_ID
fromkibana/x-pack/plugins/ml/common/constants/app.ts
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.
As discussed, decided to do it in this PR, we now have
useNavigateToPath()
based onuseMlContext()
, available viacontexts/kibana
. Update in fad85ec.