Skip to content

Keep hierarchy nodes after partial folder deletion - #1025

Merged
Stephen Griffin (stephenegriffin) merged 2 commits into
mainfrom
fix/655-partial-folder-deletion
Oct 21, 2026
Merged

Stephen Griffin (stephenegriffin) merged 2 commits into
mainfrom
fix/655-partial-folder-deletion

Conversation

@stephenegriffin

Copy link
Copy Markdown
Member

Summary

Fixes #655.

  • Remove the folder's hierarchy node only when DeleteFolder returns S_OK, rather than for every SUCCEEDED result.
  • Preserve the node for MAPI_W_PARTIAL_COMPLETION and other success-status warnings: partial completion does not establish that the folder itself was deleted.
  • Keep the existing deletion call and error reporting unchanged.

The branch already includes current main; the PR diff is limited to the result guard and its comment.

Validation

  • Existing Debug x64 and x86 build tasks pass with no warnings or errors.
  • Complete existing native suites pass: 261/261 on x64 and 261/261 on x86.
  • All 433 CI-checked C/C++ files pass clang-format 17 using the workflow's options.
  • Earlier local source-extracted policy checks covered S_OK, MAPI_W_PARTIAL_COMPLETION, S_FALSE, failure, access denied, and cancellation. These are decision checks, not persistent native UI regression coverage.
  • No live-store deletion was performed; the existing unit suite does not exercise the folder-deletion UI/provider workflow.

Remove a folder node only when DeleteFolder returns S_OK. Partial-completion warnings do not establish that the folder itself was deleted; retain the existing error reporting and node in that case.

Fixes #655.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Test Results

    8 files  ±0      8 suites  ±0   49s ⏱️ ±0s
  261 tests ±0    261 ✅ ±0  0 💤 ±0  0 ❌ ±0 
2 088 runs  ±0  2 088 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 2ffcbd4. ± Comparison against base commit b62fff3.

@stephenegriffin
Stephen Griffin (stephenegriffin) merged commit 7f1fdb8 into main Oct 21, 2026
21 checks passed
@stephenegriffin
Stephen Griffin (stephenegriffin) deleted the fix/655-partial-folder-deletion branch October 21, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hierarchy tree incorrect after fixed folder deletion attempt

2 participants