Skip to content

Migrate People shared directives to the v3 wrapper - #3869

Open
Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 17 commits into
powershell-v3from
ramsessanchez-people-v3-migration
Open

Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 17 commits into
powershell-v3from
ramsessanchez-people-v3-migration

Conversation

@ramsessanchez

@ramsessanchez Ramses Sanchez-Hernandez (ramsessanchez) commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

No linked issue.

Changes proposed in this pull request

  • Migrate only the shared cmdlet directives in src/People/People.md, for v1.0 and beta, with no profile exclusions. Preserve this existing PR, all original migration/generation history, and tracked wrapper/Beta casing.
  • Normally merge final target 6475f3f5beb4908d39ea356db32bf1e0fd3273cb, containing Support mandatory Query-prefixed parameters for required queries #3882 and Remove automatic GET after successful PATCH #3886, and fully regenerate v1.0 then beta through the unchanged four-slot queue.
  • Fresh normal-package acceptance proves PATCH 204: one PATCH, no output, no GET, even with GET configured to return 403. PATCH 200 returns its actual typed response after one PATCH; caller-explicit GET has independent headers, queries, results and errors. The earlier implicit-refetch/header failure is user-superseded, not an outstanding failure or a waived gate.

Preserved shared-source dispositions

Directive Disposition
1: operation-ID suppression Complete original/current selected sets remain equal: v1.0 0/3, beta 3/129. Suppress only beta GET/PATCH/DELETE /users/{user-id}/analytics at exact unchanged method/path successors with aligned IDs. Singular ActivityStatistic does not match plural ActivityStatistics; retain all neighbors.
2: source-file-csharp transform DeferredParameter. Preserve the active historical Client/ServiceClient rewrite without porting it. Compiled profile-project commands retain Client.
3: activityStatistics rename Rename exactly five beta collection/item operations to UserActivityStatistics; retain UserAnalyticActivityStatisticsCount. This family is absent from both actual v1.0 sources.
4 and 5: insight renames Reviewed absent selectors in both actual legacy and compatible specs; no invented successors or redundant overrides.

Finite literal evidence retains the complete original selected set, all real survivors, exact current IDs and subject lineage, without reserved Legacy fields. Active shared directives are unchanged apart from migration comments. Ignore src/readme.graph.md and every profile-local directive. Aliases, parameter/source transforms and schema/response transforms remain deferred. No authored variant groups or new action endpoints are invented; all 1/21 ordinary list/item dispatcher alternatives/defaults remain verified. No #3881 overlay, #3897 optional-query work, global naming sweep, Auth/runtime/template fix, suppression broadening or unrelated owner changes.

Whole-module audit

The actual OpenAPI reader resolves path/operation parameters and component references across both original and compatible People specs. Both profiles have zero required query parameters. Required Query<Name> binding/zero-input/encoding gates are therefore not applicable to People; ordinary optional OData bindings remain unchanged. V1.0 is GET-only. Beta originally has 65 GET/20 POST/22 PATCH/22 DELETE; after the precise three suppressions it retains 64 GET/20 POST/21 PATCH/21 DELETE, 126 distinct routes. There are no independent POST-action, PUT, media or composite/grouped mutation surfaces in this module.

Current additive commits

Commit Purpose
4d83a9a3ff69f391141a113427a2daa214b8f9be Normal merge of actual 6475; no rewriting of prior history.
ac1f01ab327b51701b4b7a75ac1d3facf9b76bc4 Own source/evidence correction: current target and one-operation PATCH contract; positive whole-module required-query absence tests.
92ecb8df81e96fee38dad5721615b02dbcf442d2 Full combined v1.0 generation boundary. Client/project/locks remain identical; three GET files have generator-produced spacing changes only.
8511bc60a9334d954718abaac26d912134c337be Full combined beta generation boundary. All 21 generated PATCH workers lose hidden GET readback; actual complete generated delta is retained.

Each source/generated correction includes the Copilot coauthor. Clients, cmdlets, projects, locks and manifests were regenerated together, not hand-edited or split. Prior source 3f6bd79a9e, original generations 0c421e0dd3/02428caf47, intermediate target/evidence 021f22bfd8/0bc0e78060, generations 6dc42874ed/8503544396, #3849 merge/correction 6977a6bff4/beb9ec612d, and #3891 integration/correction/generations 28d4ec5e78/02d8cbc93b/46ae884da8/6967086e85 remain intact.

Old people-post3849-* and people-844672-revalidation artifacts are retained unchanged as historical evidence, not relabeled current proof. Old RMS serialization failure was resolved through normal #3891 Authentication packaging; old implicit-GET header expectations were superseded by the user's #3886 no-readback contract.

Exact unchanged spec Git blobs

