3.3 KiB
TODO — Pending features and sustainability
Quick overview of what's still to be done. Full details in SUGGESTIONS.md.
Recently completed
Memory exhaustion during large M365 scans ✅
Six root causes fixed in scan_engine.py and document_scanner.py:
- Email body HTML stripped at collection time (
bodykey deleted from each message dict before it enterswork_items; plain text stored as_precomputed_bodyinstead) work_itemslist converted to adequebefore processing so each item is released immediately afterpopleft()del contentadded in file-processing branch as soon as raw bytes are no longer needed (before NER/PII counting)del body_textadded after email body is fully consumed- PDF OCR page images (
PIL.Image) nulled out one by one after OCR instead of holding all pages in RAM - Memory guard using
psutilskips file downloads when < 300 MB RAM is available
Still open: The collection phase itself is still a "gather all, then process" loop. For very large tenants (>500k emails) the pre-extracted plain text in work_items could still be significant. The complete fix is to process each user's emails/files inline as they are fetched (generator/streaming pattern) rather than accumulating them into work_items first — estimated 1–2 days of refactor.
Pending
#15 — Scan profiles ✅
Named, reusable scan configurations. Full spec in SUGGESTIONS.md §15.
Size: Large · Priority: High
#23 — Google Workspace role classification + cross-platform identity mapping ✅
Full spec in SUGGESTIONS.md §23.
Size: Large · Priority: Medium
#27 — Migrate i18n format from .lang to JSON ✅
Full spec in SUGGESTIONS.md §27.
Size: Medium · Priority: Low
#29 — Rename skus/ → classification/ ✅
Full spec in SUGGESTIONS.md §29.
Size: Small · Priority: Low
#33 — Read-only viewer mode with PIN/token URL ✅
A shareable URL (token-protected) or numeric PIN that gives a DPO, school principal, or compliance coordinator read-only access to the results grid — with disposition tagging but without scan controls, credentials, or delete access. Full spec in SUGGESTIONS.md §33.
Size: Medium · Priority: Medium
OneDrive 404 errors — investigate and handle appropriately
Every student is supposed to have a OneDrive licence, so 404s on drive/root/delta are unexpected. A 404 can mean: no licence assigned, licence assigned but OneDrive service plan disabled, drive not yet provisioned (account never signed in), or account suspended/deleted. Currently broadcast as red scan_error in the log.
Action: Check affected users in the M365 admin centre (Licences + OneDrive status). Once root cause is confirmed, decide whether to suppress, log at lower severity, or show a specific "OneDrive not provisioned" message instead of the raw HTTP error.
Size: Small · Priority: Medium
#32 — Windowed mode for Profiles, Sources, and Settings ✗ Won't do
The workflow is sequential (configure → scan → review), not parallel — there is no realistic scenario where a modal and the results grid need to be open simultaneously. The Sources panel is already visible in the sidebar. Option A (the least-work path) still loads the full 3800-line JS stack twice. Closed.