SurfSense/surfsense_backend/app
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
..
agents refactor: Improved prompt for personalization. 2025-05-19 20:49:47 -07:00
config feat: Removed Hard Dependecy on Google Auth 2025-05-21 20:56:23 -07:00
connectors Hotfix: Remove non-printable characters from slack_history.py 2025-05-27 13:44:56 +00:00
prompts feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
retriver feat: Introduce the RAPTOR Search. 2025-05-11 23:05:56 -07:00
routes feat: Added Speech to Text support. 2025-05-13 21:13:53 -07:00
schemas feat: Added chat_history to researcher agent 2025-05-10 20:06:19 -07:00
tasks Refactor: Skip Slack channels where bot is not a member 2025-05-28 06:00:08 +00:00
utils feat: Basic Streaming 2025-05-16 01:51:55 -07:00
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
app.py feat: Removed Hard Dependecy on Google Auth 2025-05-21 20:56:23 -07:00
db.py feat: Removed Hard Dependecy on Google Auth 2025-05-21 20:56:23 -07:00
users.py feat: Removed Hard Dependecy on Google Auth 2025-05-21 20:56:23 -07:00