Skip to content

fix: do not clobber dynamic parameters (backport #24645 to 2.32)#25827

Merged
f0ssel merged 3 commits into
release/2.32from
backport/24645-to-release-2.32
May 29, 2026
Merged

fix: do not clobber dynamic parameters (backport #24645 to 2.32)#25827
f0ssel merged 3 commits into
release/2.32from
backport/24645-to-release-2.32

Conversation

@rowansmithau

Copy link
Copy Markdown
Member

Backport of #24645 to release/2.32.

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: File was empty on release/2.32. Took the incoming version with the new mockDynamicParameterWebSocket helper.

  2. site/src/pages/CreateWorkspacePage/CreateWorkspacePage.jest.tsx: File is .jest.tsx on the release branch (.test.tsx on main). Applied the incoming content (refactored websocket mocking, modernized test calls) to the existing .jest.tsx filename.

Note

Generated with Coder Agents by @rowansmithau

@rowansmithau rowansmithau force-pushed the backport/24645-to-release-2.32 branch 3 times, most recently from a3e7493 to 58354ca Compare May 29, 2026 03: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).

(cherry picked from commit d958d89)
@rowansmithau rowansmithau force-pushed the backport/24645-to-release-2.32 branch from 58354ca to e97f74d Compare May 29, 2026 03:49
@code-asher code-asher force-pushed the backport/24645-to-release-2.32 branch from bed151c to 7d94589 Compare May 29, 2026 19:40
This branch is from before the vitest migration was complete.

Also revert the user event changes.  Not sure why but with Jest without
the waitFor we get a timeout.
@code-asher code-asher force-pushed the backport/24645-to-release-2.32 branch from 7d94589 to e1620aa Compare May 29, 2026 19:46
@f0ssel f0ssel merged commit 9614d55 into release/2.32 May 29, 2026
25 of 27 checks passed
@f0ssel f0ssel deleted the backport/24645-to-release-2.32 branch May 29, 2026 23:44
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 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