Skip to content
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

source-slack: ensure inline schemas, updated cdk, poetry (where possible) #36661

Merged
merged 15 commits into from
May 7, 2024
Merged
13 changes: 8 additions & 5 deletions 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.1.0
dockerImageTag: 1.1.1
dockerRepository: airbyte/source-slack
documentationUrl: https://docs.airbyte.com/integrations/sources/slack
githubIssueLabel: source-slack
Expand All @@ -32,10 +32,13 @@ data:
breakingChanges:
1.0.0:
message:
The source Slack connector is being migrated from the Python CDK to our declarative low-code CDK.
Due to changes in the handling of state format for incremental substreams, this migration constitutes a breaking change for the channel_messages stream.
Users will need to reset source configuration, refresh the source schema and reset the channel_messages stream after upgrading.
For more information, see our migration documentation for source Slack.
The source Slack connector is being migrated from the Python CDK
to our declarative low-code CDK. Due to changes in the handling of state
format for incremental substreams, this migration constitutes a breaking
change for the channel_messages stream. Users will need to reset source
configuration, refresh the source schema and reset the channel_messages
stream after upgrading. For more information, see our migration documentation
for source Slack.
upgradeDeadline: "2024-04-29"
scopedImpact:
- scopeType: stream
Expand Down
136 changes: 66 additions & 70 deletions airbyte-integrations/connectors/source-slack/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-slack/pyproject.toml
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.1.0"
version = "1.1.1"
name = "source-slack"
description = "Source implementation for Slack."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand All @@ -18,7 +18,7 @@ include = "source_slack"
[tool.poetry.dependencies]
python = "^3.9,<3.12"
pendulum = "==2.1.2"
airbyte-cdk = "^0"
airbyte-cdk = "0.81.7"
freezegun = "^1.4.0"

