Skip to content

feat(files): implement Shallow Scan using SharePoint REST StorageMetrics & ItemCount APIs - #174

Merged
NityamPareek merged 1 commit into
files-shallow-scanfrom
feat/shallow-scan-storage-metrics
Sep 17, 2026
Merged

NityamPareek merged 1 commit into
files-shallow-scanfrom
feat/shallow-scan-storage-metrics

Conversation

@NityamPareek

Copy link
Copy Markdown
Collaborator

Summary

  • Implement unified Shallow Scan for Files Migration Planner using SharePoint REST StorageMetrics and ItemCount APIs across both Case 1 (Scan All OneDrives) and Case 2 (Scan Selected OneDrives / CSV).
  • Scope StorageMetrics directly to the /Documents folder (GetFolderByServerRelativeUrl('.../Documents')?$select=StorageMetrics&$expand=StorageMetrics) to obtain recursive TotalFileCount and TotalFileStreamSize (active file stream size excluding historical versions, Recycle Bin, and PreservationHoldLibrary).
  • Query GetList('.../Documents')?$select=ItemCount for recursive total item count (files + folders), calculating folderCount = max(0, ItemCount - TotalFileCount).
  • Filter Phase 2 targets strictly to active DLs discovered in Phase 1 (dlCount > 0).
  • Add RSA self-signed certificate generation (core/cert_auth.py) and MSAL certificate token management (util/files_shallow/cert_token_manager.py).
  • Fix OData single-quote URL escaping, full error message logging, and UI formatting for N/A shallow scan metrics.
@NityamPareek
NityamPareek merged commit ea4c0c5 into files-shallow-scan Sep 17, 2026
1 check passed
@NityamPareek
NityamPareek deleted the feat/shallow-scan-storage-metrics branch September 17, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant