-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. #83226
Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. #83226
Conversation
…uping functionality for PagerDuty incidents. Set default savedObjectId as {{alertInstanceId}} for ServiceNow, Resilient and Jira
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
...actions_ui/public/application/components/builtin_action_types/pagerduty/pagerduty_params.tsx
Outdated
Show resolved
Hide resolved
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.
I took a look at the PR / approach today and I think it would be better to move this logic outside the connector code as it now couples them to the alert. I wonder if we can do something from the alert components to get a list of default connector values which then gets passed to the connector components (like a switch case for defaults).
Testing the connector currently shows a dedup key that is alert specific:
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, just a couple of notes :)
.../triggers_actions_ui/public/application/components/builtin_action_types/jira/jira_params.tsx
Outdated
Show resolved
Hide resolved
...actions_ui/public/application/components/builtin_action_types/pagerduty/pagerduty_params.tsx
Outdated
Show resolved
Hide resolved
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.
Changes LGTM, its nice to see it auto select "Resolve" for the PagerDuty event action!
x-pack/plugins/triggers_actions_ui/public/application/lib/get_defaults_for_action_params.ts
Outdated
Show resolved
Hide resolved
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
…uping functionality for PagerDuty incidents. (elastic#83226) * Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. Set default savedObjectId as {{alertInstanceId}} for ServiceNow, Resilient and Jira * fixed comment * fixed due to comments * fixed doc * fixed due to comments
@YulNaumenko I'm sorry, I had to revert this PR... It ended up having a conflict with another PR that was merged earlier. Can you create another PR that's up-to-date with master and get that resolved? See here: https://kibana-ci.elastic.co/job/elastic+kibana+master/9808/execution/node/353/log/ It looks like your 7.x backport is currently failing with the same issue |
…de grouping functionality for PagerDuty incidents. (#83226) (#83985) * Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. (#83226) * Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. Set default savedObjectId as {{alertInstanceId}} for ServiceNow, Resilient and Jira * fixed comment * fixed due to comments * fixed doc * fixed due to comments * fixed type checks
* master: (67 commits) [Observability] Load hasData call asynchronously (elastic#80644) Implement AnonymousAuthenticationProvider. (elastic#79985) Deprecate `visualization:colorMapping` advanced setting (elastic#83372) [TSVB] [Rollup] Table tab not working with rollup indexes (elastic#83635) Revert "[Search] Search batching using bfetch (elastic#83418)" (elastic#84037) skip flaky suite (elastic#83772) skip flaky suite (elastic#69849) create kbn-legacy-logging package (elastic#77678) [Search] Search batching using bfetch (elastic#83418) [Security Solution] Refactor Timeline flyout to take a full page (elastic#82033) Drop use of console-stamp (elastic#83922) skip flaky suite (elastic#84011 , elastic#84012) Fixed usage of `isReady` for usage collection of alerts and actions (elastic#83760) [maps] support URL drilldowns (elastic#83732) Revert "Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. (elastic#83226)" [code coverage] Update jest config to collect more data (elastic#83804) Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. (elastic#83226) [Security Solution] Give notice when endpoint policy is out of date (elastic#83469) [Security Solution] Sync url state on any changes to query string (elastic#83314) [CI] Initial TeamCity implementation (elastic#81043) ...
Added default dedupKey value as an
{{alertId}}:{{alertInstanceId}}
to provide grouping functionality for PagerDuty incidents.Exposed getDefaultsForActionParams function which returns the default action params values for a selected action group
Resolve #77772