Closed saikatsarkar056 closed 1 week ago
@elastic/kibana-management It would be great if I can get a review for this PR.
@elasticmachine merge upstream
Thanks a lot for addressing this use case, @saikatsarkar056! After testing the changes locally, I'd just want to confirm that the UX with the modal blocking the user from saving the mappings is the best choice. If I understand correctly, the modal will now wait until the model is downloaded and deployed. That could take a really long time. Should we consider starting the download and deployment of the model in the background instead?
@yuliacech Please notice this code-block. The model download and deployment are occurring in the background. Only the check to determine if a model has already been downloaded is performed asynchronously, which is quite fast.
Furthermore, I've relocated the CreateInferenceEndpoint block to its own function, allowing us to call it after the model has been downloaded and deployed.
The modifications in this pull request indicate that the model download, model deployment, and CreateInferenceEndpoint processes occur one-after-another in the background.
@yuliacech Thank you for the feedback. Can you please review this PR once again?
Total count of every public API that lacks a comment. Target amount is 0. Run
node scripts/build_api_docs --plugin [yourplugin] --stats comments
for more detailed information.
id | before | after | diff |
---|---|---|---|
ml |
66 | 67 | +1 |
Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app
id | before | after | diff |
---|---|---|---|
indexManagement |
655.2KB | 655.8KB | +629.0B |
Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0.
Run node scripts/build_api_docs --plugin [yourplugin] --stats exports
for more detailed information.
id | before | after | diff |
---|---|---|---|
ml |
100 | 101 | +1 |
To update your PR or re-run it, just comment with:
@elasticmachine merge upstream
cc @saikatsarkar056
When the trained model is not yet downloaded, it can't be deployed. This PR has covered the following:
How to test the changes locally
./gradlew :run -Drun.license_type=trial
yarn start