-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Allow user to select existing connector of same type when fixing broken connector #89062
Conversation
@mdefazio The alert cannot be saved without either deleting or fixing the broken connector, so I think an error icon makes sense next to the name of the connector. What about the case where there is no connector of the same type to select (second screenshot in the PR). Right now we don't show any dropdown, just the callout and a button to |
Assuming it still makes sense to have an error icon next to the connector title, then I think we could keep the button (but remove the callout like we do in the first screenshot) |
…ing/broken-connector
@mdefazio What do you think? When no other connectors are available: When other connectors are available: I think the second screenshot might be a little aggressive, what do you think? In order to show the error message underneath the dropdown, I had to set |
I think it's ok they are both red. This is our invalid pattern so I think it's clear that it needs to be fixed. |
…ing/broken-connector
@mdefazio Ok thanks! One last question: When no other connectors are available, I've removed the callout and added the error icon with tooltip. Do you think that is enough differentiation between how it looks when you add a new action but need to add a connector for that action? In the screenshot below I have two broken connectors and 1 new action: |
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
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!
@elasticmachine merge upstream |
If we're concerned the state where I've just added a connector is not different enough from the connector with nothing selected, we could show the 'Select a connector' dropdown (in default state), and when they open it can simply say "No connectors found". The user can then create a connector from this view as well. I see your concern though. We can also show the error text in the same location as 'No slack connectors' right? |
…ing/broken-connector
…kibana into alerting/broken-connector
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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 👍
Tested locally and it all looks great
…fixing broken connector (elastic#89062) * Adding dropdown for selecting different connector of same type * Updating design * Cleanup and i18n * Adding functiional test * Fixing unit test * Fixing functional test * Updating design Co-authored-by: Kibana Machine <[email protected]>
…fixing broken connector (#89062) (#90001) * Adding dropdown for selecting different connector of same type * Updating design * Cleanup and i18n * Adding functiional test * Fixing unit test * Fixing functional test * Updating design Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
…-ml-jobs * 'master' of github.com:elastic/kibana: (254 commits) [Security Solution] [Detections] Remove allow_no_indices to prevent error being thrown in response of field capabilities (elastic#89927) Skip test for cloud (elastic#89450) [Fleet] Fix duplicate data streams being shown in UI (elastic#89812) Bump package dependencies (elastic#90034) [App Search] DRY helper for encoding/decoding routes that can have special characters in params (elastic#89811) TypeScript project references for Observability plugin (elastic#89320) [SearchSource] Combine sort and parent fields when serializing (elastic#89808) Made imports static (elastic#89935) [ml] migrate file_data_visualizer/import route to file_upload plugin (elastic#89640) [Discover] Adapt default column behavior (elastic#89826) Round start and end values (elastic#89030) Rename getProxyAgents to getCustomAgents (elastic#89813) [Form lib] UseField `onError` listener (elastic#89895) [APM] use latency sum instead of avg for impact (elastic#89990) migrate more core-owned plugins to tsproject ref (elastic#89975) [Logs UI] Load <LogStream> entries via async searches (elastic#86899) [APM] Abort browser requests when appropriate (elastic#89557) [Alerting] Allow user to select existing connector of same type when fixing broken connector (elastic#89062) [Data Table] Use shared CSV export mechanism (elastic#89702) chore(NA): improve logic check when installing Bazel tools (elastic#89634) ...
Resolves #87533
Summary
Fixes the issue when you have an alert associated with a connector and that connector gets deleted, you are forced to create a new connector of the same type, even if there already exists another connector of the same type. This PR adds a dropdown selector in order to quickly switch the connector.
View when there exists one or more connectors of the same type as the deleted connector
View when there is no other connector of that type (only option is to add new connector)
Checklist
Delete any items that are not applicable to this PR.