-
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
[Security Solution] ML jobs are missing on rule details/editing/update pages #202700
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management) |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
This issue would occur for all the rules that reference uninstalled Advanced Analytics (ML) packages and use ML jobs from those. |
@xcrzx @approksiu The ML jobs UI component shouldn't reset its state to empty if it can't find a job in the list. This should only be done by the user explicitly. I think we should try to fix this within Milestone 3, but the priority is lower than fixing issues that are not field-specific. |
**Resolves: elastic#202700 ## Summary This PR resolves an issue where an ML job referenced by a rule does not appear in the Rule Details, Upgrade flyout, or Rule Editing pages if the job is missing or not yet created. For example, if you had an ML rule with a single selected job and this job was not available, you would see a blank space instead of job name. ## Screenshots **Rule Details: Before** <img width="578" alt="Schermafbeelding 2025-01-03 om 13 20 32" src="https://github.com/user-attachments/assets/e8bc073f-0420-4888-8dd9-b4dc70fd0682" /> **Rule Details: After** <img width="578" alt="Schermafbeelding 2025-01-03 om 13 20 05" src="https://github.com/user-attachments/assets/bd4d0f91-8adf-45c5-8d31-b42ac483027b" /> **Rule Edit: Before** <img width="427" alt="Schermafbeelding 2025-01-03 om 13 21 21" src="https://github.com/user-attachments/assets/bffcb871-8cfc-4f50-8d19-c14b122c0be4" /> **Rule Edit: After** <img width="427" alt="Schermafbeelding 2025-01-03 om 13 21 09" src="https://github.com/user-attachments/assets/be8f60b9-17a6-48d2-978c-cfa63c426a08" /> **Upgrade flyout: Before** <img width="1066" alt="Schermafbeelding 2025-01-03 om 13 22 30" src="https://github.com/user-attachments/assets/553ff837-95cf-4670-91f1-dffb169ec505" /> **Upgrade flyout: After** <img width="1066" alt="Schermafbeelding 2025-01-03 om 13 21 55" src="https://github.com/user-attachments/assets/150cfb82-bc69-4aeb-a20a-03f54c7edc70" /> ## Testing You can test by removing an ML job referenced by a rule in `http://localhost:<port>/kbn/app/ml/jobs`. (cherry picked from commit e04b200)
**Resolves: elastic#202700 ## Summary This PR resolves an issue where an ML job referenced by a rule does not appear in the Rule Details, Upgrade flyout, or Rule Editing pages if the job is missing or not yet created. For example, if you had an ML rule with a single selected job and this job was not available, you would see a blank space instead of job name. ## Screenshots **Rule Details: Before** <img width="578" alt="Schermafbeelding 2025-01-03 om 13 20 32" src="https://github.com/user-attachments/assets/e8bc073f-0420-4888-8dd9-b4dc70fd0682" /> **Rule Details: After** <img width="578" alt="Schermafbeelding 2025-01-03 om 13 20 05" src="https://github.com/user-attachments/assets/bd4d0f91-8adf-45c5-8d31-b42ac483027b" /> **Rule Edit: Before** <img width="427" alt="Schermafbeelding 2025-01-03 om 13 21 21" src="https://github.com/user-attachments/assets/bffcb871-8cfc-4f50-8d19-c14b122c0be4" /> **Rule Edit: After** <img width="427" alt="Schermafbeelding 2025-01-03 om 13 21 09" src="https://github.com/user-attachments/assets/be8f60b9-17a6-48d2-978c-cfa63c426a08" /> **Upgrade flyout: Before** <img width="1066" alt="Schermafbeelding 2025-01-03 om 13 22 30" src="https://github.com/user-attachments/assets/553ff837-95cf-4670-91f1-dffb169ec505" /> **Upgrade flyout: After** <img width="1066" alt="Schermafbeelding 2025-01-03 om 13 21 55" src="https://github.com/user-attachments/assets/150cfb82-bc69-4aeb-a20a-03f54c7edc70" /> ## Testing You can test by removing an ML job referenced by a rule in `http://localhost:<port>/kbn/app/ml/jobs`.
**Resolves: elastic#202700 ## Summary This PR resolves an issue where an ML job referenced by a rule does not appear in the Rule Details, Upgrade flyout, or Rule Editing pages if the job is missing or not yet created. For example, if you had an ML rule with a single selected job and this job was not available, you would see a blank space instead of job name. ## Screenshots **Rule Details: Before** <img width="578" alt="Schermafbeelding 2025-01-03 om 13 20 32" src="https://github.com/user-attachments/assets/e8bc073f-0420-4888-8dd9-b4dc70fd0682" /> **Rule Details: After** <img width="578" alt="Schermafbeelding 2025-01-03 om 13 20 05" src="https://github.com/user-attachments/assets/bd4d0f91-8adf-45c5-8d31-b42ac483027b" /> **Rule Edit: Before** <img width="427" alt="Schermafbeelding 2025-01-03 om 13 21 21" src="https://github.com/user-attachments/assets/bffcb871-8cfc-4f50-8d19-c14b122c0be4" /> **Rule Edit: After** <img width="427" alt="Schermafbeelding 2025-01-03 om 13 21 09" src="https://github.com/user-attachments/assets/be8f60b9-17a6-48d2-978c-cfa63c426a08" /> **Upgrade flyout: Before** <img width="1066" alt="Schermafbeelding 2025-01-03 om 13 22 30" src="https://github.com/user-attachments/assets/553ff837-95cf-4670-91f1-dffb169ec505" /> **Upgrade flyout: After** <img width="1066" alt="Schermafbeelding 2025-01-03 om 13 21 55" src="https://github.com/user-attachments/assets/150cfb82-bc69-4aeb-a20a-03f54c7edc70" /> ## Testing You can test by removing an ML job referenced by a rule in `http://localhost:<port>/kbn/app/ml/jobs`.
**Resolves: elastic#202700 ## Summary This PR resolves an issue where an ML job referenced by a rule does not appear in the Rule Details, Upgrade flyout, or Rule Editing pages if the job is missing or not yet created. For example, if you had an ML rule with a single selected job and this job was not available, you would see a blank space instead of job name. ## Screenshots **Rule Details: Before** <img width="578" alt="Schermafbeelding 2025-01-03 om 13 20 32" src="https://github.com/user-attachments/assets/e8bc073f-0420-4888-8dd9-b4dc70fd0682" /> **Rule Details: After** <img width="578" alt="Schermafbeelding 2025-01-03 om 13 20 05" src="https://github.com/user-attachments/assets/bd4d0f91-8adf-45c5-8d31-b42ac483027b" /> **Rule Edit: Before** <img width="427" alt="Schermafbeelding 2025-01-03 om 13 21 21" src="https://github.com/user-attachments/assets/bffcb871-8cfc-4f50-8d19-c14b122c0be4" /> **Rule Edit: After** <img width="427" alt="Schermafbeelding 2025-01-03 om 13 21 09" src="https://github.com/user-attachments/assets/be8f60b9-17a6-48d2-978c-cfa63c426a08" /> **Upgrade flyout: Before** <img width="1066" alt="Schermafbeelding 2025-01-03 om 13 22 30" src="https://github.com/user-attachments/assets/553ff837-95cf-4670-91f1-dffb169ec505" /> **Upgrade flyout: After** <img width="1066" alt="Schermafbeelding 2025-01-03 om 13 21 55" src="https://github.com/user-attachments/assets/150cfb82-bc69-4aeb-a20a-03f54c7edc70" /> ## Testing You can test by removing an ML job referenced by a rule in `http://localhost:<port>/kbn/app/ml/jobs`.
PR: #205483
Summary
Some machine learning (ML) jobs are not displayed when viewing, editing, or updating rules.
Steps to Reproduce
High Mean of RDP Session Duration
, or another ML rule. From my observation, around 30-40% of ML rules appear to be affected by this issue.Issue Details
In all affected cases:
machine_learning_job_id
is present in the rule configuration.Affected Components
Rule Details Page
Rule Editing Page
Rule Update Flyout (View Mode)
Rule Update Flyout (Edit Mode)
Note
From the component logic, it appears that we fetch a list of all security ML jobs. Next, we check if the rule's jobs are in that list. We then display only the jobs from the list.
The text was updated successfully, but these errors were encountered: