Skip to content

[WIP] Fix report to exclude case-different attribute changes#586

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/fix-report-case-difference-issue
Draft

[WIP] Fix report to exclude case-different attribute changes#586
Copilot wants to merge 4 commits intomainfrom
copilot/fix-report-case-difference-issue

Conversation

Copy link
Contributor

Copilot AI commented Mar 5, 2026

  • Invoke coding-agent-workflow skill
  • Issue analysis: root cause identified - summary counts not updated to exclude case-change-only resources
  • Implement fix: add IsEffectivelyVisible helper and use summaryChanges for summary counts in ReportModelBuilder.Build.cs
  • Add tests: TC-20, TC-21, TC-22 in ReportModelBuilderIgnoreCaseChangesTests.cs
  • Code review
  • Release

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI added 3 commits March 5, 2026 09:43
…ry counts

Issue 109: Resources with only Azure resource ID casing differences are excluded
from model.Changes (displayChanges filter) but still counted in model.Summary.ToChange.
Root cause: summary computed from allChanges before the displayChanges filter runs.
PR #574 fixed display suppression but missed updating summary computation.

Analysis covers:
- Root cause in ReportModelBuilder.Build.cs lines 44-46 vs 64-73
- What PR #574 did and didn't fix
- Suggested fix approach (IsEffectivelyChanged predicate)
- Required new test cases (TC-20 through TC-23)
…azure-id-case-changes is enabled

Previously, resources with only Azure ID casing differences were hidden
from the resource list in the report body (PR #574), but were still
counted in the summary header (toChange count and Total).

This fix:
1. Extracts IsEffectivelyVisible() helper capturing the visibility predicate
2. Creates summaryChanges by pre-filtering allChanges when the flag is active
3. Uses summaryChanges for all summary count calculations
4. Simplifies the displayChanges filter to reuse IsEffectivelyVisible()

New tests TC-20, TC-21, TC-22 verify that summary counts are consistent
with the displayed resource list when the filter is enabled.
Copilot stopped work on behalf of oocx due to an error March 5, 2026 10:34
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.

2 participants