Skip to content
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

[APM] Show all alerts in service views & service inventory for consistency with entity inventory #202025

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

iblancof
Copy link
Contributor

Summary

Closes #201565

This update ensures that the service inventory and service views display all alerts grouped by service.name, regardless of index pattern. This provides consistent alert visibility across services.

Note

The presence of two services with alerts in the "before" state, rather than one, is not due to any changes made in this PR, but rather because the alerts stopped being active while doing the screenshots.

Screen Before After
Entity inventory Screenshot 2024-11-27 at 17 04 01 Screenshot 2024-11-27 at 17 13 58
Service inventory Screenshot 2024-11-27 at 17 04 54 Screenshot 2024-11-27 at 17 14 14
Service detail overview Screenshot 2024-11-27 at 17 04 34 Screenshot 2024-11-27 at 17 05 27
Service detail alerts Screenshot 2024-11-27 at 17 04 45 Screenshot 2024-11-27 at 17 05 49

Regarding the AC "Clicking through to the alerts app for the service should filter by just the entity ID," this was already working as expected.

Service detail alerts tab Alerts app
Screenshot 2024-11-27 at 17 18 57 Screenshot 2024-11-27 at 17 18 50

@iblancof iblancof self-assigned this Nov 27, 2024
@elasticmachine
Copy link
Contributor

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!

@iblancof
Copy link
Contributor Author

/ci

@@ -65,9 +65,6 @@ export const useDetailViewRedirect = () => {
if (isBuiltinEntityOfType('service', entity)) {
return serviceOverviewLocator?.getRedirectUrl({
serviceName: identityFieldsValue[identityFields[0]],
environment: entity.service?.environment
? castArray(entity.service?.environment)[0]
: undefined,
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change was agreed with product to avoid inconsistent data when accessing the service detail view with an environment other than "All" by default.

@iblancof iblancof added release_note:skip Skip the PR/issue when compiling release notes apm backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.18.0 labels Nov 27, 2024
@elasticmachine
Copy link
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #16 / useDetailViewRedirect getEntityRedirectUrl should return the correct URL for service entity
  • [job] [logs] Jest Tests #16 / useDetailViewRedirect getEntityRedirectUrl should return the correct URL for service entity

cc @iblancof

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.18.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Show all alerts in service views & service inventory for consistency with entity inventory
2 participants