Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 1 commit intomainfromstevenmasley/dynamic_per_request_opt_in
Jun 23, 2025

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedJun 23, 2025
edited
Loading

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

@CopilotCopilotAI 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 theEnableDynamicParameters 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
FileDescription
codersdk/workspaces.goRemoved SDK field for dynamic parameters opt-in.
codersdk/organizations.goRemoved organizations SDK field for dynamic parameters.
coderd/wsbuilder/wsbuilder.goDropped builder field and method for dynamic parameters.
coderd/workspaces.goEliminated request branching onEnableDynamicParameters.
coderd/workspacebuilds.goCleaned up API handler logic related to dynamic parameters.
Comments suppressed due to low confidence (5)

codersdk/workspaces.go:112

  • The removal ofEnableDynamicParameters 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 thatenable_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, theptr package import may be unused; consider cleaning up any now-unused imports.
experiments      codersdk.Experiments

coderd/workspacebuilds.go:385

  • Similarly, ensure tests around thepostWorkspaceBuilds handler no longer referenceEnableDynamicParameters and properly reflect the new template-driven behavior.
builder = builder.State(createBuild.ProvisionerState)

@EmyrkEmyrkforce-pushed thestevenmasley/dynamic_per_request_opt_in branch from3e211f4 toe90251aCompareJune 23, 2025 15:28
@EmyrkEmyrk changed the base branch fromstevenmasley/dynamic_validate tographite-base/18505June 23, 2025 16:11
When in experimental this was used as an escape hatch. Removed to beconsistent with the template author's intentions
@EmyrkEmyrk requested a review fromjaaydenhJune 23, 2025 17:37
@EmyrkEmyrkforce-pushed thegraphite-base/18505 branch from4f52076 to82af2e0CompareJune 23, 2025 19:52
@EmyrkEmyrkforce-pushed thestevenmasley/dynamic_per_request_opt_in branch frome90251a toa3f77b3CompareJune 23, 2025 19:52
@EmyrkEmyrk changed the base branch fromgraphite-base/18505 tomainJune 23, 2025 19:52
@EmyrkEmyrk merged commitf6e4ba6 intomainJun 23, 2025
44 of 65 checks passed
@EmyrkEmyrk deleted the stevenmasley/dynamic_per_request_opt_in branchJune 23, 2025 20:04
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 23, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

Copilot code reviewCopilotCopilot left review comments

@jaaydenhjaaydenhjaaydenh approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Emyrk@jaaydenh

[8]ページ先頭

©2009-2025 Movatter.jp