-
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
[Search][Index Management] Removing Model deployment from Kibana #198409
Merged
Samiul-TheSoccerFan
merged 10 commits into
elastic:main
from
Samiul-TheSoccerFan:fix-model-redeploying-issue
Nov 6, 2024
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
518a96e
Disabling try again button while model is still deploying
Samiul-TheSoccerFan ab211a0
Merge branch 'main' into fix-model-redeploying-issue
elasticmachine 9910441
Merge branch 'main' into fix-model-redeploying-issue
elasticmachine 4d820d5
Merge branch 'main' into fix-model-redeploying-issue
elasticmachine 7ceb873
revert back the disable logic for try again button
Samiul-TheSoccerFan df1051a
Adding restriction to avoid redeploying models from kibana
Samiul-TheSoccerFan 2128a66
Removing model deployment from kibana - index management
Samiul-TheSoccerFan 278311a
Merge branch 'main' into fix-model-redeploying-issue
elasticmachine 73aa920
Merge branch 'main' into fix-model-redeploying-issue
elasticmachine 7ff2649
Reverting back to deployment id to point to inference id instead of m…
Samiul-TheSoccerFan 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,9 +34,9 @@ const getCustomInferenceIdMap = ( | |
? { | ||
trainedModelId: model.service_settings.model_id, | ||
isDeployable: model.service === Service.elser || model.service === Service.elasticsearch, | ||
isDeployed: modelStatsById[model.inference_id]?.state === 'started', | ||
isDeployed: modelStatsById[model.service_settings.model_id]?.state === 'started', | ||
isDownloading: Boolean(downloadStates[model.service_settings.model_id]), | ||
modelStats: modelStatsById[model.inference_id], | ||
modelStats: modelStatsById[model.service_settings.model_id], | ||
} | ||
: { | ||
trainedModelId: '', | ||
|
@@ -104,7 +104,7 @@ export const useDetailsPageMappingsModelManagement = () => { | |
Record<string, TrainedModelStat['deployment_stats'] | undefined> | ||
>((acc, { model_id: modelId, deployment_stats: stats }) => { | ||
if (modelId && stats) { | ||
acc[stats.deployment_id] = stats; | ||
acc[modelId] = stats; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is correct. Semantic text models should be referenced by their deployment ID, not their model ID, because they only reference the model ID with the deployment ID that is identical to the inference endpoint name. |
||
} | ||
return acc; | ||
}, {}) || {}; | ||
|
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.
I don't think this is correct. We should be looking at the inference ID, because we don't care about the model in general, we care about the deployment of the model that is specific to the inference ID.