-
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
[ML] Trained Models: Optimize trained models Kibana API #200977
Merged
darnautov
merged 26 commits into
elastic:main
from
darnautov:ml-191939-fix-trained-models-init
Dec 4, 2024
Merged
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
66022ba
fix isNaN issue
darnautov 2d803f6
refactor types and guards
darnautov 5c3d9bf
rename types
darnautov 6509cba
move types to common
darnautov 17250c5
Merge remote-tracking branch 'origin/main' into ml-191939-fix-trained…
darnautov 356c804
wip fetch server side
darnautov c21c453
create new endpoint
darnautov 6f3d663
assign indices, refactor
darnautov fa4d474
check for dfa jobs
darnautov 8ce7687
cleanup
darnautov a654bfe
cleanup model actions
darnautov 9f5c6f1
fix ts issues
darnautov fd307ac
update jest tests
darnautov 725825c
api integration tests
darnautov a2753de
fix i18n
darnautov 44b9587
Merge branch 'main' into ml-191939-fix-trained-models-init
elasticmachine 82b7fc3
fix spaces sync
darnautov 39f3462
update test for spaces check
darnautov 280defd
fix imports
darnautov 9920c58
update tests, fix adding a built-in type
darnautov 7b4d219
Merge remote-tracking branch 'origin/ml-191939-fix-trained-models-ini…
darnautov 3f9de1b
Merge remote-tracking branch 'origin/main' into ml-191939-fix-trained…
darnautov 1c41a84
fix typo, clean up tests
darnautov d869cca
typo
darnautov 307bb40
replace transport call, update tests and types
darnautov dacbab1
fix ts issue in tests
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
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
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.
@alvarezmelissa87 could you please check this one?
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.
Yes, this is correct for when we're using the analytics selection flyout from the maps page - we want to allow users to choose jobs or models, which requires us to fetch the models. Though, looks like in
x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/page.tsx
the
AnalyticsIdSelector
should have thejobsOnly
prop set to 'true' so that we don't fetch models for the exploration page - which only pertains to jobs.Looks like I missed setting that correctly. Would you be up for adding it? Otherwise, I can create a tiny PR for it.
So in that file it should be:
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.
I mean, it also fetches all NLP models, I believe it doesn't make sense.
It should only list DFA models.