Skip to content

fix(intune-anomalies): show deprecated setting values by their Intune name - #11

Merged
royklo merged 2 commits into
mainfrom
fix/deprecated-value-label
Oct 26, 2026
Merged

royklo merged 2 commits into
mainfrom
fix/deprecated-value-label

Conversation

@royklo

@royklo royklo commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Summary of changes

ConfiguredValue on a deprecated-setting row was the option id, such as com.apple.applicationaccess_allowgenmoji_false. It is now the option's label from the expanded setting definition (False), or the part after the definition id when the definition has no label for it. Simple values stay as they are; collection values are mapped one by one.

Only the Maester pack (MP.RKS.IA.1008) shows this column; the HTML report does not, so the report looks the same. After the merge, the sync workflow opens the first real sync PR in royklo/maester-pack-rksolutions (pack 0.1.3).

Related issue

None.

Checklist

  • Tests pass locally: Invoke-Pester ./Tests, 74 passed, 0 failed (the new test failed before the fix)
  • No cmdlet, help, Graph call or scope changed
  • With this core synced into the pack locally: Test-MtPack valid, Low, 0 findings; all eight pack tests run; pack Pester 25 passed

🤖 Generated with Claude Code

… name

ConfiguredValue on a deprecated-setting row was the option id, such as
com.apple.applicationaccess_allowgenmoji_false. It is now the option's label
from the expanded setting definition (False), or the part after the
definition id when the definition has no label for it. The Maester pack
shows this column; the HTML report does not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 09:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Label conversion also alters literal simple-setting values and must be restricted to choice-setting types.

1 open issue
What changed in this PR

This PR makes deprecated-setting configured values more readable for downstream consumers such as the Maester pack, without changing the HTML report.

Changes:

  • Map configured option IDs to Intune labels, falling back to the suffix after the definition ID.
  • Add a regression test for label lookup and fallback behavior.
  • Update the changelog and report comments.
File Description
Tests/​IntuneAnomalyCore.Tests.ps1 Tests option labels and definition-prefix fallback.
module/​Private/​IntuneAnomalies.ps1 Clarifies in comments why the report omits configured values.
module/​Core/​IntuneAnomalyResolvers.ps1 Collects option labels and converts deprecated-setting values.
CHANGELOG.md Documents the readable configured-value change.

Review effort: Balanced

Comment thread module/Core/IntuneAnomalyResolvers.ps1 Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 09:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused changes preserve simple values, include regression coverage, and leave no supported blocking findings after checking the Graph schema.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@royklo
royklo merged commit 53e9588 into main Oct 26, 2026
3 checks passed
@royklo
royklo deleted the fix/deprecated-value-label branch October 26, 2026 10:19
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