Skip to content

Add-PpeSolution: make idempotent upsert keyed on SystemName - #171

Merged
Splaxi merged 3 commits into
d365collaborative:mainfrom
es-alficody:t3code/add-ppesolution-idempotent
Sep 17, 2026
Merged

Splaxi merged 3 commits into
d365collaborative:mainfrom
es-alficody:t3code/add-ppesolution-idempotent

Conversation

@es-alficody

Copy link
Copy Markdown
Contributor

Makes `Add-PpeSolution` idempotent, matching the pattern of `Add-PpePublisher` (PR #166).

If a solution with the same unique name already exists, it is updated in place with the explicitly supplied values instead of failing. Only values the caller explicitly passes are changed — omitted optional values (Version, Description, Publisher) are left untouched.

Verified against `es-ude-motz-01`:

  • Create without description → creates with default v1.0.0.0
  • No-op re-run (same values) → returns existing solution, no PATCH sent
  • Update name → PATCH with new friendlyname
  • Update version + description → PATCH with both fields

Regenerated docs, 8/8 Pester parameter tests green.

es-alficody and others added 3 commits September 17, 2026 14:07
If a solution with the same unique name already exists, it is updated in place with the explicitly supplied values instead of failing. Only values supplied by the caller are changed - omitted optional values are left untouched. Regenerated docs.
@Splaxi
Splaxi merged commit 3bf80de into d365collaborative:main Sep 17, 2026
4 checks passed
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