Skip to content

Conversation

@akampuriramark
Copy link
Contributor

Summary

Adds Shared/Team Drive support to the Google Drive storage provider and changes file deletion behavior to move files to trash instead of permanently deleting them.

Changes

Shared Drive (Team Drive) Support

  • Added SupportsAllDrives option to GoogleDriveStorageOptions for enabling Shared Drive access
  • Updated all IGoogleDriveClient operations to pass the supportsAllDrives flag:
    • UploadAsync, DownloadAsync, DeleteAsync, ExistsAsync, GetMetadataAsync, ListAsync
  • Set SupportsAllDrives and IncludeItemsFromAllDrives on all Google Drive API requests (Create, Get, List, Update)
  • Folder creation now respects the SupportsAllDrives setting

Soft Delete (Trash Instead of Permanent Delete)

  • Changed DeleteRecursiveAsync to use Files.Update() with Trashed = true instead of Files.Delete()
  • Files are now moved to Google Drive's Trash and remain recoverable until the trash is emptied

@codecov
Copy link

codecov bot commented Dec 16, 2025

Codecov Report

❌ Patch coverage is 82.50000% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.65%. Comparing base (b553530) to head (4e4a90b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...agedCode.Storage.GoogleDrive/GoogleDriveStorage.cs 60.00% 4 Missing ⚠️
...e.Storage.GoogleDrive/Clients/GoogleDriveClient.cs 89.65% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
- Coverage   56.75%   56.65%   -0.10%     
==========================================
  Files         127      127              
  Lines        6199     6213      +14     
  Branches      924      924              
==========================================
+ Hits         3518     3520       +2     
- Misses       2256     2268      +12     
  Partials      425      425              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KSemenenko KSemenenko merged commit 223cc4b into managedcode:main Dec 16, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants