Skip to content

fix: do not clobber dynamic parameters (backport #24645 to 2.29)#25828

Merged
f0ssel merged 1 commit into
release/2.29from
backport/24645-to-release-2.29
May 30, 2026
Merged

fix: do not clobber dynamic parameters (backport #24645 to 2.29)#25828
f0ssel merged 1 commit into
release/2.29from
backport/24645-to-release-2.29

Conversation

@rowansmithau
Copy link
Copy Markdown
Member

Backport of #24645 to release/2.29.

Once a user has touched a field, it is better to leave it alone and display explicit validation errors over silently overwriting their inputs. Same for auto-filled values (whether from query parameters or a previous build).

Original PR: #24645 — fix: do not clobber dynamic parameters
Merge commit: d958d89

Closes #23418

Cherry-pick conflict resolution

Two conflicts resolved:

  1. site/src/testHelpers/websockets.ts: Added new mockDynamicParameterWebSocket helper. Converted vi.* to jest.* and #/ to bare import paths to match release branch conventions.

  2. site/src/pages/CreateWorkspacePage/CreateWorkspacePage.jest.tsx: File is .jest.tsx on the release branch (.test.tsx on main). Applied the cherry-pick's structural changes (refactored inline websocket mocks, added two new test cases) while converting vi.* to jest.* and #/ to bare import paths.

Note

Generated with Coder Agents by @rowansmithau

@rowansmithau rowansmithau force-pushed the backport/24645-to-release-2.29 branch 4 times, most recently from 6f67905 to 2421bb4 Compare May 29, 2026 03:49
@f0ssel f0ssel force-pushed the backport/24645-to-release-2.29 branch 8 times, most recently from 896ab29 to 9b9f52c Compare May 30, 2026 19:41
Once a user has touched a field, it is better to leave it alone and display explicit validation errors over silently overwriting their inputs.  Same for auto-filled values (whether from query parameters or a previous build).
@f0ssel f0ssel force-pushed the backport/24645-to-release-2.29 branch from 9b9f52c to 50e0776 Compare May 30, 2026 19:50
@f0ssel f0ssel merged commit de95683 into release/2.29 May 30, 2026
24 of 26 checks passed
@f0ssel f0ssel deleted the backport/24645-to-release-2.29 branch May 30, 2026 19:57
@github-actions github-actions Bot locked and limited conversation to collaborators May 30, 2026
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.

3 participants