Skip to content
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

show all existing PVCs as dropdown under volumes for a new notebook server #5086

Merged
merged 3 commits into from Jul 24, 2020

Conversation

lalithvaka
Copy link
Contributor

Resolves issue #4883
This PR enhances two things

  1. Shows all Existing PVCs in the profile as a dropdown while creating a new notebook server under both workspace / data volumes when type drop down selected as "Existing"
  2. Hide Mode and Size form fields under volumes when selected existing PVCs so that its not confusing

Follow are the screenshots of before and after
Before the fix
image

After the fix
image

@kubeflow-bot
Copy link
Contributor

This change is Reviewable

@lalithvaka
Copy link
Contributor Author

@avdaredevil , please let me know if you can review this PR as well?

@avdaredevil avdaredevil requested review from kimwnasptd and removed request for prodonjs June 22, 2020 21:47
Copy link
Contributor

@avdaredevil avdaredevil left a comment

Choose a reason for hiding this comment

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

Small nits, looks good otherwise, PTAL @kimwnasptd if you can?
/lgtm

@avdaredevil
Copy link
Contributor

/lgtm
/approve

@kimwnasptd
Copy link
Member

@avdaredevil thanks for taking a look!

@lalithvaka I'll take a more thorough look at this asap.
With a first glance could you make the Mount Point input wide enough to fill the space left from the two previous inputs, when selecting an existing volume?

@lalithvaka
Copy link
Contributor Author

@kimwnasptd Can you please review this? If you have any additional changes, I will submit the pull request. Am wondering if this can be pushed to 1.1 release as well!

@lalithvaka
Copy link
Contributor Author

@kimwnasptd , any progress on this? Thank you.

@kimwnasptd
Copy link
Member

@lalithvaka my only objection is about removing the inputs since the delete button looks too spaced out in the screenshots.
I'd suggest we keep the inputs as is, they are disabled either way so users wouldn't be able to modify them, and lets have a separate PR for hiding them.

the code is LGTM also from me

@lalithvaka
Copy link
Contributor Author

@kimwnasptd , I have tested this feature with our end user community. They all liked the dropdown but they got confused on the "Size" and "Mode" fields. They were all assuming that any existing PVC they pick, they are expecting the fields disabled are reflection of what the actual size and mode of the selected PVC which is not the case. Hence to remove the confusion, I got rid of the fields on the selection of Existing PVCs. I totally agree with you that the spacing of the delete button needs some adjustment.

Please let me know if you can approve or merge this?

@avdaredevil
Copy link
Contributor

Moving ahead on this in favor of getting it in 1.1
/lgtm
/approve

Thanks for making this change @lalithvaka!

/cc @jlewi

@k8s-ci-robot k8s-ci-robot requested a review from jlewi July 8, 2020 19:38
@jlewi
Copy link
Contributor

jlewi commented Jul 8, 2020

/approve

@jlewi
Copy link
Contributor

jlewi commented Jul 10, 2020

@lalithvaka Looks like there are test failures

@lalithvaka
Copy link
Contributor Author

/retest

1 similar comment
@lalithvaka
Copy link
Contributor Author

/retest

@lalithvaka
Copy link
Contributor Author

/test kubeflow-presubmit

@lalithvaka
Copy link
Contributor Author

/retest

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avdaredevil, jlewi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@lalithvaka
Copy link
Contributor Author

/lgtm

@k8s-ci-robot
Copy link
Contributor

@lalithvaka: you cannot LGTM your own PR.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@lalithvaka
Copy link
Contributor Author

@jlewi , @kimwnasptd , @avdaredevil , pre submit test failures are fixed. Can you please lgtm / approve this PR? I would like to submit a cherry pick for this into 1.1. Thank you.

@pdmack
Copy link
Member

pdmack commented Jul 24, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit d30d769 into kubeflow:master Jul 24, 2020
k8s-ci-robot pushed a commit that referenced this pull request Jul 25, 2020
…ver table #5086: show all existing PVCs as dropdown under volumes while Cherry pick of #5074 #5086 on v1.1-branch. #5074: added gpu details to the notebook server table #5086: show all existing PVCs as dropdown under volumes while (#5162)

* added gpu details to the notebook server table

* Added a distint function to process GPU details

* Removing the stale pre submit tests

* show all existing PVCs as dropdown under volumes while creating a notebook server

* show all existing PVCs as dropdown under volumes while creating a notebook server
@thesuperzapper
Copy link
Member

@lalithvaka there is an issue with this if you type the name of a notebook which has existed in past, the UI gets a bit confused, and changes to "existing" but leaves the "name" field as text field, rather than a dropdown.

@lalithvaka
Copy link
Contributor Author

@thesuperzapper That was the behavior before I submitted the PR to show the drop down list for the existing PVCs. I thought about how to address that but couldn't come up with a better option with out totally revamping the existing design. So I left it as it just shows the user that name is an existing PVC. I am not a UX/UI expert, if you think of anything better, please go ahead and submit an additional PR.

saffaalvi pushed a commit to StatCan/kubeflow that referenced this pull request Feb 11, 2021
…erver (kubeflow#5086)

* show all existing PVCs as dropdown under volumes while creating a notebook server

* show all existing PVCs as dropdown under volumes while creating a notebook server

* Removing the stale pre submit tests
saffaalvi pushed a commit to StatCan/kubeflow that referenced this pull request Feb 12, 2021
…erver (kubeflow#5086)

* show all existing PVCs as dropdown under volumes while creating a notebook server

* show all existing PVCs as dropdown under volumes while creating a notebook server

* Removing the stale pre submit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants