[Cases] - Connector api update#236863
Conversation
c17c44c to
58ca064
Compare
|
Cloud deployments require a Github label, please add |
771a762 to
4ca56f4
Compare
|
Pinging @elastic/kibana-cases (Team:Cases) |
x-pack/platform/plugins/shared/stack_connectors/public/connector_types/tines/tines.ts
Show resolved
Hide resolved
| } else if (request.url?.match('/webhook')) { | ||
| body = tinesWebhookSuccessResponse; | ||
| } else if (request.url?.match('/actions/1')) { | ||
| body = tinesAgentWebhook; |
There was a problem hiding this comment.
Shouldn't this be body = tinesAgentsResponse;? I think the return type is TinesWebhookApiResponse.
There was a problem hiding this comment.
No. I should probably update the naming to be clearer, but your return type is right TinesWebhookApiResponse, but the one for tinesAgentsResponse is TinesWebhook[s]ApiResponse, the latter returns an array, where as the former returns only a single agent. 😅
b8f36b0 to
48e068a
Compare
💚 Build Succeeded
Metrics [docs]Page load bundle
Unknown metric groupsReferences to deprecated APIs
History
|
semd
left a comment
There was a problem hiding this comment.
LGTM
This is great 💯 Thanks Mike!
I leave a small NIT
| (webhooks, { id, type, name, story_id: storyId }) => { | ||
| if (type === WEBHOOK_AGENT_TYPE) { | ||
| webhooks.push({ id, name, path, secret, storyId }); | ||
| webhooks.push({ id, name, storyId }); |
There was a problem hiding this comment.
NIT: We could just map here because now we pass the action_type: WEBHOOK_AGENT_TYPE param to the webhooks request (😍 love it), so we don't strictly need to filter by type anymore. It does not hurt either though if you want to keep it 👍
There was a problem hiding this comment.
true 👍🏾 . Will make a small follow up PR to remove the check, thanks!
|
Starting backport for target branches: 8.18, 8.19, 9.1, 9.2 |
## Summary This PR isolates the configuration paramaeters for the tines connector to the server side ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit 55cb4b5)
## Summary This PR isolates the configuration paramaeters for the tines connector to the server side ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit 55cb4b5)
## Summary This PR isolates the configuration paramaeters for the tines connector to the server side ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit 55cb4b5)
## Summary This PR isolates the configuration paramaeters for the tines connector to the server side ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit 55cb4b5)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.19`: - [[Cases] - Connector api update (#236863)](#236863) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Michael Olorunnisola","email":"michael.olorunnisola@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T14:15:35Z","message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:version","Team:Cases","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[Cases] - Connector api update","number":236863,"url":"https://github.com/elastic/kibana/pull/236863","mergeCommit":{"message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236863","number":236863,"mergeCommit":{"message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
# Backport This will backport the following commits from `main` to `9.1`: - [[Cases] - Connector api update (#236863)](#236863) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Michael Olorunnisola","email":"michael.olorunnisola@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T14:15:35Z","message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:version","Team:Cases","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[Cases] - Connector api update","number":236863,"url":"https://github.com/elastic/kibana/pull/236863","mergeCommit":{"message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236863","number":236863,"mergeCommit":{"message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
# Backport This will backport the following commits from `main` to `8.18`: - [[Cases] - Connector api update (#236863)](#236863) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Michael Olorunnisola","email":"michael.olorunnisola@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T14:15:35Z","message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:version","Team:Cases","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[Cases] - Connector api update","number":236863,"url":"https://github.com/elastic/kibana/pull/236863","mergeCommit":{"message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236863","number":236863,"mergeCommit":{"message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
# Backport This will backport the following commits from `main` to `9.2`: - [[Cases] - Connector api update (#236863)](#236863) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Michael Olorunnisola","email":"michael.olorunnisola@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T14:15:35Z","message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:version","Team:Cases","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[Cases] - Connector api update","number":236863,"url":"https://github.com/elastic/kibana/pull/236863","mergeCommit":{"message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236863","number":236863,"mergeCommit":{"message":"[Cases] - Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the configuration paramaeters for the tines connector\nto the server side\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
## Summary This PR isolates the configuration paramaeters for the tines connector to the server side ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
## Summary This PR isolates the configuration paramaeters for the tines connector to the server side ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
## Summary This PR isolates the configuration paramaeters for the tines connector to the server side ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
## Summary This PR isolates the configuration paramaeters for the tines connector to the server side ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
## Summary This PR isolates the configuration paramaeters for the tines connector to the server side ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Summary
This PR isolates the configuration paramaeters for the tines connector to the server side
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.