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

Skip to content

fix: fix validation error during workspace creation without preset #18494

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 4 commits into from
Jun 24, 2025

Conversation

SasSwart
Copy link
Contributor

@SasSwart SasSwart commented Jun 23, 2025

closes #18430.

Selecting a preset, and then selecting the "None" preset used to set the preset ID to an empty string instead of undefined. This sent "" to the backend, which expects a valid UUID.

@SasSwart SasSwart changed the title fix: resolve a validation error when creating a workspace without a preset fix: fix validation error during workspace creation without preset Jun 23, 2025
@SasSwart SasSwart marked this pull request as ready for review June 23, 2025 12:51
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not my area so will need FE approval before merging, but seems fine to me
Thanks for the fix 👍

@mtojek mtojek requested a review from mafredri June 23, 2025 14:23
Copy link
Contributor

@ssncferreira ssncferreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM great test addition 🌟

action("onSubmit")(request, owner);
},
},
play: async ({ canvasElement }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻


// Then select "None" to unset the field value
await userEvent.click(canvas.getByLabelText("Preset"));
await userEvent.click(canvas.getByText("None"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this potentially too vague? Perhaps not now as we control the test but considering future changes.

use option?.value instead of index to check whether we should send a preset ID when a workspace is created

Co-authored-by: Susana Ferreira <[email protected]>
@SasSwart SasSwart enabled auto-merge (squash) June 24, 2025 06:44
@SasSwart SasSwart merged commit 4f98fd4 into main Jun 24, 2025
32 of 33 checks passed
@SasSwart SasSwart deleted the jjs/18430 branch June 24, 2025 06:49
@github-actions github-actions bot locked and limited conversation to collaborators Jun 24, 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.

bug: choosing None preset results in invalid UUID length: 0 error
5 participants