-
Notifications
You must be signed in to change notification settings - Fork 59
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
vdk-jupyter: automate create options #2506
vdk-jupyter: automate create options #2506
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 disagree with the concept. This is not a good user experience. What if I want to create a job just locally, but I was creating cloud jobs previously. Do I have to unset the env variable and then set it again to get back to what I was doing?
I wasn't part of the discussions, however, which is completely my fault. I'll approve and we can possibly raise it again down the line.
projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/vdk_jupyterlab_extension/vdk_ui.py
Outdated
Show resolved
Hide resolved
The concept of local and cloud doesn't really exist in the user's mind. It's something we are forcing on them. And we should not really. The fewer things the user needs to know and understand the better their experience would be. As far as the user is concerned a job is a job. They want to be able to create it and develop it and when it's ready schedule it /deploy it so it runs regularly and monitor. The less things you make the user think about the better their life will be. Because they do not know (nor need to care about the concept of local vs cloud), they would not really care if job is created in the cloud (by created we really mean the name is reserved in most cases). This is also consistent with the way CLI works (see __determine_cloud_local_flags ) |
projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/vdk_jupyterlab_extension/vdk_ui.py
Show resolved
Hide resolved
projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/vdk_jupyterlab_extension/vdk_ui.py
Outdated
Show resolved
Hide resolved
projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/vdk_jupyterlab_extension/vdk_ui.py
Outdated
Show resolved
Hide resolved
projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension/vdk_jupyterlab_extension/vdk_ui.py
Outdated
Show resolved
Hide resolved
I disagree, because we're actually making the user think about more things. We're making them think about an environment variable that also has a side effect when set. It determines both the control service URL and if we talk to the control service. Let's say the user really doesn't need to know about that. Then they'll create a bunch of local jobs they have no intention of creating and deploying in the cloud, look at their cloud environment UI and discover that it's filled with garbage entries. Then they'll wonder why and will have to think about the env variable. It's quite a confusing user experience. Now compare that to a checkbox in the UI that says "Cloud". This is not a new problem, btw. I once spent a good chunk of time trying to change some configs in a test data job and not understanding why my deployments were still failing. Then I found out about the Sorry for going off on a tangent, maybe we can have this discussion further down the line. 😇 |
We decided to keep it as it is proposed in the PR for the MVP. |
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.
How do we test the workflow ? Doesn't make sense to add test to ui-tests/ ?
Otherwise looks good to me
fe10956
to
81b90e6
Compare
What:
Changed create job option to create local job automatically and cloud if REST_API_URL is set.
Currently there are two options for created job result:

Created both on cloud and locally:
Created locally only because of lack of url:


The dialog for create now looks like this:

Why:
Currently, when the user wants to create a job from the Jupyter UI he gets dialog asking whether it will be a local job, a cloud job or both. We discussed and got on an agreement that the options should be removed from the dialog.
Creating job should be:
Signed-off-by: Duygu Hasan [email protected]