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

[AO] Remove default recovery messages for APM rule types #160928

Conversation

maryam-saeidi
Copy link
Member

@maryam-saeidi maryam-saeidi commented Jun 29, 2023

Fixes #160926
Partially reverts #159571

Summary

At the moment, we don't have any context for recovered alerts for APM rule types, and the default messages will be empty. We will bring these messages back after #158183 is done.

🧪 How to test

  • When creating an APM rule, add an action for the recovered state. You should see the default recovery message as Recovered

@maryam-saeidi maryam-saeidi self-assigned this Jun 29, 2023
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@maryam-saeidi maryam-saeidi added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" labels Jun 29, 2023
@maryam-saeidi maryam-saeidi marked this pull request as ready for review June 29, 2023 16:40
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner June 29, 2023 16:40
@elasticmachine
Copy link
Contributor

Pinging @elastic/actionable-observability (Team: Actionable Observability)

@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Jun 29, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:APM)

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Page load bundle

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

id before after diff
apm 36.2KB 36.1KB -100.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 14 16 +2
securitySolution 413 417 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 15 17 +2
securitySolution 492 496 +4
total +6

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @maryam-saeidi

@@ -16,13 +16,9 @@ import {
import { ApmRuleType } from '../../../../common/rules/apm_rule_types';
import {
anomalyMessage,
anomalyRecoveryMessage,
Copy link
Contributor

@kpatticha kpatticha Jun 30, 2023

Choose a reason for hiding this comment

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

Did you leave the messages on purpose ?

export const anomalyRecoveryMessage = i18n.translate(

if the recovery messages are not used anywhere can we clean it? We can always bring it back later

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I kept them because we will bring them back after #158183 is done.

Copy link
Member Author

Choose a reason for hiding this comment

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

Here is a ticket for it: #160969

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks 🙏

Copy link
Contributor

@kpatticha kpatticha left a comment

Choose a reason for hiding this comment

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

LGTM. just left one comment regarding the messages

@maryam-saeidi maryam-saeidi merged commit 3382061 into elastic:main Jun 30, 2023
@maryam-saeidi maryam-saeidi deleted the 160926-revert-apm-default-recovery-messages branch June 30, 2023 09:15
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2023
)

Fixes elastic#160926
Partially reverts elastic#159571

## Summary

At the moment, we don't have any context for recovered alerts for APM
rule types, and the default messages will be empty. We will bring these
messages back after elastic#158183 is
done.

## 🧪 How to test
- When creating an APM rule, add an action for the recovered state. You
should see the default recovery message as Recovered

<img
src="https://github.com/elastic/kibana/assets/12370520/eb6ef0cc-0dbc-4758-a73e-4647b068f9a1"
width="500"/>

(cherry picked from commit 3382061)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.9

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jun 30, 2023
…) (#160967)

# Backport

This will backport the following commits from `main` to `8.9`:
- [[AO] Remove default recovery messages for APM rule types
(#160928)](#160928)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Maryam
Saeidi","email":"maryam.saeidi@elastic.co"},"sourceCommit":{"committedDate":"2023-06-30T09:14:11Z","message":"[AO]
Remove default recovery messages for APM rule types (#160928)\n\nFixes
#160926\r\nPartially reverts
https://github.com/elastic/kibana/pull/159571\r\n\r\n##
Summary\r\n\r\nAt the moment, we don't have any context for recovered
alerts for APM\r\nrule types, and the default messages will be empty. We
will bring these\r\nmessages back after
#158183 is\r\ndone.\r\n\r\n## 🧪
How to test\r\n- When creating an APM rule, add an action for the
recovered state. You\r\nshould see the default recovery message as
Recovered\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/eb6ef0cc-0dbc-4758-a73e-4647b068f9a1\"\r\nwidth=\"500\"/>","sha":"3382061db4acd29c57f3b6def3e3008d46765a38","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:APM","release_note:skip","Team:
Actionable
Observability","backport:prev-minor","v8.10.0"],"number":160928,"url":"https://github.com/elastic/kibana/pull/160928","mergeCommit":{"message":"[AO]
Remove default recovery messages for APM rule types (#160928)\n\nFixes
#160926\r\nPartially reverts
https://github.com/elastic/kibana/pull/159571\r\n\r\n##
Summary\r\n\r\nAt the moment, we don't have any context for recovered
alerts for APM\r\nrule types, and the default messages will be empty. We
will bring these\r\nmessages back after
#158183 is\r\ndone.\r\n\r\n## 🧪
How to test\r\n- When creating an APM rule, add an action for the
recovered state. You\r\nshould see the default recovery message as
Recovered\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/eb6ef0cc-0dbc-4758-a73e-4647b068f9a1\"\r\nwidth=\"500\"/>","sha":"3382061db4acd29c57f3b6def3e3008d46765a38"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160928","number":160928,"mergeCommit":{"message":"[AO]
Remove default recovery messages for APM rule types (#160928)\n\nFixes
#160926\r\nPartially reverts
https://github.com/elastic/kibana/pull/159571\r\n\r\n##
Summary\r\n\r\nAt the moment, we don't have any context for recovered
alerts for APM\r\nrule types, and the default messages will be empty. We
will bring these\r\nmessages back after
#158183 is\r\ndone.\r\n\r\n## 🧪
How to test\r\n- When creating an APM rule, add an action for the
recovered state. You\r\nshould see the default recovery message as
Recovered\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/eb6ef0cc-0dbc-4758-a73e-4647b068f9a1\"\r\nwidth=\"500\"/>","sha":"3382061db4acd29c57f3b6def3e3008d46765a38"}}]}]
BACKPORT-->

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" Team:APM All issues that need APM UI Team support v8.9.0 v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AO] Revert APM default recovery messages
7 participants