Skip to content

Commit df89968

Browse files
bleonardlazebnyi
andauthored
source-slack: ensure inline schemas, updated cdk, poetry (where possible) (#36661)
Co-authored-by: Serhii Lazebnyi <[email protected]> Co-authored-by: Serhii Lazebnyi <[email protected]>
1 parent 17a2aee commit df89968

File tree

9 files changed

+273
-88
lines changed

9 files changed

+273
-88
lines changed

airbyte-integrations/connectors/source-slack/metadata.yaml

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: c2281cee-86f9-4a86-bb48-d23286b4c7bd
13-
dockerImageTag: 1.1.0
13+
dockerImageTag: 1.1.1
1414
dockerRepository: airbyte/source-slack
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/slack
1616
githubIssueLabel: source-slack
@@ -32,10 +32,13 @@ data:
3232
breakingChanges:
3333
1.0.0:
3434
message:
35-
The source Slack connector is being migrated from the Python CDK to our declarative low-code CDK.
36-
Due to changes in the handling of state format for incremental substreams, this migration constitutes a breaking change for the channel_messages stream.
37-
Users will need to reset source configuration, refresh the source schema and reset the channel_messages stream after upgrading.
38-
For more information, see our migration documentation for source Slack.
35+
The source Slack connector is being migrated from the Python CDK
36+
to our declarative low-code CDK. Due to changes in the handling of state
37+
format for incremental substreams, this migration constitutes a breaking
38+
change for the channel_messages stream. Users will need to reset source
39+
configuration, refresh the source schema and reset the channel_messages
40+
stream after upgrading. For more information, see our migration documentation
41+
for source Slack.
3942
upgradeDeadline: "2024-04-29"
4043
scopedImpact:
4144
- scopeType: stream

airbyte-integrations/connectors/source-slack/poetry.lock

+66-70
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

airbyte-integrations/connectors/source-slack/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "1.1.0"
6+
version = "1.1.1"
77
name = "source-slack"
88
description = "Source implementation for Slack."
99
authors = [ "Airbyte <[email protected]>",]
@@ -18,7 +18,7 @@ include = "source_slack"
1818
[tool.poetry.dependencies]
1919
python = "^3.9,<3.12"
2020
pendulum = "==2.1.2"
21-
airbyte-cdk = "^0"
21+
airbyte-cdk = "0.81.7"
2222
freezegun = "^1.4.0"
2323

2424
[tool.poetry.scripts]

airbyte-integrations/connectors/source-slack/source_slack/schemas/channel_members.json

+2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"additionalProperties": true,
55
"properties": {
66
"channel_id": {
7+
"description": "The unique identifier for the channel where the member is associated.",
78
"type": "string"
89
},
910
"member_id": {
11+
"description": "The unique identifier for the member within the channel.",
1012
"type": "string"
1113
}
1214
}

airbyte-integrations/connectors/source-slack/source_slack/schemas/channel_messages.json

+61
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,20 @@
22
"additionalProperties": true,
33
"properties": {
44
"channel_id": {
5+
"description": "Unique identifier of the channel where the message was posted",
56
"type": ["null", "string"]
67
},
78
"blocks": {
9+
"description": "List of blocks that make up the message",
810
"items": {
911
"additionalProperties": true,
1012
"properties": {
1113
"type": {
14+
"description": "Type of block (e.g., section, actions, context, etc.)",
1215
"type": ["null", "string"]
1316
},
1417
"block_id": {
18+
"description": "Unique identifier for the block",
1519
"type": ["null", "string"]
1620
},
1721
"elements": {
@@ -27,15 +31,18 @@
2731
"additionalProperties": true,
2832
"properties": {
2933
"text": {
34+
"description": "Text content of the element",
3035
"type": ["null", "string"]
3136
},
3237
"type": {
38+
"description": "Type of element (e.g., text, image, etc.)",
3339
"type": ["null", "string"]
3440
}
3541
}
3642
}
3743
},
3844
"type": {
45+
"description": "Type of elements container (e.g., context, actions, etc.)",
3946
"type": ["null", "string"]
4047
}
4148
}
@@ -47,45 +54,58 @@
4754
"type": ["null", "array"]
4855
},
4956
"bot_id": {
57+
"description": "Unique identifier of the bot that sent the message",
5058
"type": ["null", "string"]
5159
},
5260
"bot_profile": {
61+
"description": "Profile information of the bot user",
5362
"additionalProperties": true,
5463
"properties": {
5564
"app_id": {
65+
"description": "ID of the Slack app associated with the bot",
5666
"type": ["null", "string"]
5767
},
5868
"deleted": {
69+
"description": "Flag indicating if the bot profile has been deleted",
5970
"type": ["null", "boolean"]
6071
},
6172
"id": {
73+
"description": "Unique identifier of the bot profile",
6274
"type": ["null", "string"]
6375
},
6476
"name": {
77+
"description": "Name of the bot",
6578
"type": ["null", "string"]
6679
},
6780
"team_id": {
81+
"description": "ID of the team to which the bot belongs",
6882
"type": ["null", "string"]
6983
},
7084
"updated": {
85+
"description": "Timestamp of the last profile update",
7186
"type": ["null", "integer"]
7287
}
7388
},
7489
"type": ["null", "object"]
7590
},
7691
"attachments": {
92+
"description": "List of attachments included in the message",
7793
"items": {
7894
"properties": {
7995
"title": {
96+
"description": "Title of the attachment",
8097
"type": ["null", "string"]
8198
},
8299
"id": {
100+
"description": "Unique identifier for the attachment",
83101
"type": ["null", "integer"]
84102
},
85103
"color": {
104+
"description": "Color code to be used for the attachment",
86105
"type": ["null", "string"]
87106
},
88107
"fallback": {
108+
"description": "Plain text summary of the attachment",
89109
"type": ["null", "string"]
90110
}
91111
},
@@ -94,80 +114,102 @@
94114
"type": ["null", "array"]
95115
},
96116
"client_msg_id": {
117+
"description": "Unique identifier for the client who sent the message",
97118
"type": ["null", "string"]
98119
},
99120
"display_as_bot": {
121+
"description": "Flag indicating if the message is displayed as coming from a bot",
100122
"type": ["null", "boolean"]
101123
},
102124
"file_id": {
125+
"description": "Unique identifier of the file attached to the message",
103126
"type": ["null", "string"]
104127
},
105128
"file_ids": {
129+
"description": "List of unique identifiers of files attached to the message",
106130
"items": {
107131
"type": ["null", "string"]
108132
},
109133
"type": ["null", "array"]
110134
},
111135
"icons": {
136+
"description": "Icons associated with the message",
112137
"additionalProperties": true,
113138
"properties": {
114139
"emoji": {
140+
"description": "Emoji icon used in the message",
115141
"type": ["null", "string"]
116142
}
117143
},
118144
"type": ["null", "object"]
119145
},
120146
"inviter": {
147+
"description": "User ID of the member who invited a user to the channel",
121148
"type": ["null", "string"]
122149
},
123150
"is_delayed_message": {
151+
"description": "Flag indicating if the message was delayed",
124152
"type": ["null", "boolean"]
125153
},
126154
"is_intro": {
155+
"description": "Flag indicating if the message is an introduction message",
127156
"type": ["null", "boolean"]
128157
},
129158
"is_starred": {
159+
"description": "Flag indicating if the message is starred",
130160
"type": ["null", "boolean"]
131161
},
132162
"last_read": {
163+
"description": "Timestamp when the message was last read",
133164
"type": ["null", "string"]
134165
},
135166
"latest_reply": {
167+
"description": "Timestamp of the latest reply to the message",
136168
"type": ["null", "string"]
137169
},
138170
"name": {
171+
"description": "Name of the channel",
139172
"type": ["null", "string"]
140173
},
141174
"old_name": {
175+
"description": "Previous name of the channel if renamed",
142176
"type": ["null", "string"]
143177
},
144178
"parent_user_id": {
179+
"description": "Unique identifier of the parent user",
145180
"type": ["null", "string"]
146181
},
147182
"permalink": {
183+
"description": "Permanent link to the message",
148184
"format": "uri",
149185
"type": ["null", "string"]
150186
},
151187
"pinned_to": {
188+
"description": "List of channels where the message is pinned",
152189
"items": {
153190
"type": ["null", "string"]
154191
},
155192
"type": ["null", "array"]
156193
},
157194
"purpose": {
195+
"description": "Purpose set for the channel",
158196
"type": ["null", "string"]
159197
},
160198
"reactions": {
199+
"description": "List of reactions added to the message",
161200
"items": {
162201
"additionalProperties": true,
163202
"properties": {
164203
"count": {
204+
"description": "Number of users who reacted",
165205
"type": ["null", "integer"]
166206
},
167207
"name": {
208+
"description": "Emoji name of the reaction",
168209
"type": ["null", "string"]
169210
},
170211
"users": {
212+
"description": "List of users who reacted",
171213
"items": {
172214
"type": ["null", "string"]
173215
},
@@ -179,63 +221,82 @@
179221
"type": ["null", "array"]
180222
},
181223
"reply_count": {
224+
"description": "Number of replies to the message",
182225
"type": ["null", "integer"]
183226
},
184227
"reply_users": {
228+
"description": "List of users who replied to the message",
185229
"items": {
186230
"type": ["null", "string"]
187231
},
188232
"type": ["null", "array"]
189233
},
190234
"reply_users_count": {
235+
"description": "Number of users who replied to the message",
191236
"type": ["null", "integer"]
192237
},
193238
"source_team": {
239+
"description": "Team ID of the source team",
194240
"type": ["null", "string"]
195241
},
196242
"subscribed": {
243+
"description": "Flag indicating if the user is subscribed to the channel",
197244
"type": ["null", "boolean"]
198245
},
199246
"subtype": {
247+
"description": "Type of message subtype",
200248
"type": ["null", "string"]
201249
},
202250
"team": {
251+
"description": "Team ID where the message was posted",
203252
"type": ["null", "string"]
204253
},
205254
"text": {
255+
"description": "Text content of the message",
206256
"type": ["null", "string"]
207257
},
208258
"thread_ts": {
259+
"description": "Timestamp of the thread the message is part of",
209260
"type": ["null", "string"]
210261
},
211262
"topic": {
263+
"description": "Topic set for the channel",
212264
"type": ["null", "string"]
213265
},
214266
"ts": {
267+
"description": "Timestamp of the message",
215268
"type": ["null", "string"]
216269
},
217270
"float_ts": {
271+
"description": "Timestamp of the message in float format",
218272
"type": ["null", "number"]
219273
},
220274
"is_locked": {
275+
"description": "Flag indicating if the message is locked",
221276
"type": ["null", "boolean"]
222277
},
223278
"type": {
279+
"description": "Type of message (e.g., message, reply, etc.)",
224280
"type": ["null", "string"]
225281
},
226282
"unread_count": {
283+
"description": "Number of unread messages in the channel",
227284
"type": ["null", "integer"]
228285
},
229286
"upload": {
287+
"description": "Flag indicating if the message contains uploaded content",
230288
"type": ["null", "boolean"]
231289
},
232290
"user": {
291+
"description": "Unique identifier of the user who sent the message",
233292
"type": ["null", "string"]
234293
},
235294
"user_team": {
295+
"description": "Team ID of the user who sent the message",
236296
"type": ["null", "string"]
237297
},
238298
"username": {
299+
"description": "Username of the user who sent the message",
239300
"type": ["null", "string"]
240301
}
241302
},

0 commit comments

Comments
 (0)