Min RK
94542334c4
Merge pull request #1507 from minrk/upgrade-db
...
add `jupyterhub --upgrade-db` to trigger upgrade on launch
2017-10-30 15:34:31 +01:00
Min RK
95494b3ace
only sqlite
2017-10-30 09:58:55 +01:00
Min RK
a131cfb79e
add jupyterhub --upgrade-db
to trigger upgrade on launch
...
Upgrades the database (if needed) on start.
This is opt-in, for uses like the helm chart where explicit 'upgrade-db' steps are hard to insert.
This ought to be safe for sqlite users, where an automatic backup file is created *if an upgrade will occur*.
2017-10-27 15:35:17 +02:00
Min RK
f002c67343
add dbutil.upgrade_if_needed
...
so it's reusable now that we want to use it in more than one place
2017-10-27 15:35:17 +02:00
Min RK
b9caf95c72
copy exception before reraising
...
avoids growing traceback on each raise
2017-10-27 15:29:16 +02:00
Min RK
5356954240
Merge pull request #1493 from schon/rendering-logout
...
Rendering logout page when auto login is true
2017-10-27 14:42:22 +02:00
Joshua Milas
126c73002e
Updated the rest docs to about change in 0.8
...
In 0.8, the jupyterhub api token can also be used to make requests to
hte jupyter notebook given some conditions. This commit updates that
documentation
2017-10-21 09:18:08 -04:00
Seongduk Cheon
65b4502a78
Rendering logout page when auto login is true
2017-10-19 12:14:20 +09:00
Min RK
3406161d75
Merge pull request #1460 from DeepHorizons/asyncio_event_loop
...
Enable the asyncio event loop to run with tornado
2017-10-13 11:18:02 +02:00
Yuvi Panda
e45f00f0f7
Merge pull request #1475 from minrk/disallow-slash
...
disallow '/' in usernames
2017-10-11 08:54:58 -07:00
Min RK
71f4a30562
Merge pull request #1473 from franga2000/patch-1
...
Change username input type to "text" to fix auto-filling
2017-10-11 16:01:45 +02:00
Min RK
20ba414b41
disallow /
in usernames
2017-10-11 11:46:50 +02:00
Miha Frangez
f5250f04c5
Change username input type to "text"
...
<input type="username"> isn't allowed according to the spec and causes problems with autofill in Firefox.
2017-10-10 22:30:20 +02:00
Carol Willing
c2ea20a87a
Merge pull request #1466 from minrk/auth_state_username
...
[doc] typo in auth_state structure
2017-10-04 16:57:27 -04:00
Carol Willing
b14989d4a5
Merge pull request #1465 from minrk/outerjoin
...
use outerjoin to join User with Spawner for admin page
2017-10-04 16:56:52 -04:00
Min RK
04578e329c
typo in auth_state structure
...
it's 'name' not 'username'
2017-10-04 14:18:14 +02:00
Min RK
be05e438ca
use outerjoin to join User with Spawner for admin page
...
avoids excluding users from admin page if they haven't instantiated their first Spawner yet
2017-10-04 13:58:08 +02:00
Min RK
24d9215029
back to dev
2017-10-03 21:49:23 +02:00
Min RK
8892270c24
0.8.0
0.8.0
2017-10-03 21:35:24 +02:00
Min RK
b928df6cba
update changelog links for 0.8.0 release
2017-10-03 21:35:24 +02:00
Carol Willing
3fc74bd79e
Merge pull request #1462 from minrk/proxy-docs
...
Document custom proxy implementations
2017-10-03 08:36:02 -07:00
Carol Willing
b34be77fec
Merge pull request #1463 from minrk/auth-docs
...
Document auth_state
2017-10-03 08:29:45 -07:00
Joshua Milas
54dcca7ba9
Install the AsyncIOMainLoop instead of configuring it.
...
Installing the loop instructs the tornado loop to point to the ayncio loop and use
that. IOLoop.configure told the tornado loop to create a new ioloop when
a loop was needed, which is not what we want.
2017-10-03 08:30:49 -04:00
Min RK
d991c06098
document auth_state
2017-10-03 13:08:10 +02:00
Min RK
01a67ba156
document custom proxies
2017-10-03 12:42:52 +02:00
Min RK
8831573b6c
typos in services.auth headings
2017-10-03 12:42:52 +02:00
Min RK
c5bc5411fb
ignore docs/build
2017-10-03 12:42:52 +02:00
Carol Willing
a13ccd7530
Merge pull request #1461 from minrk/apache-docs
...
Update reverse proxy config examples
2017-10-03 02:46:27 -07:00
Min RK
e9a744e8b7
further clarify config-examples comments
...
per review
2017-10-03 10:19:43 +02:00
Min RK
582d43c153
add apache reverse proxy to config-examples
2017-10-02 18:18:03 +02:00
Min RK
7b5550928f
mention how to generate dhparams
...
since we use them
2017-10-02 18:17:39 +02:00
Min RK
83920a3258
remove websocket-path-awareness from nginx config
...
using map, knowledge of the path is no longer necessary
2017-10-02 17:20:09 +02:00
Min RK
d1670aa443
fix mixed tabs and spaces
2017-10-02 16:19:21 +02:00
Min RK
c6f589124e
Merge pull request #1458 from ryanlovett/master
...
Conditionally substitute $http_host for $host.
2017-09-29 16:06:56 +02:00
Carol Willing
35991e5194
Merge pull request #1455 from minrk/db-upgrade-test
...
Add db-upgrade test
2017-09-28 10:08:27 -07:00
Ryan Lovett
b956190393
Conditionally substitute $http_host for $host.
...
Necessary when using non-standard port. Closes #1457 .
2017-09-28 09:40:51 -07:00
Min RK
122c989b7a
specify mysql host and port explicitly
...
seems to be preferring MYSQL_UNIX_PORT
2017-09-28 18:20:57 +02:00
Min RK
5602575099
move db scripts to general ci directory
...
- remove shell test-db-upgrade test
- run mysql with docker on Travis because the version there is too old (< 5.7)
2017-09-28 16:20:15 +02:00
Min RK
4534499aad
make db scripts accept one db at a time
2017-09-28 16:20:15 +02:00
Min RK
f733a91d7c
avoid key length errors with old mysql + jupyterhub 0.7
2017-09-28 16:20:15 +02:00
Min RK
bf3fa30a01
load upgrade_db_url in test
2017-09-28 16:20:15 +02:00
Min RK
2625229847
note about venv
2017-09-28 16:20:15 +02:00
Min RK
2c3eb6d0d6
only count sqlite files when using sqlite
2017-09-28 15:09:17 +02:00
Min RK
5ff98fd1a5
run upgrade-tests on travis via pytest
2017-09-28 15:09:17 +02:00
Joshua Milas
056a7351a3
Enable the asyncio event loop to run with tornado
...
This allows packages written to use asyncio to work with tornado
2017-09-27 23:04:00 -04:00
Carol Willing
f79b71727b
Merge pull request #1454 from minrk/auto-login-logout
...
typo rendering logout page when auto_login=True
2017-09-27 10:33:42 -07:00
Min RK
d3a3b8ca19
test db-upgrade on travis
2017-09-27 19:06:54 +02:00
Min RK
df9e002b9a
separate docker-db from init-db
...
so we don't need docker on Travis
2017-09-27 19:05:55 +02:00
Min RK
a4a2c9d068
add tests for db upgrade with mysql, postgres
2017-09-27 18:41:08 +02:00
Min RK
c453e5ad20
mysql needs an extra step to drop _server_id
2017-09-27 18:34:54 +02:00