Skip to content

fix: prevent editing build parameters if template requires active version - #11117

Merged
aslilac merged 6 commits into
mainfrom
jon/fixautoupdateui
Dec 11, 2023
Merged

aslilac merged 6 commits into
mainfrom
jon/fixautoupdateui

Conversation

@sreya

@sreya sreya commented Dec 10, 2023 •

Copy link
Copy Markdown
Collaborator

This PR disables the build parameters form when editing a workspace if the workspace is outdated and its template requires being on the active version. This isn't ideal because a user has to update and then edit the parameters which incurs another workspace build; however, right now the user experiences an error since they aren't allowed to "restart" a workspace when the template setting is enabled.

In order to make this a better experience we need to either support supplying first-time values to template parameters (since we have to update) or we allow editing existing parameters from the update button. I'd like to do the former but it'll require a little design work.

This is more of a stopgap in the meantime.

image

@sreya
sreya requested a review from BrunoQuaresma December 10, 2023 23:03
@ammario ammario mentioned this pull request Dec 11, 2023
8 tasks done
@sreya
sreya requested review from aslilac and removed request for BrunoQuaresma December 11, 2023 21:49
@aslilac
aslilac merged commit ba3b835 into main Dec 11, 2023
@aslilac
aslilac deleted the jon/fixautoupdateui branch December 11, 2023 22:54
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 11, 2023
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