-
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
Adds a slack action #39221
Adds a slack action #39221
Conversation
💚 Build Succeeded |
Pinging @elastic/kibana-stack-services |
7be1efc
to
ecdc4b4
Compare
💚 Build Succeeded |
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 one nitpick.
x-pack/test/api_integration/apis/actions/builtin_action_types/slack.ts
Outdated
Show resolved
Hide resolved
ecdc4b4
to
4797237
Compare
Just forced push this branch to get the code up to the new x-pack/legacy/plugin level. Let's see how CI goes; once green, will un-draft ... |
💚 Build Succeeded |
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.
Looking good! Just a few questions / comments.
*/ | ||
|
||
// a function which returns a promise with a resolve() and reject() method | ||
export function rPromise() { |
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 am unable to find where this function is used?
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.
ah yes, it appears to be unused now, will delete
x-pack/legacy/plugins/actions/server/builtin_action_types/slack.ts
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/actions/server/builtin_action_types/slack.ts
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/actions/server/builtin_action_types/slack.ts
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/actions/server/builtin_action_types/slack.ts
Outdated
Show resolved
Hide resolved
let actionTypeRegistry: ActionTypeRegistry; | ||
let actionType: ActionType; | ||
|
||
const mockEncryptedSavedObjectsPlugin = { |
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 created a new mock that we can now re-use x-pack/legacy/plugins/encrypted_saved_objects/server/plugin.mock.ts
.
💔 Build Failed |
package.json
Outdated
@@ -119,6 +119,7 @@ | |||
"@kbn/pm": "1.0.0", | |||
"@kbn/test-subj-selector": "0.2.1", | |||
"@kbn/ui-framework": "1.0.0", | |||
"@slack/webhook": "^5.0.0", |
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.
this should be in x-package/package.json
, not the root package.json
💔 Build Failed |
- move @slack/webhook from package.json to x-pack/package.json - remove unused r_promise module - refactor the way slack mock works - rename id of slack action from `kibana.slack` to `.slack`
💚 Build Succeeded |
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.
This is great! LGTM 👍
Summary
Adds a Slack action to the nascent Actions sub-framework that's part of the nascent Alerting framework.