Long Vu
e00ef1aef1
Merge remote-tracking branch 'origin/master' into add-user-agreement-to-login-screen
2020-11-17 17:27:30 -05:00
Long Vu
fb5f98f2fa
login page: add optional feature to accept terms and conditions in order to login
...
The feature is disabled by default.
If enabled (by setting `login_term_url`), user will have to check the
checkbox to accept the terms and conditions in order to login.
2020-11-17 17:24:38 -05:00
Min RK
5bcbc8b328
Merge pull request #3252 from cmd-ntrf/signin
...
Standardize "Sign in" capitalization on the login page
2020-11-17 11:59:26 +01:00
Min RK
808e8711e1
Merge pull request #3176 from yuvipanda/async_template
...
Enable async support in jinja2 templates
2020-11-17 11:46:23 +01:00
YuviPanda
19935254a7
Fix pre-commit errors
2020-11-17 15:58:38 +05:30
YuviPanda
a499940309
Remove extreneous coroutine creation
...
You can 'pass through' coroutines like this without
yield.
2020-11-17 15:41:40 +05:30
YuviPanda
74544009ca
Remove extreneous print statement
...
Was a debugging aid
2020-11-17 15:41:22 +05:30
YuviPanda
665f9fa693
Drop Python 3.5 support
...
See https://github.com/jupyterhub/jupyterhub/pull/3176#issuecomment-694315759
For Travis, I push the version cascade down one step.
Should preserve our test coverage while conserving test
duration
2020-11-17 15:39:55 +05:30
YuviPanda
24b555185a
Revert "Run templates synchronously for Python 3.5"
...
This reverts commit f1155d6c2afbcbd875c7addc88784313c77da8e9.
Instead, let's stop supporting 3.5!
2020-11-17 15:39:26 +05:30
YuviPanda
24f4b7b6b6
Run templates synchronously for Python 3.5
...
jinja2's async support requires Python 3.6+. That should
be an implementation detail - so we render it in the main
thread (current behavior) but pretend we did not
2020-11-17 15:39:26 +05:30
YuviPanda
217dffa845
Fix typo in format string
2020-11-17 15:39:26 +05:30
YuviPanda
a7b796fa57
Autoformat with black
2020-11-17 15:39:21 +05:30
YuviPanda
6c5fb5fe97
F-strings are Python 3.6, not 3.5
2020-11-17 15:38:29 +05:30
Yuvi Panda
20ea322e25
Fix typo
...
Co-authored-by: Tim Head <betatim@gmail.com >
2020-11-17 15:38:29 +05:30
YuviPanda
4f9664cfe2
Provide sync versions of render_template too
...
write_error is a synchronous method called by an async
method from inside the event loop. This means we can't just
schedule an async render_templates in the same loop and wait
for it - that would deadlock.
jinja2 compiled your code differently based on wether you
enable async support or not. Templates compiled with async
support can't be used in cases like ours, where we already
have an event loop running and calling a sync function. So
we maintain two almost identical jinja2 environments
2020-11-17 15:38:29 +05:30
YuviPanda
be211a48ef
Enable async jinja2 template rendering
...
Follows https://jinja.palletsprojects.com/en/2.11.x/api/#async-support
- This blocks the main thread fewer times
- We can use async methods inside templates too
2020-11-17 15:38:29 +05:30
Erik Sundell
7e6111448a
Merge pull request #3253 from minrk/wait-admin-form
...
wait for pending spawns in spawn_form_admin_access
2020-11-16 02:39:11 +01:00
Erik Sundell
ccc0294f2e
Merge pull request #3257 from manics/jupyterhub_idle_culler
...
Update services-basics.md to ues jupyterhub_idle_culler
2020-11-14 17:37:17 +01:00
Simon Li
3232ad61aa
Update services-basics.md to ues jupyterhub_idle_culler
...
Closes https://github.com/jupyterhub/jupyterhub/issues/3256
2020-11-14 15:59:56 +00:00
Min RK
202a5bf9a5
Merge pull request #3255 from fcollonval/patch-1
...
Environment marker on pamela
2020-11-13 10:28:28 +01:00
Frédéric Collonval
47136f6a3c
Environment marker on pamela
2020-11-13 09:57:20 +01:00
Min RK
5d3161c6ef
wait for pending spawns in spawn_form_admin_access
...
copy logic from test_spawn_admin_access
2020-11-12 10:16:48 +01:00
Félix-Antoine Fortin
9da4aa236e
Standardize Sign in capitalization on the login page
2020-11-11 13:01:14 -05:00
Erik Sundell
2a1d341586
Merge pull request #3250 from minrk/test-condition
...
remove push-branch conditions for CI
2020-11-11 12:21:52 +01:00
Min RK
55a59a2e43
remove push-branch conditions for CI
...
testing other branches is useful, and there's little cost to removing the conditions:
- we don't run PRs from our repo, so test runs aren't duplicated on the repo
- testing on a fork without opening a PR is still useful (I use this often)
- if we push a branch, it should probably be tested (e.g. backport branch), and filters make this extra work
- the cost of running a few extra tests is low, especially given actions' current quotas and parallelism
2020-11-11 09:12:58 +01:00
Min RK
e019a33509
Merge pull request #3246 from consideRatio/pr/migrate-to-gh-actions-from-travis
...
Migrate from travis to GitHub actions
2020-11-11 09:06:58 +01:00
Erik Sundell
737dcf65eb
Fix mysql/postgresql auth and comment struggles
2020-11-10 19:20:47 +01:00
Erik Sundell
9deaeb1fa9
Final variable name update
2020-11-10 16:19:22 +01:00
Erik Sundell
bcfc2c1b0d
Cleanup use of database related environment variables
2020-11-10 16:16:28 +01:00
Erik Sundell
f71bacc998
Apply suggestions from code review
...
Co-authored-by: Min RK <benjaminrk@gmail.com >
2020-11-10 15:39:46 +01:00
Erik Sundell
ff14b1aa71
CI: use --maxfail=2
2020-11-10 11:14:59 +01:00
Erik Sundell
ebbbdcb2b1
Refactor ci/docker-db and ci/init-db
2020-11-10 11:14:40 +01:00
Erik Sundell
d0fca9e56b
Reword comment
2020-11-10 10:03:53 +01:00
Erik Sundell
517737aa0b
Add notes about not needing "set -e" etc.
2020-11-10 02:17:44 +01:00
Erik Sundell
5dadd34a87
Help GitHub UI present the job parameterization + inline comments
2020-11-10 02:17:40 +01:00
Erik Sundell
df134fefd0
Refactor pre-commit to its own job
2020-11-10 01:17:30 +01:00
Erik Sundell
47cec97e63
Let pytest fail on first error
2020-11-10 01:16:12 +01:00
Erik Sundell
0b8b87d7d0
Remove debugging trigger
2020-11-09 07:43:42 +01:00
Erik Sundell
3bf1d72905
Test in Ubuntu 20.04
2020-11-09 07:42:45 +01:00
Erik Sundell
8cdd449cca
Unpin mysql-connector-python and resolve errors
2020-11-09 07:42:12 +01:00
Erik Sundell
6fc3c19763
For CI readability, exit on first failure
2020-11-09 07:41:05 +01:00
Erik Sundell
265dc07c78
Remove .travis.yml, add GitHub workflow
2020-11-09 07:40:15 +01:00
Erik Sundell
1ae039ddef
Remove py3.7+ breaking test variation (has~x)
...
The jupyterhub/tests/test_spawner.py::test_spawner_routing[has~x] test
failed in py37+ but not in py36, and I think it is foundational to the
socket library of Python that has changed.
This is a stacktrace from Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/util/connection.py:61
```
> for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
E socket.gaierror: [Errno -2] Name or service not known
```
Here is relevant documentation about socket.getaddrinfo.
https://docs.python.org/3.7/library/socket.html#socket.getaddrinfo
2020-11-09 07:32:11 +01:00
Erik Sundell
378d34b213
Don't ignore outer env vars
2020-11-09 07:31:16 +01:00
Min RK
9068ff2239
back to dev
2020-10-30 13:22:14 +01:00
Min RK
fc6cd33ce0
release 1.2.1
1.2.1
2020-10-30 13:20:43 +01:00
Erik Sundell
b0b8e2d058
Merge pull request #3235 from minrk/changelog-1.2.1
...
Changelog for 1.2.1
2020-10-30 13:19:52 +01:00
Erik Sundell
6bfa402bfa
Apply suggestions from code review
2020-10-30 13:19:18 +01:00
Min RK
b51a0bba92
Changelog for 1.2.1
2020-10-30 13:15:19 +01:00
Erik Sundell
2d3f962a1d
Merge pull request #3234 from gesiscss/master
...
Make external JupyterHub services' oauth_no_confirm configuration work as intentend
2020-10-30 13:07:39 +01:00