Files
vscode/.github
Josh Spicer 6d52b5c5da policy: let native MDM win over server for managed settings (#323615)
* policy: let native MDM win over server for managed settings

Flip the managed-settings precedence so native MDM takes priority over
the GitHub server endpoint. selectManagedSettings now resolves native
MDM first, then server, then the on-disk file, and the Policy Diagnostics
report lists the channels in that same precedence order.

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

* policy: update accountPolicyService tests, comment, and docs for MDM precedence

Flip the AccountPolicyService precedence unit tests so native MDM wins
over the server channel, fix the stale getPolicyData() comment, and
update the add-policy skill docs to describe native MDM > server > file.

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

* policy: reorder selectManagedSettings params to match precedence

Address PR review: make the parameter order (nativeMdm, server, file)
match the resolution precedence so same-typed call sites are
self-documenting and harder to transpose. Update both call sites, the
unit tests, and the skill docs.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-29 23:14:01 +00:00
..