Commit graph

2716 commits

Author SHA1 Message Date
Rohan Verma
093eb6fd17
Merge pull request #124 from itsmekaved/fix/version-update
fix(ui): update version to v0.0.7 in dashboard #121
2025-06-02 10:57:57 -07:00
Muhamad Aji Wibisono
a3c91484ac feat: thread yielding for bot responsivity 2025-06-02 22:02:12 +07:00
Muhamad Aji Wibisono
ebfc2cb679 feat: optimized discord indexing by matching the document pattern 2025-06-02 21:04:13 +07:00
Muhamad Aji Wibisono
42cc1b8fbe feat: applied coderabbit suggestions 2025-06-02 21:03:50 +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
6b38129623 fix: discord document frontend 2025-06-02 20:44:48 +07:00
Muhamad Aji Wibisono
d11b636113 feat: removed limit on message fetching 2025-06-02 20:26:14 +07:00
Muhamad Aji Wibisono
59523563be feat: added edit on discord connector 2025-06-02 19:54:22 +07:00
Muhamad Aji Wibisono
303856e160 feat: added icon for discord connector 2025-06-02 19:31:48 +07:00
Muhamad Aji Wibisono
a0f9efdb67 fix: async thread on discord but 2025-06-02 19:22:04 +07:00
Muhamad Aji Wibisono
1d67a87b82 feat: discord knowledge retrieval 2025-06-02 18:43:32 +07:00
Muhamad Aji Wibisono
158976e802 feat: enabled discord connector on frontend 2025-06-02 18:31:08 +07:00
Muhamad Aji Wibisono
4b3c662478 feat: added discord indexer 2025-06-02 18:30:38 +07:00
Muhamad Aji Wibisono
0391c2290e feat: initialized discord connector 2025-06-02 18:20:17 +07:00
itsmekaved
55e80fed41 Merge branch 'fix/version-update' of https://github.com/itsmekaved/SurfSense into fix/version-update 2025-06-02 13:39:02 +05:30
itsmekaved
78f8f55388 Updated version to v0.0.7 in dashboard #121 without any other change 2025-06-02 13:38:13 +05:30
itsmekaved
dc20a0d489 reset the uv.lock back 2025-06-02 13:28:28 +05:30
itsmekaved
ab078b103d Merge branch 'fix/version-update' of https://github.com/itsmekaved/SurfSense into fix/version-update 2025-06-02 13:00:50 +05:30
itsmekaved
10d4836f8f fix(ui): update version to v0.0.7 in dashboard #121 2025-06-02 12:54:03 +05:30
itsmekaved
2f8356f9ad fix(ui): update version to v0.0.7 in dashboard #121 2025-06-02 12:01:25 +05:30
Rohan Verma
11b93c443f
Merge pull request #56 from anshul7665/main
Adding GH Action to build image and host them on GHCR
2025-05-31 21:21:47 -07:00
Anshul Sharma
0c70064f2f
Update docker-publish.yml 2025-06-01 09:46:56 +05:30
Anshul Sharma
2ae8d227bf
Merge branch 'MODSetter:main' into main 2025-06-01 09:38:21 +05:30
Rohan Verma
72129007ed
Merge pull request #122 from fblgit/feat/github-actions-docker-publish
Feat/GitHub actions docker publish
2025-05-31 20:59:48 -07:00
Rohan Verma
42b57e5a0e
Merge pull request #123 from MODSetter/dev
feat: Removed Hard Dependency on Unstructured.io
2025-05-30 19:32:13 -07:00
DESKTOP-RTLN3BA\$punk
0365febc8c fix for content hashing 2025-05-30 19:30:56 -07:00
DESKTOP-RTLN3BA\$punk
0dbcf56e33 bs fix 2025-05-30 19:28:59 -07:00
DESKTOP-RTLN3BA\$punk
b67b4972f0 readme fix 2025-05-30 19:27:38 -07:00
DESKTOP-RTLN3BA\$punk
73751c0eb1 feat: Removed Hard Dependency on Unstructured.io
- Added Llamaparse Support :)
2025-05-30 19:17:19 -07:00
Rohan Verma
5737ea80c0
Merge pull request #120 from MODSetter/dev
feat: Added content based hashing to prevent duplicates and fix resync issues
2025-05-29 00:00:39 -07:00
DESKTOP-RTLN3BA\$punk
a870e07cbf Merge commit 'fd6da4c472' 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]
825dcad112 feat: Enable multi-architecture Docker image builds (amd64, arm64)
Updates the GitHub Actions workflow (`.github/workflows/docker-publish.yml`)
to build and push Docker images for both `linux/amd64` and `linux/arm64`
architectures.

The `platforms` attribute has been added to the `docker/build-push-action`
step for both the backend and frontend jobs. This ensures that you on
different CPU architectures can use the published images from ghcr.io.
2025-05-29 02:00:56 +00:00
google-labs-jules[bot]
5ff08e7b3f feat: Add GitHub Actions workflow for Docker image publishing
Adds a GitHub Actions workflow to automatically build and publish Docker images for the backend and frontend services.

The workflow (`.github/workflows/docker-publish.yml`) is triggered on pushes to the `main` branch. It includes two jobs:

1.  `build_and_push_backend`: Builds the Docker image from `surfsense_backend/Dockerfile` and pushes it to `ghcr.io/<owner>/surfsense_backend:<commit_sha>`.
2.  `build_and_push_frontend`: Builds the Docker image from `surfsense_web/Dockerfile` and pushes it to `ghcr.io/<owner>/surfsense_web:<commit_sha>`.

Both jobs include steps for:
- Checking out the repository.
- Setting up QEMU and Docker Buildx.
- Logging into the GitHub Container Registry (ghcr.io) using `secrets.GITHUB_TOKEN`.
- Building and pushing the respective Docker images, tagged with the commit SHA.
- Adding OCI labels for image source, creation date, and revision.

This CI pipeline automates the process of creating and distributing Docker images for the application, ensuring that new versions are available in the GitHub Container Registry upon changes to the main branch.
2025-05-29 01:58:58 +00:00
Rohan Verma
fd6da4c472
Merge pull request #117 from fblgit/fix/slack-rate-limiting
Fix/slack rate limiting & Github Repos ORG Filtering
2025-05-27 18:39:15 -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
Rohan Verma
5fef58bdf9
Merge pull request #112 from MODSetter/dev
Version Bump beta-v0.0.7
2025-05-22 00:16:27 -07:00
DESKTOP-RTLN3BA\$punk
38516e74f9 Version Bump 2025-05-22 00:11:57 -07:00
Rohan Verma
be8cbbe7b6
Merge pull request #111 from MODSetter/dev
fix: Added Suspense boundary in Login Page
2025-05-21 21:16:55 -07:00
DESKTOP-RTLN3BA\$punk
604791e6c5 fix: Added Suspense boundary in Login Page 2025-05-21 21:13:56 -07:00
Rohan Verma
94c79130f1
Merge pull request #110 from MODSetter/dev
feat: Removed Hard Dependency on Google Auth
2025-05-21 21:05:19 -07:00
DESKTOP-RTLN3BA\$punk
521ee4a1c4 feat: Removed Hard Dependecy on Google Auth
- Introduced LOCAL auth mode
2025-05-21 20:56:23 -07:00
Rohan Verma
c290146a8d
Merge pull request #109 from MODSetter/dev
feat: Code Block Syntax Highlighting & Copy Func
2025-05-19 23:29:43 -07:00
DESKTOP-RTLN3BA\$punk
4c8b03ce2b feat: Code Block Syntax Highlighting & Copy Func 2025-05-19 23:19:20 -07:00
Rohan Verma
8c58fc417e
Merge pull request #108 from MODSetter/dev
feat: Improved prompt for personalised responses
2025-05-19 20:56:13 -07:00
DESKTOP-RTLN3BA\$punk
33f7860969 Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2025-05-19 20:49:50 -07:00
DESKTOP-RTLN3BA\$punk
ad13d815a5 refactor: Improved prompt for personalization. 2025-05-19 20:49:47 -07:00