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

[Alerting UI] Disable "Save" button for Alerts with broken Connectors #80579

Merged
merged 4 commits into from
Oct 16, 2020

Conversation

ymao1
Copy link
Contributor

@ymao1 ymao1 commented Oct 14, 2020

Resolves #79672

Summary

Performs check to verify that all actions on an alert are tied to an existing connector. Disables the save button if there are any actions with broken (deleted) connectors. Previously the "Save" button was enabled but would return an error on save.

Disabled "Save" button for user with Action = 'All' privilege
Screen Shot 2020-10-15 at 8 40 56 AM

Disabled "Save" button for user with Action = 'Read' privilege
Screen Shot 2020-10-15 at 8 41 05 AM

Checklist

Delete any items that are not applicable to this PR.

@ymao1 ymao1 changed the title Alerting/save button broken connector [Alerting UI] Disable "Save" button for Alerts with broken Connectors Oct 15, 2020
@ymao1 ymao1 self-assigned this Oct 15, 2020
@ymao1 ymao1 added Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.11.0 v8.0.0 labels Oct 15, 2020
@ymao1 ymao1 marked this pull request as ready for review October 15, 2020 12:49
@ymao1 ymao1 requested a review from a team as a code owner October 15, 2020 12:49
@elasticmachine
Copy link
Contributor

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

@mikecote mikecote self-requested a review October 15, 2020 13:56
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.

LGTM once the fix works after deleting all connectors (see comment below). Great work!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id before after diff
triggersActionsUi 1.5MB 1.5MB +847.0B

History

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

Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

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

LGTM

@ymao1 ymao1 merged commit a377204 into elastic:master Oct 16, 2020
ymao1 added a commit to ymao1/kibana that referenced this pull request Oct 16, 2020
…elastic#80579)

* Adding check for broken connectors in action form

* Adding check for broken connectors in action form

* Adding unit test

* PR fixes
ymao1 added a commit that referenced this pull request Oct 16, 2020
…#80579) (#80816)

* Adding check for broken connectors in action form

* Adding check for broken connectors in action form

* Adding unit test

* PR fixes
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 19, 2020
* master: (51 commits)
  [Discover] Unskip flaky test (elastic#80670)
  Fix security solution template label (elastic#80754)
  [Ingest]: ignore 404, check if there are transforms in results. (elastic#80721)
  Moving loader to logo in header, add a slight 250ms pause (elastic#78879)
  [Security Solution][Cases] Fix bug with case connectors (elastic#80642)
  Update known-plugins.asciidoc (elastic#75388)
  [Lens] Add median operation (elastic#79453)
  Fix navigateToApp logic when navigating to the current app. (elastic#80809)
  [Visualizations] Fix bad color mapping with multiple split series (elastic#80801)
  [ILM] Add esErrorHandler for the new es js client (elastic#80302)
  Fix codeowners (elastic#80826)
  skip flaky suite (elastic#79463)
  [Timelion] Remove kui usage (elastic#80287)
  [Ingest Manager] add skipIfNoDockerRegistry to package_install_complete test (elastic#80779)
  [Alerting UI] Disable "Save" button for Alerts with broken Connectors (elastic#80579)
  Allow the default space to be accessed via `/s/default` (elastic#77109)
  Add script to identify plugin dependencies for TS project references migration (elastic#80463)
  [Search] Client side session service (elastic#76889)
  feat: 🎸 add separator for different context menu groups (elastic#80498)
  Lazy load reporting (elastic#80492)
  ...
@mikecote mikecote added release_note:enhancement and removed release_note:skip Skip the PR/issue when compiling release notes labels Dec 16, 2020
@ymao1 ymao1 deleted the alerting/save-button-broken-connector branch February 4, 2021 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting release_note:enhancement Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Save" Button is enabled for Alerts containing Actions with broken Connector
5 participants