SurfSense/surfsense_backend/app/tasks
google-labs-jules[bot] 3aa719802f Refactor: Skip Slack channels where bot is not a member
I modified the Slack indexing process in `index_slack_messages` to skip any channel (public or private) where the bot's `is_member` status is false.

Previously, the indexing process would only explicitly skip private channels where the bot was not a member. For public channels, it would attempt to fetch history, relying on a `not_in_channel` error during history fetching to implicitly skip.

This change makes the skipping behavior explicit for all channel types based on the `is_member` flag retrieved from `conversations.list` API call. This aims to reduce unnecessary API calls to `conversations.history` for channels the bot hasn't been invited to, potentially speeding up the indexing process and avoiding hitting rate limits unnecessarily.

The `is_member` flag is reliably provided by the `SlackHistory.get_all_channels` method. Logging messages have been updated to reflect this change.
2025-05-28 06:00:08 +00:00
..
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
background_tasks.py feat: Code Block Syntax Highlighting & Copy Func 2025-05-19 23:19:20 -07:00
connectors_indexing_tasks.py Refactor: Skip Slack channels where bot is not a member 2025-05-28 06:00:08 +00:00
podcast_tasks.py chore: Added direct handling for markdown files. 2025-05-07 22:04:57 -07:00
stream_connector_search_results.py feat: Introduce the RAPTOR Search. 2025-05-11 23:05:56 -07:00