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] Not showing edit button in rule management UI if rule is not editable in UI #107801

Merged
merged 8 commits into from
Aug 10, 2021

Conversation

ymao1
Copy link
Contributor

@ymao1 ymao1 commented Aug 5, 2021

Resolves #107324

Summary

Edit button was showing for rules that were not editable in the stack management UI. Applied the same logic as used on the rule details page to the rule list view.

To Verify

Create a security detection rule. Navigate to Rules & Connectors UI and verify that the edit button does not show up on hover on the rule list and that the Edit action is disabled in the menu dropdown. Verify that other rule types are editable from the rule list page.

Checklist

Delete any items that are not applicable to this PR.

@ymao1 ymao1 self-assigned this Aug 6, 2021
@ymao1 ymao1 added Feature:Alerting Feature:Alerting/RulesManagement Issues related to the Rules Management UX 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.15.0 v8.0.0 labels Aug 6, 2021
@ymao1 ymao1 marked this pull request as ready for review August 6, 2021 01:36
@ymao1 ymao1 requested a review from a team as a code owner August 6, 2021 01:36
@elasticmachine
Copy link
Contributor

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

@ymao1
Copy link
Contributor Author

ymao1 commented Aug 9, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
triggersActionsUi 1.6MB 1.6MB +547.0B

History

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

cc @ymao1

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! Works as described in test.

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 and works as expected

@ymao1
Copy link
Contributor Author

ymao1 commented Aug 10, 2021

@elasticmachine merge upstream

@ymao1 ymao1 added the auto-backport Deprecated - use backport:version if exact versions are needed label Aug 10, 2021
@ymao1
Copy link
Contributor Author

ymao1 commented Aug 10, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
triggersActionsUi 1.6MB 1.6MB +547.0B

History

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

cc @ymao1

@ymao1 ymao1 merged commit 565e071 into elastic:master Aug 10, 2021
ymao1 added a commit to ymao1/kibana that referenced this pull request Aug 10, 2021
…s not editable in UI (elastic#107801)

* Should not show edit button on rule management page if rule not editable in stack

* Disabling edit button in collapsed actions

* Adding tests for collapsed item actions component

* Cleanup

Co-authored-by: Kibana Machine <[email protected]>
ymao1 added a commit that referenced this pull request Aug 10, 2021
…s not editable in UI (#107801) (#108109)

* Should not show edit button on rule management page if rule not editable in stack

* Disabling edit button in collapsed actions

* Adding tests for collapsed item actions component

* Cleanup

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
@ymao1 ymao1 deleted the alerting/editing-siem-rules branch August 10, 2021 23:34
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/RulesManagement Issues related to the Rules Management UX 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.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editing rule on Stack Rules page goes to blank screen for SIEM signal type
5 participants