Richard Darst
e7808b50af
Add tests of page announcements
...
- Adds test_pages.py:test_page_contents, which currently tests just
the page annoucement variables.
2018-06-03 01:18:48 +03:00
Richard Darst
9c27095744
Add customizable announcement text on home,login,logout,spawn
...
- Using the new template_vars setting (#1872 ), allow the variable
`announcement` to create a header message on all the pages in the
title, or the variables `announcement_{home,login,logout,spawn}` to
set variables on these single pages.
- This is not the most powerful method of putting an announcement into
the templates, because it requires a server restart to change. But
the invasiveness is very low, and allows minimal message
without having to touch the templates themselves.
- Closes : #1836
2018-06-03 01:18:48 +03:00
Daisuke Taniwaki
690b07982e
Handle NULL created column of api_tokens table
2018-06-02 23:55:21 +09:00
Min RK
784e5aa4ee
Merge pull request #1926 from minrk/tilde-safe
...
tilde is a safe character in user URLs
2018-05-30 14:48:35 +02:00
Min RK
29187cab3a
Merge pull request #1929 from minrk/pgbin
...
install psycopg2 from binary
2018-05-29 11:03:41 +02:00
Min RK
43a72807c6
install psycopg2 from binary
...
it has a new package name for the binary wheel
2018-05-29 10:41:53 +02:00
Min RK
1d1f6f1870
Merge pull request #1923 from nxg/doc-changes-1747
...
Documentation clarifications (adding explicitness).
2018-05-29 10:21:42 +02:00
Min RK
505a6eb4e3
ensure user subdomains are valid
...
escape with `_` instead of `%`.
This is not technically rigorous, as collisions are possible (users foo_40 and foo@ have the same domain)
and other domain restrictions are not applied (length, starting characters, etc.).
Username normalization can be used to apply stricter, more rigorous structure.
2018-05-29 10:19:21 +02:00
Min RK
cc49df8147
Merge pull request #1852 from summerswallow-whi/service-info
...
Attach an info field to the service
2018-05-28 14:57:10 +02:00
Min RK
98d60402b5
add service.info to rest api docs
2018-05-28 14:09:53 +02:00
Min RK
319e8a1062
update service models in tests
2018-05-28 14:09:44 +02:00
Min RK
0c5d564830
tilde is a safe character in user URLs
...
Chrome unconditionally reverts any not-strictly-necessary escaping in URLs (this seems wrong?)
2018-05-28 13:46:52 +02:00
Norman Gray
c0404cf9d9
Documentation clarifications (adding explicitness).
...
Addresses issue #1747 .
These additions aren't perfect -- it's unfortunate that I've added
mention of reverse proxies on two separate pages. I don't _think_
these can reasonably be put on the same page -- perhaps a cross
reference?
2018-05-27 18:49:40 +01:00
Min RK
f364661363
Merge pull request #1899 from adelcast/dev/adelcast/kill_proxy_tree
...
ConfigurableHTTPProxy.stop: kill child processes on Windows case
2018-05-25 15:25:53 +02:00
Min RK
f92d77b06d
Merge pull request #1915 from rkdarst/respawn_error_msg
...
Clarify error message on implicit respawns.
2018-05-25 10:09:35 +02:00
Haw-minn Lu
2cf00e6aae
Add info field to service model
2018-05-24 11:19:18 -07:00
Richard Darst
dfdb0cff2b
Clarify error message on implicit respawns.
...
- This message is presented when the last spawn failed, along with a
HTTP 500. The current text is quite confusing, especially when the
problem may just be solvable by trying to respawn again.
2018-05-24 16:07:26 +03:00
Alejandro del Castillo
d0dad84ffa
ConfigurableHTTPProxy.stop: kill child processes on Windows case
...
On the Windows case, the configurable-http-proxy is spwaned using a
shell. To stop the proxy, we need to terminate both the main process
(shell) and its child (proxy).
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com >
2018-05-23 10:10:50 -05:00
Min RK
1745937f1a
back to dev
2018-05-23 16:47:56 +02:00
Min RK
e7eb674a89
0.9.0b3
0.9.0b3
2018-05-23 16:30:07 +02:00
Min RK
b232633100
Merge pull request #1894 from minrk/db-rollback
...
Rollback database sessions on SQLAlchemy errors
2018-05-23 16:09:51 +02:00
Carol Willing
6abd19c149
Merge pull request #1911 from minrk/log-classes
...
log Authenticator and Spawner classes at startup
2018-05-22 11:50:59 -07:00
Min RK
0aa0ff8db7
Merge pull request #1912 from minrk/double-slash
...
Fix login redirect checking for `//` urls
2018-05-22 15:56:29 +02:00
Min RK
a907429fd4
more test cases for login redirects
2018-05-22 15:40:27 +02:00
Min RK
598b550a67
fix query/hash login redirect handling
2018-05-22 15:40:14 +02:00
Min RK
92bb442494
more robust checking for login redirects outside jupyterhub
2018-05-22 15:40:00 +02:00
Min RK
2d41f6223e
log Authenticator and Spawner classes at startup
...
for better diagnostics
2018-05-22 13:52:41 +02:00
Min RK
791dd5fb9f
Merge pull request #1895 from minrk/oauth-commits
...
avoid creating one huge transaction cleaning up oauth clients
2018-05-22 13:37:56 +02:00
Carol Willing
9a0ccf4c98
Merge pull request #1910 from minrk/ip-typo
...
default bind url should be on all ips
2018-05-22 01:26:35 -07:00
Min RK
ad2abc5771
default bind url should be on all ips
...
preserves jupyterhub default behavior
typo introduced in new bind_url config
2018-05-22 09:55:01 +02:00
Min RK
2d99b3943f
enable pessimistic connection handling
...
from the sqlalchemy docs
checks if a connection is valid via `SELECT 1` prior to using it.
Since we have long-running connections, this helps us survive database restarts, disconnects, etc.
2018-05-21 22:14:11 +02:00
Min RK
a358132f95
remove --rm
from docker-db.sh
...
for easier stop/start testing
2018-05-21 22:12:30 +02:00
Tim Head
09cd37feee
Merge pull request #1896 from thoralf-gutierrez/fix-typos-in-config
...
Fix typos in auth config documentation
2018-05-16 22:37:51 +02:00
Thoralf Gutierrez
0f3610e81d
Fix typos in auth config documentation
2018-05-16 10:58:02 -07:00
Min RK
3f97c438e2
avoid creating one huge transaction cleaning up oauth clients
2018-05-15 16:33:50 +02:00
Min RK
42351201d2
back to dev
2018-05-15 16:32:24 +02:00
Min RK
907bbb8e9d
0.9.0b2
0.9.0b2
2018-05-15 14:03:10 +02:00
Min RK
63f3d8b621
catch database errors in update_last_activity
2018-05-15 13:53:05 +02:00
Min RK
47d6e841fd
cache get_current_user result
...
avoids raising an error rendering templates, etc.
2018-05-15 13:49:38 +02:00
Min RK
e3bb09fabe
rollback database session on db errors
...
ensures reconnect will occur when database connection is lost
2018-05-15 13:49:14 +02:00
Carol Willing
d4e0c01189
Merge pull request #1893 from minrk/version
...
ensure jupyterhub version matches pep440
2018-05-15 07:40:24 -04:00
Min RK
50370d42b0
ensure jupyterhub version matches pep440
...
avoids mismatch jupyterhub version and tag in docker builds
2018-05-15 13:19:43 +02:00
Min RK
aa190a80b7
Merge pull request #1891 from minrk/base_url
...
fix and test bind_url / base_url interactions
2018-05-15 12:07:44 +01:00
Min RK
e48bae77aa
Merge pull request #1890 from minrk/default-url
...
test default_url handling
2018-05-15 10:51:17 +01:00
Min RK
96cf0f99ed
fix and test bind_url / base_url interactions
2018-05-15 10:51:11 +02:00
Min RK
f380968049
test default_url handling
...
- default_url is used even if not logged in
- flesh out docstrings
- pass via settings
2018-05-15 10:15:33 +02:00
Min RK
02468f4625
Merge pull request #1854 from summerswallow-whi/extra_handler
...
Add custom handlers and allow setting of defaults
2018-05-15 08:55:15 +01:00
Haw-minn Lu
24611f94cf
Remove base_url from default_url
...
Add help to new traits
change extra_page_handler to extra_handler
2018-05-14 11:53:22 -07:00
Min RK
dc75a9a4b7
Merge pull request #1881 from paccorsi/check-post-stop-hook
...
Check the value of post stop hook
2018-05-14 13:31:33 +01:00
Min RK
33f459a23a
Merge pull request #1878 from ausecocloud/master
...
fix listing of OAuth tokens on tokens page
2018-05-14 13:31:06 +01:00