Profile Compatible People.yml Original openApiDocs People.yml
v1.0 1d05e8dbb2ad71ad4ecb5d9144291cc290516894 1ab390cf83317405e3563c0f85121eca7c3209cd
beta fd224e37fbba7d97a0c8b6697c0d19e1c1830192 71381c77637c49c0e029f725e569629e7f9b4341

Current final validation

$evidence = 'C:\Users\ramsess\.copilot\session-state\6b3522f9-0145-4544-85b3-c67612af6159\files\post3886-6475-final'
$env:PATH = 'C:\Users\ramsess\.copilot\session-state\871a5292-dc5b-423e-8083-5165b0006603\files\tools\kiota;' + $env:PATH
$env:KIOTA_Generation__MaxDegreeOfParallelism = '1'
$env:PSModulePath = 'C:\Users\ramsess\.copilot\session-state\4aa86cf9-d43c-4d2b-a4a3-aeaed01b8f29\files\authentication-v2-sync\final-source\modules;C:\Users\ramsess\OneDrive - Microsoft\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;C:\Program Files\PowerShell\7\Modules'

Environment is process-local in the same invocation. Fresh imports select the exact adapted Authentication 2.41.2 root, not Gallery 2.41.2 or old 2.38. All 64 files match the supplied SHA256 manifest before/after acceptance. Physical Auth nupkg SHA256: 2FC09BFE6B70D313BC56DF8ADCCFB1976FB4E90A1898BF8A916B4B8B792898EB. Auth/runtime/templates are unchanged from the verified #3891 shipping source. Kiota 1.36.1+fd3bf87790149b87f40f7eae1a5feb9016625943, cap 1; queue SHA256 4A4478BCAA682E9628F361BEF299DFCFF5D785629666CC41F135F1F431A543E8. PS7/Core only; no Desktop5.1 acceptance. No dependency injection, global edits or package modification.

dotnet test .\tools\WrapperGenerator.Tests\WrapperGenerator.Tests.csproj --no-restore --filter 'FullyQualifiedName~PeopleDirectiveMigrationTests|FullyQualifiedName~CmdletConfiguratorTests|FullyQualifiedName~NamingTests|FullyQualifiedName~RequiredQueryTests|FullyQualifiedName~PatchOperationTests' --verbosity quiet --logger 'trx;LogFileName=targeted.trx' --results-directory $evidence
pwsh -NoLogo -NoProfile -NonInteractive -File .\tools\Get-WrapperDirectiveMigrationInventory.ps1 -Module People -FailOnUnresolved -OutputPath "$evidence\strict-inventory.json"

Both passed, exit 0. Actual TRX scalars: 176 total/executed/passed, 0 failed/not-executed. Ordinary strict: 5 rows, 4 Mapped, 1 Deferred, 0 Unresolved. Existing NU1903 for OpenApi.YamlReader 3.7.0 remains outside scope. A Python audit attempt failed because Python was unavailable; its raw log is retained, and the successful actual .NET OpenAPI reader audit is separate evidence.

pwsh -NoLogo -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\871a5292-dc5b-423e-8083-5165b0006603\files\Invoke-QueuedModuleBuild.ps1' -RepoRoot $PWD.Path -Module People -ApiVersion v1.0 -Configuration Release
pwsh -NoLogo -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\871a5292-dc5b-423e-8083-5165b0006603\files\Invoke-QueuedModuleBuild.ps1' -RepoRoot $PWD.Path -Module People -ApiVersion beta -Configuration Release

Both passed sequentially, using the unchanged four-mutex queue and full compatible-spec pipeline. No SkipKiota, GenerateOnly, NoCollisionData, fallback or NO-CMDLETS substitution. V1.0 completed before reload; it was preserved, not repeated. The first still-missing beta run then completed. The probe-isolation correction did not trigger any repeated full generation or TRX.

Profile Full result Build / queue-inclusive seconds Exports Exact routes
v1.0 Exit 0, People OK 96.5 / 1079.2 4 All 3 spec operations, no suppression, plus 1 dispatcher
beta Exit 0, People OK 100.7 / 859.1 147 All 129 minus exactly 3 suppressions = 126 distinct routes, plus 21 dispatchers
dotnet build .\tools\WrapperGenerator\WrapperGenerator.csproj --no-restore --no-incremental -c Release --verbosity quiet
dotnet build .\src\People\wrapper\v1.0\Microsoft.Graph.Wrapper.People.csproj --no-restore --no-incremental -c Release --verbosity quiet
dotnet build .\src\People\wrapper\Beta\Microsoft.Graph.Wrapper.People.csproj --no-restore --no-incremental -c Release --verbosity quiet
pwsh -NoLogo -NoProfile -NonInteractive -File "$evidence\Test-PeopleCompiledProfile.ps1" -RepoRoot $PWD.Path -Profile v1.0
pwsh -NoLogo -NoProfile -NonInteractive -File "$evidence\Test-PeopleCompiledProfile.ps1" -RepoRoot $PWD.Path -Profile beta
pwsh -NoLogo -NoProfile -NonInteractive -File "$evidence\Pack-PeopleGeneratedOutput.ps1" -RepoRoot $PWD.Path -Profile v1.0
pwsh -NoLogo -NoProfile -NonInteractive -File "$evidence\Pack-PeopleGeneratedOutput.ps1" -RepoRoot $PWD.Path -Profile beta
pwsh -NoLogo -NoProfile -NonInteractive -File .\tools\Test-WrapperModule.ps1 -Module People -ApiVersion v1.0 -ArtifactsLocation "$evidence\packages\v1.0"
pwsh -NoLogo -NoProfile -NonInteractive -File .\tools\Test-WrapperModule.ps1 -Module People -ApiVersion beta -ArtifactsLocation "$evidence\packages\beta"

