Skip to content

Commit

Permalink
✨ Slack source: add support for optional private channels (#37332)
Browse files Browse the repository at this point in the history
Signed-off-by: Irving Popovetsky <irving@honeycomb.io>
Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com>
  • Loading branch information
irvingpop and marcosmarxm committed Apr 26, 2024
1 parent 87fad4b commit 9521749
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 16 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-slack/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: c2281cee-86f9-4a86-bb48-d23286b4c7bd
dockerImageTag: 1.0.0
dockerImageTag: 1.1.0
dockerRepository: airbyte/source-slack
documentationUrl: https://docs.airbyte.com/integrations/sources/slack
githubIssueLabel: source-slack
Expand Down
154 changes: 146 additions & 8 deletions airbyte-integrations/connectors/source-slack/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "1.0.0"
version = "1.1.0"
name = "source-slack"
description = "Source implementation for Slack."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ definitions:
requester:
$ref: "#/definitions/requester"
request_parameters:
types: "public_channel"
types: "{{ 'public_channel,private_channel' if config['include_private_channels'] == true else 'public_channel' }}"
record_selector:
$ref: "#/definitions/selector"
record_filter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
"title": "Join all channels",
"description": "Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. "
},
"include_private_channels": {
"type": "boolean",
"default": false,
"title": "Include private channels",
"description": "Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. "
},
"channel_filter": {
"type": "array",
"default": [],
Expand Down
Loading

0 comments on commit 9521749

Please sign in to comment.