-
Notifications
You must be signed in to change notification settings - Fork 346
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
Add base_url capability to tljh-config #623
Add base_url capability to tljh-config #623
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
@GeorgianaElena here's the fix for @ikhoury 's issue #616 |
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.
Thanks for working on this, @jeanmarcalkazzi, it looks great 🎉
What do you think about adding a small integration test in test_hub.py
to check if a user can login using the new hub url and can start its server?
Update: Don't worry about the failing upgrade test, I don't think it's related to this PR. There is a memory limit issue that keeps coming back.
Update2: @jeanmarcalkazzi, I edited your initial comment, so that when this PR is merged, all the related issues to be closed. Hope that's ok.
I will do so in the next few days! |
The test should be similar with what happens along these lines: https://github.com/jupyterhub/the-littlest-jupyterhub/blob/master/integration-tests/test_hub.py#L27-L41, setting in addition the base_url. |
CircleCI output:
@GeorgianaElena I think this is related to the memory issue you mentioned. |
I believe you're right @jeanmarcalkazzi 😕 I will investigate this tomorrow. Thank you! |
Changes done. |
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.
Hey @jeanmarcalkazzi 👋 The tests were fixed, so I've rebased the PR and now all the bots are happy and everything is green 🥳
I'll go ahead and merge this now. Thanks a lot for your work and patience 🌻
This pull request:
A function update_base_url now sets c.JupyterHub.base_url to the requested value, and correctly checks for it during the check_hub_ready function.