Support personal Drive/RAG without a company (#55).
CI / test (pull_request) Successful in 10s
Unit Tests / test (pull_request) Successful in 10s

Personal Drive connections and document workspaces are user-owned and
no longer require company_id. Company Drive still requires a company
manager. Chat/document scope falls back to a personal workspace for
solo users instead of rejecting with company_missing.
This commit is contained in:
2026-08-02 05:40:53 -05:00
parent 311e19abe6
commit 0d6bf2b024
13 changed files with 379 additions and 52 deletions
+3 -1
View File
@@ -214,7 +214,9 @@ Subscription audit (`UserAuthEvent` on the user admin):
### Drive / RAG sync ([#47](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/47)-[#53](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/53))
Personal Google Drive / OneDrive and company Google Shared Drive / SharePoint
sync into the existing RAG `Document` pipeline. Every endpoint below is gated
sync into the existing RAG `Document` pipeline. Personal connections work for
users **without** a company (personal workspace); company connections require a
company manager. Every endpoint below is gated
by `assert_feature_allowed(user, "rag")` (`SubscriptionPlan.allows_rag`
true for Founders/Pro/Business/Backer, false for Standard by default).