jupyterhub / kubespawner

Kubernetes spawner for JupyterHub
https://jupyterhub-kubespawner.readthedocs.io
BSD 3-Clause "New" or "Revised" License
543 stars 304 forks source link

Don't show dropdown in profile_options if only unlisted_choice is enabled, no choices are present #756

Open yuvipanda opened 1 year ago

yuvipanda commented 1 year ago

Follow-up to https://github.com/jupyterhub/kubespawner/pull/735#discussion_r1254129852, if a profile_option is configured to have unlisted_choice.enabled to True, but choices is not set, we currenlty show a dropdown with just 'Other' as an option. This is kinda ugly. Instead, it should just not show the dropdown at all.