-
Notifications
You must be signed in to change notification settings - Fork 925
chore: remove per request dynamic parameters opt in and rely on template #18505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Removes the per-request dynamic parameters opt-in and enforces the template’s default dynamic behavior.
- Deletes the
EnableDynamicParameters
fields from SDK request types. - Strips out builder methods and conditional logic around dynamic parameters.
- Cleans up handler code in both workspace creation and build endpoints.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
codersdk/workspaces.go | Removed SDK field for dynamic parameters opt-in. |
codersdk/organizations.go | Removed organizations SDK field for dynamic parameters. |
coderd/wsbuilder/wsbuilder.go | Dropped builder field and method for dynamic parameters. |
coderd/workspaces.go | Eliminated request branching on EnableDynamicParameters . |
coderd/workspacebuilds.go | Cleaned up API handler logic related to dynamic parameters. |
Comments suppressed due to low confidence (5)
codersdk/workspaces.go:112
- The removal of
EnableDynamicParameters
is a breaking SDK change; please update the SDK changelog and any public documentation to inform consumers about this removal.
TemplateVersionPresetID uuid.UUID `json:"template_version_preset_id,omitempty" format:"uuid"`
codersdk/organizations.go:229
- Since this field is removed, ensure the API reference and migration guide note that
enable_dynamic_parameters
is no longer supported on organization-related workspace creation.
TemplateVersionPresetID uuid.UUID `json:"template_version_preset_id,omitempty" format:"uuid"`
coderd/wsbuilder/wsbuilder.go:58
- After removing the dynamic parameter field and methods, the
ptr
package import may be unused; consider cleaning up any now-unused imports.
experiments codersdk.Experiments
coderd/workspacebuilds.go:385
- Similarly, ensure tests around the
postWorkspaceBuilds
handler no longer referenceEnableDynamicParameters
and properly reflect the new template-driven behavior.
builder = builder.State(createBuild.ProvisionerState)
3e211f4
to
e90251a
Compare
When in experimental this was used as an escape hatch. Removed to be consistent with the template author's intentions
4f52076
to
82af2e0
Compare
e90251a
to
a3f77b3
Compare
When in experimental this was used as an escape hatch. Removed to be
consistent with the template author's intentions
Backwards compatible, removing an experimental api field that is no longer used.