-
Notifications
You must be signed in to change notification settings - Fork 2
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
NickAkhmetov/HMP-503-HOTFIX Fix workspace launch form lock #3341
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting /workspaces/start/439?notebook_path=
when checking this out locally.
The workspace passed to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The files in request_workspace_details
do not have a leading /
where the ones in current_workspace_details do
. Could that affect this?
I did notice the leading slash is missing, but it didn't seem to affect anything functionality-wise; for the sake of consistency, I will add logic to prepend a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works! Thanks!
My previous PR (#3336) introduced a regression where submitting the workspace launch dialog and having a validation failure occur locked the user out of continuing the workspace creation process until they reopened the dialog to reset form state.
This PR fixes this regression by using
isSubmitSuccessful
instead ofisSubmitted
to prevent queueing multiple workspace launches. The former is only toggled to true after validation succeeds, while the latter is set to true as soon as the user submits - even if the submit fails runtime validation.The original issue of duplicate workspace creation requests being created is still handled.
This PR also fixes an error finding the appropriate file path to provide when launching a workspace.