Skip to content

Log instead of throwing error when alert type doesn't exist#98005

Merged
mikecote merged 3 commits intoelastic:masterfrom
mikecote:alerting/fix-registerNavigation
Apr 23, 2021
Merged

Log instead of throwing error when alert type doesn't exist#98005
mikecote merged 3 commits intoelastic:masterfrom
mikecote:alerting/fix-registerNavigation

Conversation

@mikecote
Copy link
Copy Markdown
Contributor

There have been reports (#59229 (comment)) that our alerting public plugin throws unhandled errors. This PR removes the throwing and replaces it with a console log.

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

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
alerting 61.4KB 61.4KB +14.0B

History

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

cc @mikecote

@mikecote mikecote marked this pull request as ready for review April 22, 2021 15:35
@mikecote mikecote requested a review from a team as a code owner April 22, 2021 15:35
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

Copy link
Copy Markdown
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@ymao1 ymao1 left a comment

Choose a reason for hiding this comment

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

LGTM. Commented out an alert type on the server and verified it was console logged with no error thrown.

@mikecote mikecote added the auto-backport Deprecated - use backport:version if exact versions are needed label Apr 23, 2021
@mikecote mikecote merged commit 7598f57 into elastic:master Apr 23, 2021
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 98005

mikecote added a commit to mikecote/kibana that referenced this pull request Apr 23, 2021
…98005)

* Log instead of throwing error when alert type doesn't exist

* Cleanup i18n

* Update error messages
# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
mikecote added a commit that referenced this pull request Apr 23, 2021
…98121)

* Log instead of throwing error when alert type doesn't exist

* Cleanup i18n

* Update error messages
# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v7.14.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants