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

Fix missing alerts menu #94210

Merged
merged 1 commit into from
Mar 10, 2021
Merged

Fix missing alerts menu #94210

merged 1 commit into from
Mar 10, 2021

Conversation

smith
Copy link
Contributor

@smith smith commented Mar 9, 2021

In #92898 the alerts plugin was renamed to alerting. We were checking if this plugin is enabled with a check like 'alerts' in plugins, which is not type checked.

Change the check to use !!plugins.alerting so this type of change will be caught in the future.

Rename get_alert_capabilities to get_alerting_capabilities to match the name of the exported function. Add a test for it.

In elastic#92898 the `alerts` plugin was renamed to `alerting`. We were checking if this plugin is enabled with a check like `'alerts' in plugins`, which is not type checked.

Change the check to use `!!plugins.alerting` so this type of change will be caught in the future.

Rename `get_alert_capabilities` to `get_alerting_capabilities` to match the name of the exported function. Add a test for it.
@smith smith added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.13.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Mar 9, 2021
@smith smith requested a review from a team as a code owner March 9, 2021 21:40
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Mar 9, 2021
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@ogupte ogupte left a comment

Choose a reason for hiding this comment

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

🚢

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@smith smith merged commit 0ac5e4d into elastic:master Mar 10, 2021
@smith smith deleted the nls/alert-menu branch March 10, 2021 00:53
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 10, 2021
In elastic#92898 the `alerts` plugin was renamed to `alerting`. We were checking if this plugin is enabled with a check like `'alerts' in plugins`, which is not type checked.

Change the check to use `!!plugins.alerting` so this type of change will be caught in the future.

Rename `get_alert_capabilities` to `get_alerting_capabilities` to match the name of the exported function. Add a test for it.
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #94250

Successful backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Mar 10, 2021
In #92898 the `alerts` plugin was renamed to `alerting`. We were checking if this plugin is enabled with a check like `'alerts' in plugins`, which is not type checked.

Change the check to use `!!plugins.alerting` so this type of change will be caught in the future.

Rename `get_alert_capabilities` to `get_alerting_capabilities` to match the name of the exported function. Add a test for it.

Co-authored-by: Nathan L Smith <[email protected]>
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 release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants