- Notifications
You must be signed in to change notification settings - Fork 4.9k
🐛 Source Slack: Fix reading threads issue #4860
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
Conversation
| /test connector=connectors/source-slack
|
midavadim left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well ... we definitely need to run at least real sync for threads and messages streams to be sure that it works correctly.
The ideal result - is to have a related acceptance test
It is not clear how this error appears here and why it was not seen in the previous testing
airbyte-integrations/connectors/source-slack/source_slack/source.py Outdated Show resolved Hide resolved
Added acceptance test for threads stream |
airbyte-integrations/connectors/source-slack/source_slack/source.py Outdated Show resolved Hide resolved
| /test connector=connectors/source-slack
|
6b4465f to 5aa096c Compare | /test connector=connectors/source-slack
|
| self.set_sub_primary_key() | ||
| super().__init__(**kwargs) | ||
| | ||
| def set_sub_primary_key(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the benefit of setting these attributes? I think it's confusing for the developer because it adds a layer of indirection for accessing primary_key[0] and primary_key[1] without changing those properties/adding anything to them. Would prefer if we didn't do this and just accessed the values directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for the bug is that contributor who made a typo didn't paste square brackets to get the list item. And if in code we minimize those accessing and add variables for those values. We can avoid those mistakes.
Yes, this solution adds some complexity to the code.
| /test connector=connectors/source-slack
|
016836b to bdf04b2 Compare | /test connector=connectors/source-slack
|
| /publish connector=connectors/source-slack
|
What
#4680 - Source Slack: reading threads failed in stream slicing stage
How
stream_slicesmethodPre-merge Checklist
Expand the checklist which is relevant for this PR.
Connector checklist
./gradlew :airbyte-integrations:connectors:<name>:integrationTest./test connector=connectors/<name>command as documented here is passing.README.mddocs/integrations/<source or destination>/<name>.docs/integrations/.... See changelog example/publishcommand described here