All passed, exit 0. Supplemental pack executes the actual builder's unchanged normal packaging block over the already completed full-build DLLs (dotnet pack --no-build), without regenerating or substituting packaging policy. Normal package imports confirm exact exports, five renames, all suppressions/defaults/alternatives/Client/count/people/profile-project neighbors and all 21 PATCH workers without readback or GET-only inputs. Each bin/package contains exactly module/client/runtime DLLs, requires Authentication 2.41.2, and has no dependency preloads or duplicate Auth/Kiota closure. Package DLL hashes equal the nonincremental full-build outputs.

Profile Nupkg SHA256 Manifest SHA256
v1.0 3004C46DC3BEED811EB317A356421E674A5DB7AC23814163D9E26A9A3A3A921B BC6E8F98E10F398F34769515146FBE87CC984B5F91758CFE750274643859E601
beta 7AF19F3283D2F07D86D7A9F5C05EAA08EE4AA64BDB47C05AB663C52782C86814 7D18B45A0E846EFA720F450A90F4CC030461DBF9B19AF4A6C3C76F89325508ED

First guarded normal-package real transport acceptance

pwsh -NoLogo -NoProfile -NonInteractive -File "$evidence\Test-PeopleOfflineTransport.ps1" -RepoRoot $PWD.Path -Profile v1.0 -Environment Global
pwsh -NoLogo -NoProfile -NonInteractive -File "$evidence\Test-PeopleOfflineTransport.ps1" -RepoRoot $PWD.Path -Profile v1.0 -Environment USGov
pwsh -NoLogo -NoProfile -NonInteractive -File "$evidence\Test-PeopleOfflineTransport.ps1" -RepoRoot $PWD.Path -Profile beta -Environment Global
pwsh -NoLogo -NoProfile -NonInteractive -File "$evidence\Test-PeopleOfflineTransport.ps1" -RepoRoot $PWD.Path -Profile beta -Environment USGov

All passed, exit 0. Real Connect-MgGraph/GraphSession/GraphHttpClientFactory authentication handlers, generated cmdlets, adapters and Kiota serializer/model results are used; only the downstream terminal and existing MockDataStore are test facilities. No live Graph/OAuth. The second-runspace module import is completed before Connect, then Set-MgTestDataStore is reapplied. Each run records 10 actual reflected MockDataStore lifecycle checks, including before Connect, context changes, reconnect, HTTP and logout. The terminal independently rejects non-mock actual GraphSession stores on every HTTP request, recording its actual type per capture. The observed import-reset type (DiskDataStore) is recorded before reapplying the helper; it is not itself evidence of credential I/O. No unguarded final transport pass is relabeled guarded.

Profile Actual authenticated HTTP per cloud Safety/binder per cloud Positive behavior
v1.0 10, all datastore-guarded 2 binder failures, 0 HTTP Typed List/Get/count, default/path-ID routing, native select/query, escaped URLs, profile/cloud roots, cache/context/reconnect/disconnect
beta 18, all datastore-guarded 3 WhatIf + 3 genuine No prompts + 4 binder failures, 0 HTTP; one prompt per declined mutation Typed POST/JSON/results, PATCH204 one/nooutput/noGET with GET403, PATCH200 one/actualmodel/noGET, independent explicit GET403/error and GET200/ownheaders/select, bodyless DELETE/IfMatch, native queries and escaped IDs

Beta explicitly rejects GET-only Property on PATCH before HTTP. All profiles/clouds preserve the original factory BaseAddress https://graph.microsoft.com/v1.0/ while requests retain selected /v1.0 or /beta and Global/USGov hosts. Four profile switches, request-context invalidation, reconnect/new token/cache, and disconnect/NoGraphSession are checked. Actual Authentication/Kiota/UriTemplate identities come once from the exact normal package/expected contexts; beta uses one packaged RMS 3.0.1 identity. The previous RMS serialization probe also succeeds.

Frozen raw parity limitation