[tool.poetry.scripts]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"additionalProperties": true,
"properties": {
"channel_id": {
"description": "The unique identifier for the channel where the member is associated.",
"type": "string"
},
"member_id": {
"description": "The unique identifier for the member within the channel.",
"type": "string"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
"additionalProperties": true,
"properties": {
"channel_id": {
"description": "Unique identifier of the channel where the message was posted",
"type": ["null", "string"]
},
"blocks": {
"description": "List of blocks that make up the message",
"items": {
"additionalProperties": true,
"properties": {
"type": {
"description": "Type of block (e.g., section, actions, context, etc.)",
"type": ["null", "string"]
},
"block_id": {
"description": "Unique identifier for the block",
"type": ["null", "string"]
},
"elements": {
Expand All @@ -27,15 +31,18 @@
"additionalProperties": true,
"properties": {
"text": {
"description": "Text content of the element",
"type": ["null", "string"]
},
"type": {
"description": "Type of element (e.g., text, image, etc.)",
"type": ["null", "string"]
}
}
}
},
"type": {
"description": "Type of elements container (e.g., context, actions, etc.)",
"type": ["null", "string"]
}
}
Expand All @@ -47,45 +54,58 @@
"type": ["null", "array"]
},
"bot_id": {
"description": "Unique identifier of the bot that sent the message",
"type": ["null", "string"]
},
"bot_profile": {
"description": "Profile information of the bot user",
"additionalProperties": true,
"properties": {
"app_id": {
"description": "ID of the Slack app associated with the bot",
"type": ["null", "string"]
},
"deleted": {
"description": "Flag indicating if the bot profile has been deleted",
"type": ["null", "boolean"]
},
"id": {
"description": "Unique identifier of the bot profile",
"type": ["null", "string"]
},
"name": {
"description": "Name of the bot",
"type": ["null", "string"]
},
"team_id": {
"description": "ID of the team to which the bot belongs",
"type": ["null", "string"]
},
"updated": {
"description": "Timestamp of the last profile update",
"type": ["null", "integer"]
}
},
"type": ["null", "object"]
},
"attachments": {
"description": "List of attachments included in the message",
"items": {
"properties": {
"title": {
"description": "Title of the attachment",
"type": ["null", "string"]
},
"id": {
"description": "Unique identifier for the attachment",
"type": ["null", "integer"]
},
"color": {
"description": "Color code to be used for the attachment",
"type": ["null", "string"]
},
"fallback": {
"description": "Plain text summary of the attachment",
"type": ["null", "string"]
}
},
Expand All @@ -94,80 +114,102 @@
"type": ["null", "array"]
},
"client_msg_id": {
"description": "Unique identifier for the client who sent the message",
"type": ["null", "string"]
},
"display_as_bot": {
"description": "Flag indicating if the message is displayed as coming from a bot",
"type": ["null", "boolean"]
},
"file_id": {
"description": "Unique identifier of the file attached to the message",
"type": ["null", "string"]
},
"file_ids": {
"description": "List of unique identifiers of files attached to the message",
"items": {
"type": ["null", "string"]
},
"type": ["null", "array"]
},
"icons": {
"description": "Icons associated with the message",
"additionalProperties": true,
"properties": {
"emoji": {
"description": "Emoji icon used in the message",
"type": ["null", "string"]
}
},
"type": ["null", "object"]
},
"inviter": {
"description": "User ID of the member who invited a user to the channel",
"type": ["null", "string"]
},
"is_delayed_message": {
"description": "Flag indicating if the message was delayed",
"type": ["null", "boolean"]
},
"is_intro": {
"description": "Flag indicating if the message is an introduction message",
"type": ["null", "boolean"]
},
"is_starred": {
"description": "Flag indicating if the message is starred",
"type": ["null", "boolean"]
},
"last_read": {
"description": "Timestamp when the message was last read",
"type": ["null", "string"]
},
"latest_reply": {
"description": "Timestamp of the latest reply to the message",
"type": ["null", "string"]
},
"name": {
"description": "Name of the channel",
"type": ["null", "string"]
},
"old_name": {
"description": "Previous name of the channel if renamed",
"type": ["null", "string"]
},
"parent_user_id": {
"description": "Unique identifier of the parent user",
"type": ["null", "string"]
},
"permalink": {
"description": "Permanent link to the message",
"format": "uri",
"type": ["null", "string"]
},
"pinned_to": {
"description": "List of channels where the message is pinned",
"items": {
"type": ["null", "string"]
},
"type": ["null", "array"]
},
"purpose": {
"description": "Purpose set for the channel",
"type": ["null", "string"]
},
"reactions": {
"description": "List of reactions added to the message",
"items": {
"additionalProperties": true,
"properties": {
"count": {
"description": "Number of users who reacted",
"type": ["null", "integer"]
},
"name": {
"description": "Emoji name of the reaction",
"type": ["null", "string"]
},
"users": {
"description": "List of users who reacted",
"items": {
"type": ["null", "string"]
},
Expand All @@ -179,63 +221,82 @@
"type": ["null", "array"]
},
"reply_count": {
"description": "Number of replies to the message",
"type": ["null", "integer"]
},
"reply_users": {
"description": "List of users who replied to the message",
"items": {
"type": ["null", "string"]
},
"type": ["null", "array"]
},
"reply_users_count": {
"description": "Number of users who replied to the message",
"type": ["null", "integer"]
},
"source_team": {
"description": "Team ID of the source team",
"type": ["null", "string"]
},
"subscribed": {
"description": "Flag indicating if the user is subscribed to the channel",
"type": ["null", "boolean"]
},
"subtype": {
"description": "Type of message subtype",
"type": ["null", "string"]
},
"team": {
"description": "Team ID where the message was posted",
"type": ["null", "string"]
},
"text": {
"description": "Text content of the message",
"type": ["null", "string"]
},
"thread_ts": {
"description": "Timestamp of the thread the message is part of",
"type": ["null", "string"]
},
"topic": {
"description": "Topic set for the channel",
"type": ["null", "string"]
},
"ts": {
"description": "Timestamp of the message",
"type": ["null", "string"]
},
"float_ts": {
"description": "Timestamp of the message in float format",
"type": ["null", "number"]
},
"is_locked": {
"description": "Flag indicating if the message is locked",
"type": ["null", "boolean"]
},
"type": {
"description": "Type of message (e.g., message, reply, etc.)",
"type": ["null", "string"]
},
"unread_count": {
"description": "Number of unread messages in the channel",
"type": ["null", "integer"]
},
"upload": {
"description": "Flag indicating if the message contains uploaded content",
"type": ["null", "boolean"]
},
"user": {
"description": "Unique identifier of the user who sent the message",
"type": ["null", "string"]
},
"user_team": {
"description": "Team ID of the user who sent the message",
"type": ["null", "string"]
},
"username": {
"description": "Username of the user who sent the message",
"type": ["null", "string"]
}
},
Expand Down
Loading
Loading