-
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][Investigations] - Add check for changing alert status from bulk options #170584
[Security Solution][Investigations] - Add check for changing alert status from bulk options #170584
Conversation
@elasticmachine merge upstream |
6fbe850
to
9fb8b1a
Compare
...ecurity_solution/public/common/components/toolbar/bulk_actions/use_bulk_alert_tags_items.tsx
Outdated
Show resolved
Hide resolved
// This test is unable to be run in serverless as `reader` is not available and viewer is currently reserved | ||
// https://github.com/elastic/kibana/pull/169723#issuecomment-1793191007 | ||
// https://github.com/elastic/kibana/issues/170583 | ||
context.skip('User is readonly', () => { |
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.
If this is only broken in serverless, you could add these tags to enabled the test on ESS: { tags: ['@ess', '@brokenInServerless'] }
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.
Done. I'm not sure if I like the idea of skipping the entire suite on serverless, but hopefully the roles issue is resolved sooner than 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.
you don't have to skip the entire suite! You can just have the tags at the test level so only skip the problematic test(s).
Look at this file for example
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.
Silly me, thanks. Updated!
ab314db
to
3007a40
Compare
87c1f81
to
36ff150
Compare
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.
LGTM!
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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.
🎉
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.
DE changes LGTM
disableOnQuery: true, | ||
}, | ||
]; | ||
const alertTagsItems = useMemo( |
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 guess I will need to do the same in my PR here https://github.com/elastic/kibana/pull/170579/files#diff-0ae8cbf7c5c94adb495f9faff8a4ace978f69f2e048018ae8c1b9767d0b738d8R39 for alert assignments.
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…atus from bulk options (elastic#170584) ## Summary Addresses elastic#169684 This PR is a re-do of: elastic#169723 (With cypress tests currently skipped until proper role is available). The alert privileges needs to be added for the alert table as it wasn't added when the migration took place. An example of the privileges elsewhere is below: https://github.com/elastic/kibana/blob/75e9d46b4b3a6ff5be4ffc324ba282cea0faea0c/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/use_alerts_actions.tsx#L33 Fix: https://github.com/elastic/kibana/assets/17211684/7b354906-9b96-4ba8-b30f-4080cf7e7c2f --------- Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit 3651571) # Conflicts: # x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_alerts/alert_status.cy.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…atus from bulk options (elastic#170584) ## Summary Addresses elastic#169684 This PR is a re-do of: elastic#169723 (With cypress tests currently skipped until proper role is available). The alert privileges needs to be added for the alert table as it wasn't added when the migration took place. An example of the privileges elsewhere is below: https://github.com/elastic/kibana/blob/75e9d46b4b3a6ff5be4ffc324ba282cea0faea0c/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/use_alerts_actions.tsx#L33 Fix: https://github.com/elastic/kibana/assets/17211684/7b354906-9b96-4ba8-b30f-4080cf7e7c2f --------- Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit 3651571) # Conflicts: # x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_alerts/alert_status.cy.ts
…lert status from bulk options (#170584) (#170780) # Backport This will backport the following commits from `main` to `8.11`: - [[Security Solution][Investigations] - Add check for changing alert status from bulk options (#170584)](#170584) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Michael Olorunnisola","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-07T17:01:23Z","message":"[Security Solution][Investigations] - Add check for changing alert status from bulk options (#170584)\n\n## Summary\r\nAddresses https://github.com/elastic/kibana/issues/169684\r\n\r\nThis PR is a re-do of: https://github.com/elastic/kibana/pull/169723\r\n(With cypress tests currently skipped until proper role is available).\r\nThe alert privileges needs to be added for the alert table as it wasn't\r\nadded when the migration took place. An example of the privileges\r\nelsewhere is below:\r\n\r\nhttps://github.com/elastic/kibana/blob/75e9d46b4b3a6ff5be4ffc324ba282cea0faea0c/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/use_alerts_actions.tsx#L33\r\n\r\n\r\nFix:\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/17211684/7b354906-9b96-4ba8-b30f-4080cf7e7c2f\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"36515713a69f6021db8b959b95f7a8ff851b0aa7","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Threat Hunting:Investigations","v8.12.0","v8.11.1","v8.10.5"],"number":170584,"url":"https://github.com/elastic/kibana/pull/170584","mergeCommit":{"message":"[Security Solution][Investigations] - Add check for changing alert status from bulk options (#170584)\n\n## Summary\r\nAddresses https://github.com/elastic/kibana/issues/169684\r\n\r\nThis PR is a re-do of: https://github.com/elastic/kibana/pull/169723\r\n(With cypress tests currently skipped until proper role is available).\r\nThe alert privileges needs to be added for the alert table as it wasn't\r\nadded when the migration took place. An example of the privileges\r\nelsewhere is below:\r\n\r\nhttps://github.com/elastic/kibana/blob/75e9d46b4b3a6ff5be4ffc324ba282cea0faea0c/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/use_alerts_actions.tsx#L33\r\n\r\n\r\nFix:\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/17211684/7b354906-9b96-4ba8-b30f-4080cf7e7c2f\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"36515713a69f6021db8b959b95f7a8ff851b0aa7"}},"sourceBranch":"main","suggestedTargetBranches":["8.11","8.10"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170584","number":170584,"mergeCommit":{"message":"[Security Solution][Investigations] - Add check for changing alert status from bulk options (#170584)\n\n## Summary\r\nAddresses https://github.com/elastic/kibana/issues/169684\r\n\r\nThis PR is a re-do of: https://github.com/elastic/kibana/pull/169723\r\n(With cypress tests currently skipped until proper role is available).\r\nThe alert privileges needs to be added for the alert table as it wasn't\r\nadded when the migration took place. An example of the privileges\r\nelsewhere is below:\r\n\r\nhttps://github.com/elastic/kibana/blob/75e9d46b4b3a6ff5be4ffc324ba282cea0faea0c/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/use_alerts_actions.tsx#L33\r\n\r\n\r\nFix:\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/17211684/7b354906-9b96-4ba8-b30f-4080cf7e7c2f\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"36515713a69f6021db8b959b95f7a8ff851b0aa7"}},{"branch":"8.11","label":"v8.11.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.10","label":"v8.10.5","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kibana Machine <[email protected]>
Summary
Addresses #169684
This PR is a re-do of: #169723 (With cypress tests currently skipped until proper role is available).
The alert privileges needs to be added for the alert table as it wasn't added when the migration took place. An example of the privileges elsewhere is below:
kibana/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/use_alerts_actions.tsx
Line 33 in 75e9d46
Fix:
Screen.Recording.2023-10-25.at.12.24.18.PM.mov