[PR #3324] [CLOSED] 2502 google docs connector #4261

Closed
opened 2026-02-22 18:35:28 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3324
Author: @sammingasainath
Created: 2/22/2025
Status: Closed

Base: masterHead: 2502-google-docs-connector


📝 Commits (5)

  • 8e679e5 func. working with workspace and api , to add auto sync feature
  • 757642e before autosync
  • 648bbf1 Delete server/storage/google_tokens.json
  • 20e1ab0 Hoorah,Sync Functionality Finally Working
  • a7b4d1d Hoorah,Sync Functionality Finally Working

📊 Changes

58 files changed (+63934 additions, -3783 deletions)

View changed files

collector/dev.js (+2 -0)
collector/package-lock.json (+7259 -0)
collector/routes/googledocs.js (+70 -0)
collector/utils/extensions/GoogleDocs/index.js (+135 -0)
collector/utils/extensions/GoogleDocs/tokenStorage.js (+66 -0)
📝 collector/yarn.lock (+669 -792)
db.pdf (+0 -0)
docs/google_docs_setup.md (+77 -0)
frontend/dev.js (+9 -0)
frontend/package-lock.json (+6853 -0)
frontend/src/components/DataConnectorOption/media/googledocs.svg (+6 -0)
📝 frontend/src/components/DataConnectorOption/media/index.js (+2 -0)
📝 frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Github/index.jsx (+9 -8)
frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/GoogleDocs/index.jsx (+262 -0)
📝 frontend/src/components/Modals/ManageWorkspace/DataConnectors/index.jsx (+26 -8)
📝 frontend/src/components/Modals/ManageWorkspace/Documents/Directory/FileRow/index.jsx (+66 -17)
📝 frontend/src/components/Modals/ManageWorkspace/Documents/Directory/FolderRow/index.jsx (+6 -6)
📝 frontend/src/components/Modals/ManageWorkspace/Documents/Directory/index.jsx (+14 -15)
📝 frontend/src/components/Modals/ManageWorkspace/Documents/WorkspaceDirectory/WorkspaceFileRow/index.jsx (+146 -60)
📝 frontend/src/components/Modals/ManageWorkspace/Documents/index.jsx (+201 -73)

...and 38 more files

📄 Description

Pull Request Type

  • feat

Relevant Issues

resolves #xxx (Please replace with actual issue number if exists)

What is in this change?

This PR adds Google Docs integration and synchronization functionality to AnythingLLM. Key features include:

  1. Google Docs Connection & Authentication

    • Support for connecting Google Docs as a document source
    • Secure handling of Google Doc authentication
  2. Document Synchronization

    • Automatic syncing of Google Docs content
    • Real-time updates when documents change
    • Proper handling of document IDs and metadata
    • Vector store integration for synchronized content
  3. Workspace Integration

    • Documents are properly associated with workspaces
    • Namespace management for vector operations
    • Queue system for periodic document updates
  4. Error Handling & Logging

    • Robust error handling for sync operations
    • Detailed logging for debugging and monitoring
    • Graceful fallback mechanisms

Additional Information

The implementation includes:

  • Support for various Google Doc ID formats
  • Automatic vector store namespace initialization
  • Document metadata preservation during syncs
  • Background sync queue management
  • Configurable sync intervals

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • [ ✔] Relevant documentation has been updated
  • [ ✔] I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3324 **Author:** [@sammingasainath](https://github.com/sammingasainath) **Created:** 2/22/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `2502-google-docs-connector` --- ### 📝 Commits (5) - [`8e679e5`](https://github.com/Mintplex-Labs/anything-llm/commit/8e679e53f1505ef1eaf2c3861eb751a906858020) func. working with workspace and api , to add auto sync feature - [`757642e`](https://github.com/Mintplex-Labs/anything-llm/commit/757642efe26464ae05ace81f7f6931d0c5b06ec6) before autosync - [`648bbf1`](https://github.com/Mintplex-Labs/anything-llm/commit/648bbf1a8440d56fb4a22fa1308a58de322e1abc) Delete server/storage/google_tokens.json - [`20e1ab0`](https://github.com/Mintplex-Labs/anything-llm/commit/20e1ab0a66d38b454b31f070fe9cf8e3e026732d) Hoorah,Sync Functionality Finally Working - [`a7b4d1d`](https://github.com/Mintplex-Labs/anything-llm/commit/a7b4d1deb30806c57d7741c0dd9d80ae369a79aa) Hoorah,Sync Functionality Finally Working ### 📊 Changes **58 files changed** (+63934 additions, -3783 deletions) <details> <summary>View changed files</summary> ➕ `collector/dev.js` (+2 -0) ➕ `collector/package-lock.json` (+7259 -0) ➕ `collector/routes/googledocs.js` (+70 -0) ➕ `collector/utils/extensions/GoogleDocs/index.js` (+135 -0) ➕ `collector/utils/extensions/GoogleDocs/tokenStorage.js` (+66 -0) 📝 `collector/yarn.lock` (+669 -792) ➕ `db.pdf` (+0 -0) ➕ `docs/google_docs_setup.md` (+77 -0) ➕ `frontend/dev.js` (+9 -0) ➕ `frontend/package-lock.json` (+6853 -0) ➕ `frontend/src/components/DataConnectorOption/media/googledocs.svg` (+6 -0) 📝 `frontend/src/components/DataConnectorOption/media/index.js` (+2 -0) 📝 `frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Github/index.jsx` (+9 -8) ➕ `frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/GoogleDocs/index.jsx` (+262 -0) 📝 `frontend/src/components/Modals/ManageWorkspace/DataConnectors/index.jsx` (+26 -8) 📝 `frontend/src/components/Modals/ManageWorkspace/Documents/Directory/FileRow/index.jsx` (+66 -17) 📝 `frontend/src/components/Modals/ManageWorkspace/Documents/Directory/FolderRow/index.jsx` (+6 -6) 📝 `frontend/src/components/Modals/ManageWorkspace/Documents/Directory/index.jsx` (+14 -15) 📝 `frontend/src/components/Modals/ManageWorkspace/Documents/WorkspaceDirectory/WorkspaceFileRow/index.jsx` (+146 -60) 📝 `frontend/src/components/Modals/ManageWorkspace/Documents/index.jsx` (+201 -73) _...and 38 more files_ </details> ### 📄 Description ### Pull Request Type - [x] ✨ feat ### Relevant Issues resolves #xxx (Please replace with actual issue number if exists) ### What is in this change? This PR adds Google Docs integration and synchronization functionality to AnythingLLM. Key features include: 1. Google Docs Connection & Authentication - Support for connecting Google Docs as a document source - Secure handling of Google Doc authentication 2. Document Synchronization - Automatic syncing of Google Docs content - Real-time updates when documents change - Proper handling of document IDs and metadata - Vector store integration for synchronized content 3. Workspace Integration - Documents are properly associated with workspaces - Namespace management for vector operations - Queue system for periodic document updates 4. Error Handling & Logging - Robust error handling for sync operations - Detailed logging for debugging and monitoring - Graceful fallback mechanisms ### Additional Information The implementation includes: - Support for various Google Doc ID formats - Automatic vector store namespace initialization - Document metadata preservation during syncs - Background sync queue management - Configurable sync intervals ### Developer Validations - [x] I ran `yarn lint` from the root of the repo & committed changes - [ ✔] Relevant documentation has been updated - [ ✔] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:28 -05:00
yindo closed this issue 2026-02-22 18:35:28 -05:00
yindo changed title from [PR #3324] 2502 google docs connector to [PR #3324] [CLOSED] 2502 google docs connector 2026-06-05 15:17:41 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4261