-
Notifications
You must be signed in to change notification settings - Fork 2k
drive service account shared fixes #4977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Fixes Google Drive service account indexing to properly include files shared with specific users. The changes remove special UI handling and align backend behavior.
- Hardcoded debugging code in
backend/onyx/connectors/google_utils/google_utils.py
needs to be removed before merging (document ID '1G0rnd9CdK8LTRc-V02U7uTWfuJjv_9f961LvbtHTTwg' and print statements) - Removes
currentCredential
parameter fromcreateConnectorInitialValues
inweb/src/app/admin/connectors/[connector]/AddConnectorPage.tsx
for better separation of concerns - Sets
include_files_shared_with_me
to defaultfalse
in UI like other checkboxes instead of forcingtrue
for service accounts - Added test case
test_specific_user_email_shared_with_me
to verify service account indexing behavior - Modified backend to correctly handle shared files when using service account authentication
5 files reviewed, 4 comments
Edit PR Review Bot Settings | Greptile
backend/tests/daily/connectors/google_drive/test_service_acct.py
Outdated
Show resolved
Hide resolved
backend/tests/daily/connectors/google_drive/test_service_acct.py
Outdated
Show resolved
Hide resolved
aacd9db
to
89cfb76
Compare
web/src/app/admin/connector/[ccPairId]/IndexAttemptErrorsModal.tsx
Outdated
Show resolved
Hide resolved
* drive service account shared fixes * oops * ily greptile * scrollable index attempt errors * tentatively correct index errors page, needs testing * mypy * black * better bounds in practice * remove random failures * remove console log * CW
Description
Addresses https://linear.app/danswer/issue/DAN-2157/fix-drive-shared-with-me-for-specific-user
service account indexing was not properly including files shared with the user when indexing as a specific user
How Has This Been Tested?
tested in UI + unit test
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.