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
[ResponseOps][Alerting] Provide indication of how many rules are using connector on Connector List view #137181
[ResponseOps][Alerting] Provide indication of how many rules are using connector on Connector List view #137181
Conversation
…doakalexi/kibana into alerting/warn-before-deleting-connector
Pinging @elastic/response-ops (Team:ResponseOps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified that this works as expected! Nice job :) Left some minor comments.
...i/public/application/sections/actions_connectors_list/components/actions_connectors_list.tsx
Outdated
Show resolved
Hide resolved
...i/public/application/sections/actions_connectors_list/components/actions_connectors_list.tsx
Outdated
Show resolved
Hide resolved
...i/public/application/sections/actions_connectors_list/components/actions_connectors_list.tsx
Outdated
Show resolved
Hide resolved
Some thoughts: Are we saying 'At least' because we are unable to determine which connector(s) is used in a rule? Related: Assuming someone wants to clean up their connectors, can I skip deleting those connectors that are still used in rules? Maybe have a checkbox or something that says 'Skip connectors that are used in rules'? Should we explain further what happens when I delete a connector used in a rule? Does the action also get deleted? Or does that rule just cause Should we wrap the warning text in a (warning) callout? |
@mdefazio We know which connectors are used in the rule, we can show that. I was just not sure the best way to display that in the pop-up. I think that it will just cause an and sure, I can wrap the text in a warning callout too! |
I think we'll eventually want to be able to see all the rules using a specific connector, somehow. Maybe a link from the connector to a filtered rule view? Anyway, not for this PR! But if you assume we'll eventually have that, I'm not sure telling customers "this connector is used in 17 rules" is going to be much help. OTOH, it does feel like the "at least" wording is a bit off. Could we change it to "This connector is used in multiple rules." for now?
If that means some additional decoration around the text, +1 for me. The warning icon is good, but maybe not quite enough ...
Correct, when the rule's action group is triggered, the action will start processing and eventually fail since the connector no longer exists. Remediation for that will be yet another issue (maybe delete the action, or ask the user if they want the actions deleted, etc). Adding a bit of additional text indicating errors will be generated if the rule attempts to run those actions would be good. Will be tough to make that understandable and short, I think! :-). @lcawl will have to help us with that, because we don't want to scare users into thinking the rule will fail, just attempting to run that action when the rule is triggered will fail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tried it out, worked as expected
@elasticmachine merge upstream |
I've been trying to help on this, but honestly am torn which way to go. While I'm not sure either of these are correct, here's three angles we can take for this:
|
@elasticmachine merge upstream |
We'll create an issue to help us address some of the follow on concerns of deleting a connector that is used in a rule. |
Ya, out of reach at the moment - will require some additional analysis to see if this is feasible, etc. We can use the issue that Alexi just opened ^^^ to track.
Interesting. I think my only take would be that the customer is probably going to expect to know which ones will and won't be deleted, which makes the UX more confusing. I think in the future we should probably allow filtering for "connectors not used by any rules" (which is complicated / confusing as a connector may be used by a rule that a user can't see because of feature privs), which would provide that sort of UX.
Feels a little overbearing, however, I think it may be worth it, considering this is not something we expect to happen often, and we DO want the user to understand that future action executions for these will fail. I think we'll need to have @shanisagiv1 and @mikecote provide some thoughts about this ... |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Good points @pmuellr, I think to keep the scope of this PR small, I'm ok with the current state of this PR and the follow up issues being created. Let's get @lcawl's feedback on the labels. My only nit is the Maybe we can keep the wording generic for now until we have better UX. If it helps, @lcawl my thinking is below as a starting point: Copy when deleting a single connector: |
…doakalexi/kibana into alerting/warn-before-deleting-connector
Thanks! The copy has been updated in this commit |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Hi Sorry for my late reply here, missed that. But I would suggest the following and pls let me know wdyt and if there are other issues that refer to it already:
Thanks |
++ we could inspire from the saved-objects relationship flyout to display rules, cases, that reference a connector..
We opted to have a generic message at this time (ex: Let's make sure you echo your feedback there 🙏 We'll lean on your for priority of this follow up issue. |
Resolves #86697
Summary
We wanted to let the users know of the impact deleting the connector. I Added a warning message to the delete confirmation pop-up if a user tries to delete connectors that are being used by a rule.
Single:
Multiple:
Checklist
To Verify