Repository navigation
feat(shallow-scan): track and display Failed DL Count in UI and reports - #189
Merged
NityamPareek merged 1 commit intoSep 23, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tracks failed Document Libraries (
Failed DL Count) per site and at the tenant level during Shallow Scan when SharePoint RESTStorageMetricsorItemCountAPI calls fail, and surfaces those counts across the UI, reports, and CSV report upload flow. Also wraps long stat card titles across two lines on the final dashboard to provide better visual spacing.Key Changes
estimators/files_shallow/shallow_file_estimator.py):"failedDlCount": 0at the tenant level (_initialize_metrics_structure) and per site (_prepare_root_sites).metrics["siteMetrics"][top_level_site_id]["failedDlCount"]in_record_failureinside_scan_document_librarieswhen a DL fails (PermissionError/Exception), while keeping"dlCount"as the total discovered DLs.metrics["failedDlCount"]in_finalize_tenant_totals.ui/files_ui.py):show_results_content): Display a"Failed Document\nLibrary Count"stat card right next to"Document\nLibrary Count"in Shallow Scan mode, and wrap multi-word card titles (Folder count beyond\ndepth limit 100,File count beyond\ndepth limit 100,Large Resource Count\n(Entities with >500k items),Warning Resource Count\n(Entities with >200k items),Site Collection\nCount) onto two lines so all cards fit with comfortable spacing.site_report_<ts>.csv(execute_migration_scan): Add"Failed DL Count"immediately after"DL Count"for each site row in Shallow Scan mode and includeFailed DLsin the summary log output.export_current_report): Include("Failed DL Count", ...)inSummary Metricsand"Failed DL Count"right after"DL Count"inSite Detailswhen in Shallow Scan mode._validate_csv&_try_get_metrics_from_csv_report): Support Shallow Scansite_report.csvuploads both with the new"Failed DL Count"column and without it (backward-compatible).tests/files/shallow_estimator_test.py):test_failed_dl_count_tracked_per_site_and_tenant_levelandtest_shallow_scan_site_report_csv_upload_with_failed_dl_count.