Skip to content

fix: verify parameter monotonicity when previous value exists #12246

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
Feb 21, 2024

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Feb 21, 2024

If for some reason the last parameter value is stored as an empty string (""), and the parameter type becomes a number with monotonicity validation, coderd may block creating the workspace failing with previous parameter value is not a number.

This PR adds a workaround to prevent this state.

Notice: I wasn't able to fully reproduce the workflow. I focused on the recovery part here.

@mtojek mtojek self-assigned this Feb 21, 2024
@mtojek mtojek changed the title fix: previous parameter value is not a number fix: check monotonicity if previous parameter value is not empty Feb 21, 2024
@mtojek mtojek changed the title fix: check monotonicity if previous parameter value is not empty fix: verify parameter monotonicity when previous value exists Feb 21, 2024
@mtojek mtojek requested a review from johnstcn February 21, 2024 14:34
@mtojek mtojek marked this pull request as ready for review February 21, 2024 14:34
@mtojek mtojek merged commit c230bcf into main Feb 21, 2024
@mtojek mtojek deleted the fix-previous-param branch February 21, 2024 14:44
@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2024
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