Skip to content

Conversation

@ymao1
Copy link
Contributor

@ymao1 ymao1 commented Jan 19, 2021

Resolves #88624

Summary

Wrapping the getFeatures() API call in a try/catch block to catch 404 errors that arise when a user doesn't have the permissions to access that API.

Checklist

Delete any items that are not applicable to this PR.

@ymao1 ymao1 changed the title Alerting/feature permission [Alerting] Fixing broken Alerts view when no Global All Kibana privilege Jan 19, 2021
@ymao1 ymao1 added 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.11.0 v7.12.0 v8.0.0 labels Jan 19, 2021
@ymao1 ymao1 self-assigned this Jan 19, 2021
@ymao1 ymao1 marked this pull request as ready for review January 19, 2021 21:15
@ymao1 ymao1 requested a review from a team as a code owner January 19, 2021 21:15
@elasticmachine
Copy link
Contributor

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

Copy link
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!

@mikecote mikecote self-requested a review January 19, 2021 21:30
Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

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

Changes LGTM 👍

Copy link
Contributor

@rashmivkulkarni rashmivkulkarni left a comment

Choose a reason for hiding this comment

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

LGTM

@kibanamachine
Copy link
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
triggersActionsUi 165.2KB 165.4KB +140.0B

History

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

@ymao1 ymao1 merged commit 6d1c010 into elastic:master Jan 19, 2021
ymao1 added a commit to ymao1/kibana that referenced this pull request Jan 19, 2021
…ege (elastic#88727)

* Making kibanaFeatures an optional parameter and catching error on plugin start

* Gracefully handle 404 errors when no access to features endpoint

* Adding functional test
ymao1 added a commit to ymao1/kibana that referenced this pull request Jan 19, 2021
…ege (elastic#88727)

* Making kibanaFeatures an optional parameter and catching error on plugin start

* Gracefully handle 404 errors when no access to features endpoint

* Adding functional test
# Conflicts:
#	x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/home_page.ts
kobelb pushed a commit that referenced this pull request Jan 20, 2021
… privilege (#88727) (#88781)

* [Alerting] Fixing broken Alerts view when no Global All Kibana privilege (#88727)

* Making kibanaFeatures an optional parameter and catching error on plugin start

* Gracefully handle 404 errors when no access to features endpoint

* Adding functional test
# Conflicts:
#	x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/home_page.ts

* Fixing linting

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
kobelb pushed a commit that referenced this pull request Jan 20, 2021
…ege (#88727) (#88780)

* Making kibanaFeatures an optional parameter and catching error on plugin start

* Gracefully handle 404 errors when no access to features endpoint

* Adding functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@ymao1 ymao1 deleted the alerting/feature-permission branch February 4, 2021 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.11.0 v7.12.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alerts and Actions empty view in 7.11

6 participants