-
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] Extend MlUrlGenerator to support other ML pages #75696
Merged
Merged
Changes from 7 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
5efa8cd
[ML] Extend MlUrlGenerator to support other pages
qn895 9faedfd
[ML] Change destructuring & index based ml generator
qn895 7d8aba8
[ML] Make createIndexBasedMlUrl check more explicit
qn895 40cc3c5
[ML] Remove commented code
qn895 c1f8cde
[ML] Update type for TimeRange
qn895 98dd2e5
[ML] Update redirect for dfa wizard to use constants
qn895 0e4ddd6
Merge remote-tracking branch 'upstream/master' into ml-url-generator-…
qn895 7c9318e
[ML] Rename ML_TABS to ML_PAGES
qn895 aa9398d
Merge remote-tracking branch 'upstream/master' into new-ml-url-generator
qn895 7360f32
[ML] Update core API docs
qn895 7ce5a5b
[ML] Fix perPartitionStopOnWarn typo
qn895 9e93c9d
Merge remote-tracking branch 'upstream/master' into new-ml-url-generator
qn895 8179168
[ML] Update redirect func name & fix for url with base path
qn895 c552644
[ML] Change ml url state types to its own
qn895 d8c5716
[ML] Change timeseriesexplorer to SINGLE_METRIC_VIEWER
qn895 3a1a7cb
[ML] Rename/update descriptions
qn895 ff528e5
[ML] Update calendar and filter manage
qn895 60d6799
[ML] Rename ANOMALY_DETECTION -> ANOMALY_DETECTION_JOBS_MANAGE
qn895 18b9093
[ML] Rename DATA_FRAME_ANALYTICS -> DATA_FRAME_ANALYTICS_JOBS_MANAGE
qn895 b7f1920
[ML] Update imports after moving
qn895 b7cd7fd
[ML] Update import from file instead of from context
qn895 49e56ed
[ML] Have dedicated functions for createIndexDataVisualizerUrl and cr…
qn895 64b936b
[ML] Remove hash based path in initSampleDataSets
qn895 689f0f6
Merge remote-tracking branch 'upstream/master' into new-ml-url-generator
qn895 4d6a5a0
[ML] Refactor to own folder
qn895 3751f4a
Merge remote-tracking branch 'upstream/master' into new-ml-url-generator
qn895 5eefb05
[ML] Revert changes to data/common/types
qn895 a1e9118
[ML] Fix createAnomalyDetectionCreateJobSelectType name and update ap…
qn895 2abee97
[ML] Change shape to use `page` and `pageState`
qn895 8148a6c
[ML] Remove commented block code
qn895 9962c25
[ML] Rename dataframe -> data frame, update types for MLPagestype
qn895 8248d7f
[ML] Rename DataFrameAnalyticsType
qn895 67214cd
Merge remote-tracking branch 'upstream/master' into new-ml-url-generator
qn895 a6cb7da
[ML] Update typings
qn895 8489ded
[ML] fix base type
darnautov 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
20 changes: 20 additions & 0 deletions
20
x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { useMlKibana } from './kibana_context'; | ||
import { ML_APP_URL_GENERATOR } from '../../../url_generator'; | ||
|
||
export const useMlUrlGenerator = () => { | ||
const { | ||
services: { | ||
share: { | ||
urlGenerators: { getUrlGenerator }, | ||
}, | ||
}, | ||
} = useMlKibana(); | ||
|
||
return getUrlGenerator(ML_APP_URL_GENERATOR); | ||
}; |
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
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.
@qn895 I'm slightly confused on how both these fields get used.
I don't even see any place in the code using them (nor here or in the data plugin), to the point I would consider removing
mode
🤨I'd love to sync on this.
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.
@lizozom Thanks for the feedback. Our team decided it would be good to take those parameters out as they are outdated. I have reverted the additions to the data plugin here: 5eefb05