Skip to content

[9.3] [ResponseOps][Connectors] Keep the channel ID when editing an existing Slack connector (#247098)#247159

Merged
kibanamachine merged 3 commits intoelastic:9.3from
kibanamachine:backport/9.3/pr-247098
Dec 23, 2025
Merged

[9.3] [ResponseOps][Connectors] Keep the channel ID when editing an existing Slack connector (#247098)#247159
kibanamachine merged 3 commits intoelastic:9.3from
kibanamachine:backport/9.3/pr-247098

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…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)
@cnasikas
Copy link
Copy Markdown
Member

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

There are no new commits on the base branch.

@cnasikas
Copy link
Copy Markdown
Member

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

There are no new commits on the base branch.

@cnasikas
Copy link
Copy Markdown
Member

/ci

@cnasikas
Copy link
Copy Markdown
Member

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

There are no new commits on the base branch.

@cnasikas
Copy link
Copy Markdown
Member

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

There are no new commits on the base branch.

@cnasikas
Copy link
Copy Markdown
Member

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Dec 22, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #51 / Cloud Security Posture Verify cloud_security_posture telemetry payloads includes asset_inventory_cloud_connector_usage_stats in telemetry
  • [job] [logs] FTR Configs #51 / Cloud Security Posture Verify cloud_security_posture telemetry payloads includes asset_inventory_cloud_connector_usage_stats in telemetry
  • [job] [logs] FTR Configs #51 / Cloud Security Posture Verify cloud_security_posture telemetry payloads includes asset_inventory_cloud_connector_usage_stats in telemetry
  • [job] [logs] FTR Configs #51 / Cloud Security Posture Verify cloud_security_posture telemetry payloads includes asset_inventory_cloud_connector_usage_stats in telemetry

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
stackConnectors 1.1MB 1.1MB +588.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
stackConnectors 76.6KB 76.7KB +46.0B

History

cc @cnasikas

@cnasikas
Copy link
Copy Markdown
Member

@elasticmachine merge upstream

@kibanamachine kibanamachine merged commit c38246a into elastic:9.3 Dec 23, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants