Commit graph

45 commits

Author SHA1 Message Date
Rohan Verma
c2030cec48
Merge pull request #275 from CREDO23/improvement/persist-refreshed-token-in-google-related-connector
[Improvement] Google connectors | Update the connector config after refreshing the token
2025-08-26 18:47:36 -07:00
CREDO23
ecbb1f27e0 clean up 2025-08-26 11:53:27 +02:00
CREDO23
85664f2ff8 update the connector config after refreshing google calendar access token 2025-08-26 11:49:31 +02:00
DESKTOP-RTLN3BA\$punk
3b87ecc3c5 fix: made notion indexing async 2025-08-21 14:43:04 -07:00
CREDO23
9711af2b72 refresh the token when expired 2025-08-21 01:09:13 +02:00
CREDO23
b0b6df0971 updated the connector config after refreshing the token 2025-08-20 20:32:08 +02:00
CREDO23
d840113bff add relelvant bot suggestions 2025-08-15 09:12:40 +02:00
CREDO23
b7e941bcb2 update google gmail connector 2025-08-15 09:11:14 +02:00
DESKTOP-RTLN3BA\$punk
5aa52375c3 refactor: refactored background_tasks & indexing_tasks 2025-08-12 15:28:13 -07:00
CREDO23
edf46e4de1 update seach source connector schema 2025-08-03 12:16:40 +02:00
CREDO23
44d2338663 get all primary calendar event by default 2025-08-03 12:16:40 +02:00
CREDO23
4cb00735ac add coderabbit suggestions 2025-07-30 22:25:47 +02:00
CREDO23
ede3dce9af update clikup connector 2025-07-30 21:28:31 +02:00
CREDO23
65b6177ef0 add clickup connector 2025-07-29 21:23:59 +02:00
CREDO23
8e52a0b201 add relevant coderrabit suggestions 2025-07-27 14:03:39 +02:00
CREDO23
dee54bf5e1 fix the confluence search implemetation 2025-07-27 13:20:12 +02:00
CREDO23
e5bb26ea13 add confluence connector 2025-07-26 14:43:57 +02:00
Utkarsh-Patel-13
2827522ebc Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00
CREDO23
127681d2e1 clean up 2025-07-25 10:13:46 +02:00
CREDO23
b4d29ba3a0 add coderabbit suggestions 2025-07-25 09:01:53 +02:00
CREDO23
d9875eb7a6 update the JIRA connector 2025-07-25 08:59:32 +02:00
CREDO23
655352fc09 fix issues indexing with jira connector 2025-07-25 08:59:32 +02:00
CREDO23
4984aab3f1 update auth type 2025-07-25 08:59:32 +02:00
CREDO23
7af65a5a66 update the promt 2025-07-25 08:59:32 +02:00
CREDO23
2bb013ef9d update the promt 2025-07-25 08:59:32 +02:00
CREDO23
cd05a06a91 update connector indexing / update connector service 2025-07-25 08:59:32 +02:00
CREDO23
c4eab5eaba feat: add jira connector module implementation 2025-07-25 08:59:32 +02:00
CREDO23
f488c106fa feat: add a starter implementation of JIRA connector module 2025-07-25 08:59:32 +02:00
Utkarsh-Patel-13
d359a59f6d Fixed all ruff lint and formatting errors 2025-07-24 14:43:48 -07:00
DESKTOP-RTLN3BA\$punk
deea3fa544 chore: remove VERSION file and clean up unused imports across multiple files 2025-06-03 01:33:21 -07:00
Muhamad Aji Wibisono
a3c91484ac feat: thread yielding for bot responsivity 2025-06-02 22:02:12 +07:00
Muhamad Aji Wibisono
afc1100f6d feat: added more validation, discord bot connection timeout 2025-06-02 20:49:45 +07:00
Muhamad Aji Wibisono
d11b636113 feat: removed limit on message fetching 2025-06-02 20:26:14 +07:00
Muhamad Aji Wibisono
a0f9efdb67 fix: async thread on discord but 2025-06-02 19:22:04 +07:00
Muhamad Aji Wibisono
0391c2290e feat: initialized discord connector 2025-06-02 18:20:17 +07:00
DESKTOP-RTLN3BA\$punk
a870e07cbf Merge commit 'fd6da4c4723ab28fc40605d109a9ba66cbd364e3' into dev 2025-05-28 23:52:33 -07:00
DESKTOP-RTLN3BA\$punk
5411bac8e0 feat: Added content based hashing to prevent duplicates and fix resync issues 2025-05-28 23:52:00 -07:00
google-labs-jules[bot]
379694c267 Hotfix: Remove non-printable characters from slack_history.py
This commit addresses recurring `SyntaxError: invalid non-printable character U+001B`
errors in `surfsense_backend/app/connectors/slack_history.py`.

