Skip to content

Conversation

@ctdio
Copy link
Contributor

@ctdio ctdio commented Jun 11, 2024

What

This fixes #39414. This PR allows for threads in private channels to be synced by using the existing include_private_channels config option. This option is used for consuming messages and channels from the declarative streams, but was not applied to the threads stream.

How

This change passes in the include_private_channels configuration into the Thread constructor, which passes the value along to the Channel. If include_private_channels is true, the types parameter in the channels request will be set to private_channel,public_channel, allowing private channels to be used when collecting threads.

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌
@vercel
Copy link

vercel bot commented Jun 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 10:15pm
@CLAassistant
Copy link

CLAassistant commented Jun 11, 2024

CLA assistant check
All committers have signed the CLA.

@ctdio ctdio force-pushed the source_slack_use_private_channels_config_in_threads branch from 3ba5371 to dbb74fa Compare June 11, 2024 21:10
Copy link

@austinkelleher austinkelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Looking forward to seeing this fix in place.

Copy link
Contributor

@marcosmarxm marcosmarxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ctdio can you bump the connector version in the metadata.yml, project.toml and the doc changelog entry? After run poetry lock inside the connector folder to update the dependencies. After I'll trigger CI tests to validate your changes.

@ctdio
Copy link
Contributor Author

ctdio commented Jun 12, 2024

Updated. Thanks @marcosmarxm!

poetry.lock Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not this file. You need to navigate inside the connector folder and run inside it.

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

Please revert this change and follow the steps above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh shoot, my bad. Fixing that now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed @marcosmarxm. Thanks for catching that

@ctdio ctdio force-pushed the source_slack_use_private_channels_config_in_threads branch from 10b98ef to 8791f90 Compare June 12, 2024 16:37
@ctdio ctdio temporarily deployed to community-ci June 12, 2024 16:37 — with GitHub Actions Inactive
@ctdio ctdio temporarily deployed to community-ci June 12, 2024 16:37 — with GitHub Actions Inactive
@ctdio ctdio temporarily deployed to community-ci-auto June 12, 2024 16:37 — with GitHub Actions Inactive
@ctdio ctdio temporarily deployed to community-ci-auto June 12, 2024 16:37 — with GitHub Actions Inactive
@marcosmarxm
Copy link
Contributor

Running CI tests let's wait for the results @ctdio

Copy link
Contributor

@marcosmarxm marcosmarxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @ctdio only need an additional ✅ from the connector team as Slack is a certified connector.

Copy link
Contributor

@natikgadzhi natikgadzhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3 @ctdio thank you for the contribution!

There are things to share ;)

We're migrating our sources to be as low-code as possible. In Slack, we only have this last stream (threads) that is in Python, the rest are manifest as you have seen.

Here's the PR to migrate Slack Threads stream to yaml by @tolik0: #38618. This PR in turn depends on the CDK PR #38211 that's approved, and will likely be merged this week.

This Slack Threads → lowcode PR is a "breaking change", meaning users would have to re-sync their Threads stream when they upgrade to source Slack 2.0.0

With that in mind, we can do a few things here.

  1. We can merge this PR now, and then @tolik0 will add private channel threads support to the low-code one before releasing #38618.
  2. We can skip this PR and just ask @tolik0 to add privae channels support to his PR.

Since this looks clean, I'm not opposed to merging this now, so — LGTM from where I sit.

@natikgadzhi
Copy link
Contributor

@irvingpop, looky here! Getting closer.

@ctdio
Copy link
Contributor Author

ctdio commented Jun 12, 2024

Hey @natikgadzhi, thanks for taking a look at this! I would appreciate it if we could go with option 1 and release this before migrating to the low-code implementation.

We are hoping this could land in production sooner rather than later since it's a pretty severe gap in functionality we've encountered that's affecting business operations for us (we're using Airbyte for a number of customer integrations).

@marcosmarxm marcosmarxm merged commit fd8baf9 into airbytehq:master Jun 12, 2024
@marcosmarxm
Copy link
Contributor

Hello @ctdio your feedback matters a lot to us. Can you spare just 3 minutes to complete a survey? We’re dedicated to making the contributor experience even better, and your input is key to achieving excellence. Thank you for helping us improve!

@ctdio
Copy link
Contributor Author

ctdio commented Jun 12, 2024

Yes, happy to! Thank you, @marcosmarxm and @natikgadzhi, for helping me get this through!

krishan711 added a commit to krishan711/airbyte that referenced this pull request Jun 13, 2024
…711/airbyte into krishan711/source-gong-extensive * 'krishan711/source-gong-extensive' of github.com:krishan711/airbyte: source-mysql: upgrade debezium to 2.5.4 (airbytehq#39144) fix(source_slack): use private channels config when reading slack threads (airbytehq#39416) ✨Source Linkedin Pages: migrate to low-code (airbytehq#36744) feat(docs): update metric icon (airbytehq#39449) Source Datadog: Chaged last records to last record (airbytehq#37590) 🐛 Source Kafka: fix empty airbyte_data after airbyte version 0.50.4 for AvroFormat (airbytehq#32538)
Adorism pushed a commit that referenced this pull request Jun 13, 2024
…eads (#39416) Co-authored-by: Natik Gadzhi <natik@respawn.io>
xiaohansong pushed a commit that referenced this pull request Jun 14, 2024
…eads (#39416) Co-authored-by: Natik Gadzhi <natik@respawn.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation community connectors/source/slack

6 participants