Skip to content

Conversation

@benakansara
Copy link
Contributor

@benakansara benakansara commented Nov 21, 2025

Release Notes

Users can now manually add workflow tags directly to alerts (see this PR as well)

Summary

Resolves #240376

  • Adds "Edit tags" in alert actions
  • Opens flyout when clicking on "Edit tags"
  • Flyout shows list of all kibana.alert.workflow_tags from the selected alerts
  • "Edit tags" will be disabled when all alerts are selected (as there can be 1000s of alerts with many tags)
  • "Edit tags" will not be available for Security rules

@benakansara benakansara self-assigned this Nov 21, 2025
@benakansara benakansara added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. labels Nov 21, 2025
@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label Nov 21, 2025
@benakansara benakansara marked this pull request as ready for review November 21, 2025 20:21
@benakansara benakansara requested a review from a team as a code owner November 21, 2025 20:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot requested a review from a team as a code owner November 24, 2025 16:07
@baileycash-elastic baileycash-elastic self-assigned this Nov 24, 2025
I removed useItemsAction here because that hook was designed for the alert update api, which does not easily support updating workflow tags. I moved the logic to useTagsAction instead. useItemsAction may come in use in the future if we decide to directly write to the tags field of an alert.
@baileycash-elastic
Copy link
Contributor

I picked this up earlier today.

Note: I removed useItemsAction here because that hook was designed for the alert update api, which does not easily support updating workflow tags. I moved the logic to useTagsAction instead. useItemsAction may come in use in the future if we decide to directly write to the tags field of an alert.

other improvements
@baileycash-elastic baileycash-elastic requested a review from a team as a code owner November 25, 2025 17:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/actionable-obs-team (Team:actionable-obs)

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#9973

[❌] x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts: 6/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#9975

[✅] x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts: 25/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#9980

[✅] x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/exceptions/operators_data_types/float/basic_license_essentials_tier/configs/serverless.config.ts: 25/25 tests passed.

see run history

Copy link
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT! I found a bug. If you run Kibana with --run-examles and you create an Always firing rule, and then you go to the detailed page of the rule you see the following:

Screen.Recording.2025-12-05.at.1.42.14.PM.mov

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should we test that the onAction* callbacks are being called correctly?

});
});

it('handles multiple alerts from different indices', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Maybe we can remove this test as the indices are not being taken into account anymore.

expect(onError).not.toHaveBeenCalled();
});

it('should update loading state during mutation', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for this great coverage!

nit: Maybe we can remove this test as it tests React query and there is no custom logic regarding the isLoading and isSuccess booleans.

focusButtonRef?: React.Ref<HTMLButtonElement>;
}

const FlyoutBodyCss = css`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reminder that the new flyout system is coming elastic/eui#9202 and these changes here may affect it.

<h2 data-test-subj="alerts-edit-tags-flyout-title">{i18n.EDIT_TAGS}</h2>
</EuiTitle>
<EuiText color="subdued">
<p>{headerSubtitle as string}</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
<p>{headerSubtitle as string}</p>
<p>{headerSubtitle}</p>

</EuiText>
</EuiFlyoutHeader>
<EuiFlyoutBody css={FlyoutBodyCss}>
{isLoading ? (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: As this is always set to false, probably we do not need this logic here.

Copy link
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for your patience with my comments!

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#9995

[❌] x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts: 174/200 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#9998

[✅] x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts: 25/25 tests passed.

see run history

@benakansara benakansara enabled auto-merge (squash) December 5, 2025 18:15
@benakansara benakansara merged commit 3ec41c8 into elastic:main Dec 5, 2025
12 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #23 / Alerting builtin alertTypes es_query rule runs correctly: threshold on ungrouped hit count < >
  • [job] [logs] FTR Configs #141 / EPM Endpoints Rollback APIs Package rollback input package should fail when at least one package policy has a previous revision with a different version

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
cases 1200 1208 +8
embeddableAlertsTable 564 573 +9
ml 4172 4181 +9
observability 1618 1627 +9
securitySolution 8465 8473 +8
triggersActionsUi 1094 1103 +9
total +52

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cases 1.4MB 1.4MB +12.1KB
embeddableAlertsTable 1001.0KB 1013.6KB +12.7KB
ml 5.5MB 5.6MB +12.6KB
observability 1.7MB 1.7MB +12.8KB
securitySolution 11.1MB 11.1MB +12.1KB
triggersActionsUi 1.5MB 1.5MB +12.8KB
total +75.0KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
embeddableAlertsTable 5.8KB 5.8KB +1.0B
observability 95.7KB 95.7KB -1.0B
total -0.0B

History

cc @benakansara @baileycash-elastic

JordanSh pushed a commit to JordanSh/kibana that referenced this pull request Dec 9, 2025
## Summary

Closes elastic#240377
Closes elastic#240376 (with [this
PR](elastic#243792))

<img width="1467" height="297" alt="Screenshot 2025-11-25 at 5 20 01 PM"
src="https://github.com/user-attachments/assets/124ab28e-db22-4bc8-914d-31088930afea"
/>

<img width="1469" height="640" alt="Screenshot 2025-11-25 at 5 18 06 PM"
src="https://github.com/user-attachments/assets/0a4874e1-6fbf-4355-a8b8-8d26c68b8492"
/>

## Release Notes

Users can now view and filter by workflow tags manually added to alerts

---------

Co-authored-by: Faisal Kanout <[email protected]>
JordanSh pushed a commit to JordanSh/kibana that referenced this pull request Dec 9, 2025
## Release Notes

Users can now manually add workflow tags directly to alerts (see [this
PR as well](elastic#244251))


## Summary 

Part of elastic#240376

- Adds "Edit tags" in alert actions
- Opens flyout when clicking on "Edit tags"
- Flyout shows list of all `kibana.alert.workflow_tags` from the
selected alerts
- "Edit tags" will be disabled when all alerts are selected (as there
can be 1000s of alerts with many tags)
- "Edit tags" will not be available for Security rules

---------

Co-authored-by: Bailey Cash <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Christos Nasikas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:obs-ux-management PRs authored by the obs ux management team backport:skip This PR does not require backporting release_note:feature Makes this part of the condensed release notes Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Alert Tagging] Frontend: Display, Filter, and Manage Tags in the Observability Alerts Table

6 participants