The file was cleaned to remove all occurrences of the
U+001B (ESCAPE) character. This ensures that previously introduced
problematic control characters are fully removed, allowing the application
to parse and load the module correctly.
2025-05-27 13:44:56 +00:00
google-labs-jules[bot]
299bb35d8c Hi there, it's Jules! I've just finished making some improvements.
Here's a rundown of what I did:

Fix: Robust Slack rate limiting, error handling & GitHub org repos

This update delivers comprehensive improvements to Slack connector stability and enhances the GitHub connector.

**Slack Connector (`slack_history.py`, `connectors_indexing_tasks.py`):**
- I've implemented proactive delays (1.2s for `conversations.history`, 3s for `conversations.list` pagination) and `Retry-After` header handling for 429 rate limit errors across `conversations.list`, `conversations.history`, and `users.info` API calls.
- I'll now gracefully handle `not_in_channel` errors when fetching conversation history by logging a warning and skipping the channel.
- I've refactored channel info fetching: `get_all_channels` now returns richer channel data (including `is_member`, `is_private`).
- I've removed direct calls to `conversations.info` from `connectors_indexing_tasks.py`, using the richer data from `get_all_channels` instead, to prevent associated rate limits.
- I corrected a `SyntaxError` (non-printable character) in `slack_history.py`.
- I've enhanced logging for rate limit actions, delays, and errors.
- I've updated unit tests in `test_slack_history.py` to cover all new logic.

**GitHub Connector (`github_connector.py`):**
- I've modified `get_user_repositories` to fetch all repositories accessible by you (owned, collaborated, organization) by changing the API call parameter from `type='owner'` to `type='all'`.
- I've included unit tests in `test_github_connector.py` for this change.
2025-05-27 13:39:42 +00:00
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
google-labs-jules[bot]
807c83b2f6 Fix: Handle Slack API rate limiting for conversations.list
The `get_all_channels` method in `slack_history.py` was making paginated
requests to `conversations.list` without any delay, leading to HTTP 429
errors when fetching channels from large Slack workspaces.

This commit introduces the following changes:
- Adds a 3-second delay between paginated calls to `conversations.list`
  to comply with Slack's Tier 2 rate limits (approx. 20 requests/minute).
- Implements handling for the `Retry-After` header when a 429 error is
  received. The system will wait for the specified duration before
  retrying. If the header is missing or invalid, a default of 60 seconds
  is used.
- Adds comprehensive unit tests to verify the new delay and retry logic,
  covering scenarios with and without the `Retry-After` header, as well
  as other API errors.
2025-05-27 12:56:26 +00:00
DESKTOP-RTLN3BA\$punk
e0eb9d4b8b feat: Added Linear Connector 2025-04-15 23:10:35 -07:00
Adamsmith6300
a26fac435b documents table migration, fix/update github indexing 2025-04-13 21:23:05 -07:00
Adamsmith6300
bb198e38c0 add github connector, add alembic for db migrations, fix bug updating connectors 2025-04-13 13:56:22 -07:00
DESKTOP-RTLN3BA\$punk
da23012970 feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00