-
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
[RAC][Observability] Add status update actions in row menu #108698
[RAC][Observability] Add status update actions in row menu #108698
Conversation
…s and adds logic for switching between signal.status and workflow status when updating alerts in .siem-signals
… to use WORKFLOW_STATUS instead of ALERT_STATUS
…dtion to KQL string
adds replace ALERT_STATUS with ALERT_WORKFLOW_STATUS and updates tests and adds logic for switching between signal.status and workflow status when updating alerts in .siem-signals
…us' and not { signals: {status }} in alerts client
optionally use fields api in requests if _source does not contain authz properties
…emd/kibana into tgrid-bulk-actions-rbac-update
…g ids param in alerts bulk update. Adds integration tests for detection engine testing update alerts with new alerts as data client routes
…test fix a bug where we were not waiting for updates to complete when usin…
Pinging @elastic/security-solution (Team: SecuritySolution) |
x-pack/plugins/timelines/public/components/t_grid/body/index.tsx
Outdated
Show resolved
Hide resolved
@@ -48,6 +28,57 @@ export const useStatusBulkActionItems = ({ | |||
onUpdateFailure, | |||
}: StatusBulkActionsProps) => { | |||
const { updateAlertStatus } = useUpdateAlertsStatus(); | |||
const { addSuccess, addError, addWarning } = useAppToasts(); |
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.
Toast management encapsulated in the public component to prevent duplication. Still calls optional onUpdateSuccess
and onUpdateFailure
when needed
@@ -94,6 +125,7 @@ export const useStatusBulkActionItems = ({ | |||
key="open" | |||
data-test-subj="open-alert-status" | |||
onClick={() => onClickUpdate(FILTER_OPEN)} | |||
size="s" |
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.
Unification of item sizes
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.
this all looks good from the security solution side of things and works for me, i should be able to build off this with the acknowledged
migrations pretty easily 🚀
x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx
Outdated
Show resolved
Hide resolved
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!
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsAPI count
API count missing comments
Non-exported public API item count
History
To update your PR or re-run it, just comment with: cc @semd |
…08698) * use rac alerts bulk_update * cleanup * adds replace ALERT_STATUS with ALERT_WORKFLOW_STATUS and updates tests and adds logic for switching between signal.status and workflow status when updating alerts in .siem-signals * allow object and string types in query param, fixed single update api to use WORKFLOW_STATUS instead of ALERT_STATUS * adds additional integration test for when query is a DSL object in addtion to KQL string * optionally use fields api in requests if _source does not contain authz properties * integrate bulk update to all hook calls * adds fields support, fixes bug where we were writing to 'signals.status' and not { signals: {status }} in alerts client * clean up and fixes * fix a bug where we were not waiting for updates to complete when using ids param in alerts bulk update. Adds integration tests for detection engine testing update alerts with new alerts as data client routes * take index name from ecsData props * pr suggestions * some more type fixes * refactor and type fixes * snapshot updated * add status update actions to row context menu * refactor to use dispatch function in o11y actions * comment removed * bring alertConsumer back * bring indexNames back * check capabilities to show status update items Co-authored-by: Devin Hurley <devin.hurley@elastic.co>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…108992) * use rac alerts bulk_update * cleanup * adds replace ALERT_STATUS with ALERT_WORKFLOW_STATUS and updates tests and adds logic for switching between signal.status and workflow status when updating alerts in .siem-signals * allow object and string types in query param, fixed single update api to use WORKFLOW_STATUS instead of ALERT_STATUS * adds additional integration test for when query is a DSL object in addtion to KQL string * optionally use fields api in requests if _source does not contain authz properties * integrate bulk update to all hook calls * adds fields support, fixes bug where we were writing to 'signals.status' and not { signals: {status }} in alerts client * clean up and fixes * fix a bug where we were not waiting for updates to complete when using ids param in alerts bulk update. Adds integration tests for detection engine testing update alerts with new alerts as data client routes * take index name from ecsData props * pr suggestions * some more type fixes * refactor and type fixes * snapshot updated * add status update actions to row context menu * refactor to use dispatch function in o11y actions * comment removed * bring alertConsumer back * bring indexNames back * check capabilities to show status update items Co-authored-by: Devin Hurley <devin.hurley@elastic.co> Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co> Co-authored-by: Devin Hurley <devin.hurley@elastic.co>
Summary
useStatusBulkActionItems
public hook.<Action>
component props in order to show the loader.Checklist
Delete any items that are not applicable to this PR.