Repository navigation
feat: add separate Sensitivity Labels and Encrypted Sensitivity Labels stat cards for Emails and Files - #190
Open
rishiksingh11 wants to merge 8 commits into
Conversation
… + SharePoint REST Search API
… counts in brackets) for Emails & Files
…ails and Files - Replace combined X (Y Encrypted) bracketed counts with separate, standalone stat cards: - Exchange Online: Sensitivity Labels, Encrypted Sensitivity Labels, Sensitivity Labeled Emails, and Encrypted Emails in a dedicated row - SharePoint & OneDrive Files: Sensitivity Labels, Encrypted Sensitivity Labels, Sensitivity Labeled Files, Total Encrypted File Count, and Total Encrypted File Size in a dedicated row - Store plain integer counts in Sensitivity Labeled Email Count and Sensitivity Labeled File Count CSV columns - Refresh screenshots and local GUI screencast against live Microsoft 365 tenant
Collaborator
|
Please fix the following:
|
…s-shallow-scan
…crypted_files_utils.py with size-sorted streaming pagination
Contributor
Author
|
@NityamPareek Thanks for the thorough review! Addressed all points from your comment and inline review in
|
…g sensitivity labels
…screenshots and bounded memory worker pool
Contributor
Author
|
@NityamPareek Ran Scan All Sites with Scan for Encrypted Files (RMS/MIP) enabled on the
|
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
Adds Sensitivity Labels and Sensitivity Labeled Items metrics for Exchange Online and SharePoint & OneDrive Files (Deep Scan), addressing all feedback from #190 (comment):
Scan for Encrypted Files (RMS/MIP)strictly to Deep Scan (FileEstimator).estimators/files_shallow/shallow_file_estimator.py,util/files_shallow/sp_rest_connector.py, andtests/files/shallow_estimator_test.py(0 diffagainstfiles-shallow-scan).tests/files/load_tests.py(TestDeepScanEncryptedFilesAndSensitivityLabels).util/encrypted_files_utils.py):POST /_api/search/postquery) pagination and sensitivity label classification intoutil/encrypted_files_utils.py._scan_encrypted_files):_scan_encrypted_filessequentially afterdrive_parsing(_create_in_memory_tree) completes so it never runs concurrently with the Deep Scan.3(ENCRYPTED_FILES_CONCURRENCY = 3).base_urlfallback (1 <= len(target_urls) <= 10) and strictly scoped every search query to the specific Document Library / Subsite URL (Path:"{library_url}").SizeCursor Pagination:seen_filesandall_rowsaccumulation in memory.{"Property": "Size", "Direction": 0}, tie-broken by{"Property": "DocId", "Direction": 0}) with cursor paginationAND (Size>{last_size} OR (Size={last_size} AND IndexDocId>{last_doc_id})).on_page_metricsand explicitly freed page rows (del rows,del resp_data) after each batch.ui/files_ui.py& Inline Review Feedback:files-shallow-scan(f66811c) cleanly intoui/files_ui.py(shallow_scandefaultTrue+shallow_ui_helpers.on_shallow_scan_toggle(self)).?$select=id,isPersonalSiteandresponse_data.get("isPersonalSite", False)inestimators/file_estimator.py.Local Screencast & Screenshots
🎥 Local Execution Screencast
1. Exchange Online — Configuration & Sensitivity Labels Report
2. SharePoint & OneDrive Files (Deep Scan) — Configuration & Sensitivity Labels Report
3.
googlellc914Load-Test Tenant (16,285Sites) —Scan All Sites+Encrypted FilesMemory Usage Proof8c838f69-e747-41fa-a86d-e63d579f59cb(googlellc914/deal_assistant_test_app)Scan All Sites(Deep Scan,Personal Sites (OneDrive)+SharePoint Sites,Scan for Encrypted Files (RMS/MIP)enabled)16,285Sites (15,268SharePoint Team Sites +1,017OneDrive Personal Sites) |3,013,673Files (4.21 TB)psutilProcess RSS): Avg157.6 MB/ Peak227.7 MB(0.22%System RAM) — boundedO(1)worker pool (max_workers=3) with immediate per-pagedel rowscleanup and per-batch tree cleanup (del batch_adj_list, batch_parent_refs, batch_folder_nodes).googlellc914Configuration (Scan All Sites)googlellc914Data Corpus Report (16,285Sites)Live Process RSS Memory Profile (
googlellc914—16,285Sites)