[ML] File upload: Adds ability to cancel file upload#241297
[ML] File upload: Adds ability to cancel file upload#241297jgowdyelastic merged 19 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/ml-ui (:ml) |
peteharverson
left a comment
There was a problem hiding this comment.
Tested and LGTM. Confirmed I can see the new EBT events for the cancellations.
| this.setStatus({ | ||
| analysisStatus: STATUS.NOT_STARTED, | ||
| }); |
There was a problem hiding this comment.
Do we need this status here? Wouldn't aborting be sufficient, since the catch block in analyzeStandardFile sets analysisStatus to ABORTED?
There was a problem hiding this comment.
I think we should set the status here, but this is the wrong status and should be ABORTED
This function isn't currently used. I added it so we can abort all ongoing analysis from the FileUploadManager class. But nothing currently triggers that.
But this has made me realise that we do need to abort all analysis and uploads when the FileUploadManager destroy method is called.
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
|
Adds the ability to cancel file analysis and upload. Closes elastic#238706 https://github.com/user-attachments/assets/e5464ae7-77bd-4b4e-bcb9-a55e7ac60c76 For file analysis, the cancellation functionality is part of the file delete. So deleting a file while it is being analysed will kill the analysis. Analysis can be too fast to stop, so for testing it's recommended to throttle the network when selecting a file for analysis. Also adds three new telemetry items: `analysis_cancelled`, `upload_cancelled` and `session_cancelled`. To test telemetry locally, add `telemetry.localShipper: true` to `kibana.dev.yml` Events can then be found in the `ebt-kibana-browser` index. Filter for: `event_type: file_upload.file_analysis` `event_type: file_upload.file_upload` `event_type: file_upload.upload_session`
Adds the ability to cancel file analysis and upload. Closes elastic#238706 https://github.com/user-attachments/assets/e5464ae7-77bd-4b4e-bcb9-a55e7ac60c76 For file analysis, the cancellation functionality is part of the file delete. So deleting a file while it is being analysed will kill the analysis. Analysis can be too fast to stop, so for testing it's recommended to throttle the network when selecting a file for analysis. Also adds three new telemetry items: `analysis_cancelled`, `upload_cancelled` and `session_cancelled`. To test telemetry locally, add `telemetry.localShipper: true` to `kibana.dev.yml` Events can then be found in the `ebt-kibana-browser` index. Filter for: `event_type: file_upload.file_analysis` `event_type: file_upload.file_upload` `event_type: file_upload.upload_session`
Adds the ability to cancel file analysis and upload. Closes elastic#238706 https://github.com/user-attachments/assets/e5464ae7-77bd-4b4e-bcb9-a55e7ac60c76 For file analysis, the cancellation functionality is part of the file delete. So deleting a file while it is being analysed will kill the analysis. Analysis can be too fast to stop, so for testing it's recommended to throttle the network when selecting a file for analysis. Also adds three new telemetry items: `analysis_cancelled`, `upload_cancelled` and `session_cancelled`. To test telemetry locally, add `telemetry.localShipper: true` to `kibana.dev.yml` Events can then be found in the `ebt-kibana-browser` index. Filter for: `event_type: file_upload.file_analysis` `event_type: file_upload.file_upload` `event_type: file_upload.upload_session`
Adds the ability to cancel file analysis and upload.
Closes #238706
2025-10-30.14-51-27.2025-10-30.14_52_07.mp4
For file analysis, the cancellation functionality is part of the file delete. So deleting a file while it is being analysed will kill the analysis.
Analysis can be too fast to stop, so for testing it's recommended to throttle the network when selecting a file for analysis.
Also adds three new telemetry items:
analysis_cancelled,upload_cancelledandsession_cancelled.To test telemetry locally, add
telemetry.localShipper: truetokibana.dev.ymlEvents can then be found in the
ebt-kibana-browserindex.Filter for:
event_type: file_upload.file_analysisevent_type: file_upload.file_uploadevent_type: file_upload.upload_session