[ResponseOps][Connectors] Keep the channel ID when editing an existing Slack connector#247098
Merged
cnasikas merged 2 commits intoelastic:mainfrom Dec 19, 2025
Merged
[ResponseOps][Connectors] Keep the channel ID when editing an existing Slack connector#247098cnasikas merged 2 commits intoelastic:mainfrom
cnasikas merged 2 commits intoelastic:mainfrom
Conversation
Contributor
|
Pinging @elastic/response-ops (Team:ResponseOps) |
cfff576 to
d42a2e0
Compare
js-jankisalvi
approved these changes
Dec 19, 2025
Contributor
js-jankisalvi
left a comment
There was a problem hiding this comment.
Verified locally, works as expected 👍
Only channel name visible while executing the connector 👍
Contributor
|
Starting backport for target branches: 9.3 https://github.com/elastic/kibana/actions/runs/20378152604 |
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Page load bundle
History
cc @cnasikas |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Dec 19, 2025
…g Slack connector (elastic#247098) ## Summary PR elastic#245423 simplified a lot the logic of the Slack connector regarding channels. This PR fixes a small bug introduced in the PR where it would remove the ID of the channel from the payload for existing connector. ### Testing 1. Create a connector using the following payload: ``` { "name": "Slack - test allowedChannels", "config": { "allowedChannels": [ { "id": "C096LSBJZBQ", // should have an ID "name": "test" } ] }, "secrets": { "token": "foo" }, "connector_type_id": ".slack_api" } ``` 2. Edit the connector by adding an extra channel 3. Verify that the payload sent to the API preserves the channel ID. The new channel should only have a name. ### 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 2dce199)
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
baileycash-elastic
pushed a commit
to baileycash-elastic/kibana
that referenced
this pull request
Dec 19, 2025
…g Slack connector (elastic#247098) ## Summary PR elastic#245423 simplified a lot the logic of the Slack connector regarding channels. This PR fixes a small bug introduced in the PR where it would remove the ID of the channel from the payload for existing connector. ### Testing 1. Create a connector using the following payload: ``` { "name": "Slack - test allowedChannels", "config": { "allowedChannels": [ { "id": "C096LSBJZBQ", // should have an ID "name": "test" } ] }, "secrets": { "token": "foo" }, "connector_type_id": ".slack_api" } ``` 2. Edit the connector by adding an extra channel 3. Verify that the payload sent to the API preserves the channel ID. The new channel should only have a name. ### 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
kibanamachine
added a commit
that referenced
this pull request
Dec 23, 2025
…xisting Slack connector (#247098) (#247159) # Backport This will backport the following commits from `main` to `9.3`: - [[ResponseOps][Connectors] Keep the channel ID when editing an existing Slack connector (#247098)](#247098) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Christos Nasikas","email":"christos.nasikas@elastic.co"},"sourceCommit":{"committedDate":"2025-12-19T17:52:58Z","message":"[ResponseOps][Connectors] Keep the channel ID when editing an existing Slack connector (#247098)\n\n## Summary\n\nPR #245423 simplified a lot the\nlogic of the Slack connector regarding channels. This PR fixes a small\nbug introduced in the PR where it would remove the ID of the channel\nfrom the payload for existing connector.\n\n### Testing\n\n1. Create a connector using the following payload:\n\n```\n{\n \"name\": \"Slack - test allowedChannels\",\n \"config\": {\n \"allowedChannels\": [\n {\n \"id\": \"C096LSBJZBQ\", // should have an ID\n \"name\": \"test\"\n }\n ]\n },\n \"secrets\": {\n \"token\": \"foo\"\n },\n \"connector_type_id\": \".slack_api\"\n}\n```\n\n2. Edit the connector by adding an extra channel\n3. Verify that the payload sent to the API preserves the channel ID. The\nnew channel should only have a name.\n\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":"2dce199c0d7c2c38f1c6f92789ee5f7469dec4b5","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","backport:version","v9.3.0","v9.4.0"],"title":"[ResponseOps][Connectors] Keep the channel ID when editing an existing Slack connector","number":247098,"url":"https://github.com/elastic/kibana/pull/247098","mergeCommit":{"message":"[ResponseOps][Connectors] Keep the channel ID when editing an existing Slack connector (#247098)\n\n## Summary\n\nPR #245423 simplified a lot the\nlogic of the Slack connector regarding channels. This PR fixes a small\nbug introduced in the PR where it would remove the ID of the channel\nfrom the payload for existing connector.\n\n### Testing\n\n1. Create a connector using the following payload:\n\n```\n{\n \"name\": \"Slack - test allowedChannels\",\n \"config\": {\n \"allowedChannels\": [\n {\n \"id\": \"C096LSBJZBQ\", // should have an ID\n \"name\": \"test\"\n }\n ]\n },\n \"secrets\": {\n \"token\": \"foo\"\n },\n \"connector_type_id\": \".slack_api\"\n}\n```\n\n2. Edit the connector by adding an extra channel\n3. Verify that the payload sent to the API preserves the channel ID. The\nnew channel should only have a name.\n\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":"2dce199c0d7c2c38f1c6f92789ee5f7469dec4b5"}},"sourceBranch":"main","suggestedTargetBranches":["9.3"],"targetPullRequestStates":[{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/247098","number":247098,"mergeCommit":{"message":"[ResponseOps][Connectors] Keep the channel ID when editing an existing Slack connector (#247098)\n\n## Summary\n\nPR #245423 simplified a lot the\nlogic of the Slack connector regarding channels. This PR fixes a small\nbug introduced in the PR where it would remove the ID of the channel\nfrom the payload for existing connector.\n\n### Testing\n\n1. Create a connector using the following payload:\n\n```\n{\n \"name\": \"Slack - test allowedChannels\",\n \"config\": {\n \"allowedChannels\": [\n {\n \"id\": \"C096LSBJZBQ\", // should have an ID\n \"name\": \"test\"\n }\n ]\n },\n \"secrets\": {\n \"token\": \"foo\"\n },\n \"connector_type_id\": \".slack_api\"\n}\n```\n\n2. Edit the connector by adding an extra channel\n3. Verify that the payload sent to the API preserves the channel ID. The\nnew channel should only have a name.\n\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":"2dce199c0d7c2c38f1c6f92789ee5f7469dec4b5"}}]}] BACKPORT--> Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
CAWilson94
pushed a commit
to CAWilson94/kibana
that referenced
this pull request
Jan 6, 2026
…g Slack connector (elastic#247098) ## Summary PR elastic#245423 simplified a lot the logic of the Slack connector regarding channels. This PR fixes a small bug introduced in the PR where it would remove the ID of the channel from the payload for existing connector. ### Testing 1. Create a connector using the following payload: ``` { "name": "Slack - test allowedChannels", "config": { "allowedChannels": [ { "id": "C096LSBJZBQ", // should have an ID "name": "test" } ] }, "secrets": { "token": "foo" }, "connector_type_id": ".slack_api" } ``` 2. Edit the connector by adding an extra channel 3. Verify that the payload sent to the API preserves the channel ID. The new channel should only have a name. ### 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
dej611
pushed a commit
to dej611/kibana
that referenced
this pull request
Jan 8, 2026
…g Slack connector (elastic#247098) ## Summary PR elastic#245423 simplified a lot the logic of the Slack connector regarding channels. This PR fixes a small bug introduced in the PR where it would remove the ID of the channel from the payload for existing connector. ### Testing 1. Create a connector using the following payload: ``` { "name": "Slack - test allowedChannels", "config": { "allowedChannels": [ { "id": "C096LSBJZBQ", // should have an ID "name": "test" } ] }, "secrets": { "token": "foo" }, "connector_type_id": ".slack_api" } ``` 2. Edit the connector by adding an extra channel 3. Verify that the payload sent to the API preserves the channel ID. The new channel should only have a name. ### 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #245423 simplified a lot the logic of the Slack connector regarding channels. This PR fixes a small bug introduced in the PR where it would remove the ID of the channel from the payload for existing connector.
Testing
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.