pwsh -NoLogo -NoProfile -NonInteractive -File .\tools\Compare-WrapperCmdletNames.ps1 -GeneratedPath .\src\People\wrapper\v1.0\Cmdlets
pwsh -NoLogo -NoProfile -NonInteractive -File .\tools\Compare-WrapperCmdletNames.ps1 -GeneratedPath .\src\People\wrapper\Beta\Cmdlets

V1.0 passed, exit 0, 4/4 raw command routes. Beta failed, exit 1, 0/147, exactly 147 unchanged Mg/MgBeta prefix mismatches and zero missing compiled routes. No normalization is claimed as raw success. These are representative offline behavioral tests, not tenant/API capability certification.

Current retained evidence: $evidence\handoff.json contains scalar test/strict/profile counters, canonical commits, commands/exits, actual cases, full input/spec/Auth identities, normal package/manifest hashes and absolute artifact paths/SHA256s. Raw full-v1.0.log/full-beta.log, targeted.trx/targeted-tests.log, strict-inventory.json, whole-module source audit, per-profile nonincremental/compiled/package/smoke logs, actual compiled-<profile>-<cloud>.json request/body/header/assembly/datastore captures and command results remain there. final-guarded-runtime-matrix.json records all four positive runs. No new memory-final folder was needed: the addendum was incorporated before the first final transport pass.

Uncapped full local Git scope was checked, including deletions and rename sources: 164 entries / 170 unique paths, exclusively People-owned source/generated output and its test file. No bin/obj/DLL/nupkg/log/session artifacts are committed. Existing PR remains OPEN/non-draft, base powershell-v3 at 6475f3f5beb4908d39ea356db32bf1e0fd3273cb, canonical head 8511bc60a9334d954718abaac26d912134c337be. No new PR, merge, approval, bypass, force-push, closing #3878 or archival.

Other links

Preserve the exact three-operation legacy suppression, five-route statistics rename, absent insight selectors and deferred source transform.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued compatible-spec Kiota and wrapper Release pipeline succeeded with four compiled exports. Client/cmdlets/projects are byte-identical after newline normalization; the generated Kiota lock records the pinned CLI update.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota 1.36.1 and wrapper Release pipeline: 147 exports, 126 distinct compiled operation routes plus 21 dispatchers. Suppress exactly three analytics operations and rename five statistics routes, keeping Count and profile/project neighbors. Preserve tracked Beta casing. Raw published parity retains the existing Mg versus MgBeta prefix difference; all 126 noun/verb suffixes agree.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Prove current literal selector matches exactly all original same-profile legacy-selected survivors (v1.0 zero, beta three). Use supported literal mappings without unmerged Legacy helper fields; preserve five renames and all neighboring routes. Record current target/spec hashes and pin the complete original selected-set proof in module tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run full queued Kiota 1.36.1 (parallelism 1) and cmdlet Release pipeline against target abab9da. Four fresh exports cover all three spec routes plus dispatcher; raw naming parity 3/3. Only the spec hash lock changes; regenerated client/cmdlet/project sources remain byte-identical.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run full queued Kiota 1.36.1 (parallelism 1) and cmdlet Release pipeline against target abab9da. Fresh import exports 147 commands; 126 distinct compiled routes equal all 129 spec operations minus exactly three reviewed suppressions, plus 21 dispatchers. Preserve five statistics renames and all count/people/profile-project neighbors. Raw beta parity retains only the existing Mg/MgBeta prefix difference. Client adds refreshed RelatedPerson field and spec lock; regenerated cmdlets/projects remain byte-identical.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Pass generation profile explicitly to naming and suppression oracles with collision data both enabled and disabled; refresh the reviewed target without changing shared directives or spec evidence.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Record the normally integrated844672 target and unchanged complete People spec/selector evidence; keep prior profile API and shared directive intent intact.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota/client/cmdlet/project/manifest generation against merged844672; preserve v1.0 service root and Authentication-owned dependency closure. Fresh Release build and exact compiled route/export gates pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota/client/cmdlet/project/manifest generation against merged844672; preserve beta service root and Authentication-owned dependency closure. Fresh Release build and complete compiled route/default/export gates pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Record normally merged6475 target, preserve exact shared selectors and verify whole actual legacy/compatible sources contain no required query parameters. Historical implicit-refetch expectations are user-superseded; current runtime probes assert no readback and independent GET.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota/client/cmdlet/project/manifest generation and nonincremental Release compilation on merged6475; preserve exact People routes and adapted Authentication2412 package ownership.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
First full queued Kiota/client/cmdlet/project/manifest generation on normally merged6475. Remove hidden readback from all generated PATCH workers while preserving exact routes, native inputs, typed output contracts and Authentication2412 ownership.

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

This branch has not been deployed

No deployments
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.

1 participant