Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jun 23, 2025

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.

Copy link
Contributor

@Copilot Copilot AI left a 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 reference EnableDynamicParameters and properly reflect the new template-driven behavior.
			builder = builder.State(createBuild.ProvisionerState)

@Emyrk Emyrk force-pushed the stevenmasley/dynamic_per_request_opt_in branch from 3e211f4 to e90251a Compare June 23, 2025 15:28
@Emyrk Emyrk changed the base branch from stevenmasley/dynamic_validate to graphite-base/18505 June 23, 2025 16:11
When in experimental this was used as an escape hatch. Removed to be
consistent with the template author's intentions
@Emyrk Emyrk requested a review from jaaydenh June 23, 2025 17:37
@Emyrk Emyrk force-pushed the graphite-base/18505 branch from 4f52076 to 82af2e0 Compare June 23, 2025 19:52
@Emyrk Emyrk force-pushed the stevenmasley/dynamic_per_request_opt_in branch from e90251a to a3f77b3 Compare June 23, 2025 19:52
@Emyrk Emyrk changed the base branch from graphite-base/18505 to main June 23, 2025 19:52
@Emyrk Emyrk merged commit f6e4ba6 into main Jun 23, 2025
44 of 65 checks passed
@Emyrk Emyrk deleted the stevenmasley/dynamic_per_request_opt_in branch June 23, 2025 20:04
@github-actions github-actions bot locked and limited conversation to collaborators Jun 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants