SurfSense/surfsense_backend/app/connectors
google-labs-jules[bot] ce1014c8c2 Fix: Handle Slack rate limits and add GitHub org repo support
This commit includes two main improvements:

1. Slack Connector (`slack_history.py`):
   - Addresses API rate limiting for `conversations.list` by introducing a 3-second delay between paginated calls.
   - Implements handling for the `Retry-After` header when HTTP 429 errors occur.
   - Fixes a `SyntaxError` caused by a non-printable character accidentally introduced in a previous modification.
   - Adds comprehensive unit tests for the rate limiting and retry logic in `test_slack_history.py`.

2. GitHub Connector (`github_connector.py`):
   - Modifies `get_user_repositories` to fetch all repositories accessible by you (including organization repositories) by changing the API call parameter from `type='owner'` to `type='all'`.
   - Adds unit tests in `test_github_connector.py` to verify this change and other connector functionalities.
2025-05-27 13:27:10 +00:00
..
github_connector.py Fix: Handle Slack rate limits and add GitHub org repo support 2025-05-27 13:27:10 +00:00
linear_connector.py feat: Added Linear Connector 2025-04-15 23:10:35 -07:00
notion_history.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
slack_history.py Fix: Handle Slack rate limits and add GitHub org repo support 2025-05-27 13:27:10 +00:00
test_github_connector.py Fix: Handle Slack rate limits and add GitHub org repo support 2025-05-27 13:27:10 +00:00
test_slack_history.py Fix: Handle Slack API rate limiting for conversations.list 2025-05-27 12:56:26 +00:00