Repository navigation
fix(eo): preserve Encrypted Email Count from CSV and trigger delta scan when column is empty - #176
Open
rishiksingh11 wants to merge 2 commits into
Open
rishiksingh11 wants to merge 2 commits into
rishiksingh11 wants to merge 2 commits into
Conversation
NityamPareek
approved these changes
Sep 17, 2026
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
Fixes two bugs when scanning or loading Encrypted Emails in the Exchange Online planner with Upload CSV:
Missing CSV data mapping in
_prepare_batch_list():Encrypted Email Countwas initialized to0for each row and never copied fromexisting_data, causing any pre-existingEncrypted Email Countin the uploaded CSV to be reset to0.have_encrypted_email = "Encrypted Email Count" in sampleand copiedsrc.get("Encrypted Email Count", 0)whenconfig.scan_encrypted_emailis enabled.Prematurely skipping Delta Scan in
_resolve_target_users():have_encrypted_email(and other resource flags) checked only whether the column header existed indf_input.columns. Since exporteduser_report_*.csvfiles include all columns (with0s for un-scanned resources), re-uploading a report CSV and enabling Encrypted Emails causedhave_encrypted_email = True, skipping authentication/ID resolution and resulting in0encrypted emails._resolve_target_users()to check that the column contains non-zero data ((pd.to_numeric(...).fillna(0) > 0).any()), matching the existinghas_..._datalogic in_run_scan_phases().Screenshots
1. Configuration Screen (Upload CSV + Encrypted Emails Enabled under Advanced Settings)
2. Results View (Encrypted Emails Count Properly Displayed from CSV / Delta Scan)