Reset exp-params and input-exp-params on $draft#1062
Merged
Conversation
|
Formatting check succeeded! |
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Chris0296
force-pushed
the
cor-draft-reset-params
branch
from
July 10, 2026 20:30
c9a547c to
40ca16a
Compare
Chris0296
marked this pull request as ready for review
July 10, 2026 20:39
|
brynrhodes
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
$release splits an artifact's expansion parameters into two copies: the author-specified values are snapshotted into a new input-exp-params contained resource (referenced via the cqf-inputParameters extension), while the live exp-params (referenced via cqf-expansionParameters) is then enriched with processing-time values (e.g. pinned system-versions) for use during that release. There was previously no mechanism to undo this, drafting a released artifact left the processing-time values sitting in exp-params and the stale input-exp-params snapshot (plus its extension) hanging around indefinitely, even though they were purely an artifact of a completed release cycle. This could lead to duplicate extensions being applied.
This PR makes $draft reverse that split: it restores the author's original input back onto exp-params and removes the now-redundant input-exp-params resource and extension, so the artifact is back to a clean, author-only state in preparation for its next release.
Changes
Tests