-
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] Fixes handling of built-in models #92154
[ML] Fixes handling of built-in models #92154
Conversation
Pinging @elastic/ml-ui (:ml) |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @darnautov |
.filter(({ description }) => { | ||
return description !== undefined; | ||
.filter(({ description: d }) => { | ||
return d !== undefined; |
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.
Tiny nit: could be implicit return.
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.
do you mean .filter(({ description: d }) => d !== undefined)
?
...model, | ||
// Extract model types | ||
...(typeof model.inference_config === 'object' |
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.
Do we need to check if this is not null
?
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.
It can't be null
. And it seems like now it's always an object
. A while ago it was undefined for the build-in model lang_ident_model_1
, but now it contains classification
config.
So it's ok to keep as is
Tested and LGTM |
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.
Tested and LGTM ⚡
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.
Code LGTM
* [ML] add description column and details tab * [ML] restrict build-in models actions * [ML] add description to the details tab * [ML] add flex with wrap to the type column * [ML] remove unused code for filtering
* [ML] add description column and details tab * [ML] restrict build-in models actions * [ML] add description to the details tab * [ML] add flex with wrap to the type column * [ML] remove unused code for filtering
* [ML] add description column and details tab * [ML] restrict build-in models actions * [ML] add description to the details tab * [ML] add flex with wrap to the type column * [ML] remove unused code for filtering Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
* [ML] add description column and details tab * [ML] restrict build-in models actions * [ML] add description to the details tab * [ML] add flex with wrap to the type column * [ML] remove unused code for filtering Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
Summary
Fixes #85179, preventing the user deleting the built-in
lang_ident
model, and displaying the description of the model in a column in the table and in the details tab of the expanded row.build-in
type for prepackaged models and renders it under theType
columndescription
column to the models' tabledescription
to the model details tabEuiInMemoryTable
Checklist