Min RK
8bd055d4bd
Merge pull request #1804 from consideRatio/query-string-memory-pr
...
/user/someone-else redirection retain query strings
2018-04-16 10:11:11 +02:00
Erik Sundell
5ee14db1f9
/user/someone-else redirection retain query strings
2018-04-15 05:03:56 +02:00
Carol Willing
58069d015b
Merge pull request #1801 from minrk/cascades
...
fix and test deletion cascades
2018-04-13 13:47:27 -07:00
Carol Willing
f2684b59ec
Merge pull request #1802 from minrk/dbutil-shell
...
add `python -m jupyterhub.dbutil shell`
2018-04-13 12:54:23 -07:00
Min RK
e0c0d03c5f
define client_id in oauth token test
2018-04-13 21:52:17 +02:00
Min RK
1ac47d2bb0
consolidate stale client_id check to AccessToken.find
2018-04-13 21:49:57 +02:00
Min RK
bc75c71ca3
ensure oauth tokens with no client id aren’t accepted
...
these should have been deleted by deleting oauth clients
2018-04-13 21:42:38 +02:00
Min RK
c49fc14528
move oauth token relation to user
...
for symmetry with APIToken
2018-04-13 21:26:18 +02:00
Min RK
078bd8c627
fix and test deletion cascades
...
- ensure foreign keys are enabled on sqlite
- fix deletion cascades where relationships were causing dissociation instead of deletion
2018-04-13 21:23:58 +02:00
Min RK
33ba9fb5cf
ensure foreign keys are enabled on sqlite
2018-04-13 21:23:58 +02:00
Min RK
4e7e586cb9
add python -m jupyterhub.dbutil shell
...
allows opening an IPython shell with a connection to your database
alembic moved from `python -m jupyterhub.dbutil` to `python -m jupyterhub.dbutil alembic` subcommand
2018-04-13 21:23:36 +02:00
Min RK
62fa795052
Merge pull request #1803 from minrk/status-code-typeyo
...
typo catching 404 in proxy.delete_route
2018-04-13 21:22:54 +02:00
Min RK
b6d9f89518
typo in test_multi_groups
...
add multiple groups, not users
2018-04-13 21:01:48 +02:00
Min RK
afbf867169
typo catching 404 in proxy.delete_route
...
status code is .code, not .status_code
2018-04-13 20:54:15 +02:00
Carol Willing
dace6ac156
Merge pull request #1793 from minrk/server.port
...
check if server is defined before accessing server.port
2018-04-13 10:31:05 -07:00
Carol Willing
cbf2b8cb78
Merge pull request #1790 from minrk/409-conflict
...
raise 409 conflict on duplicate actions
2018-04-13 10:29:52 -07:00
Carol Willing
96c5de63d8
Merge pull request #1775 from minrk/proxy-perf
...
proxy performance tweaks
2018-04-13 09:48:59 -07:00
Carol Willing
b8b57843a6
Merge pull request #1771 from minrk/progress
...
Progress on spawn-pending page
2018-04-12 16:16:37 -07:00
Min RK
e3fd4ad77d
check if server is defined before accessing server.port
...
avoids error on premature access of Spawner.get_args if port is not set
2018-04-12 14:34:18 +02:00
Min RK
c08148266a
raise 409 conflict on duplicate actions
...
Makes it easier for upstream clients to retry failed actions and ignore failure due to duplicate transactions
2018-04-11 10:52:05 +02:00
Min RK
a6a2d04c46
Merge pull request #1768 from sangramga/master
...
Added Post groups API in group list handlers
2018-04-10 13:11:05 +02:00
Min RK
8f7061fb9b
Merge pull request #1779 from minrk/cull-semaphore
...
limit concurrent cull requests
2018-04-10 13:10:45 +02:00
Min RK
7b5235138f
commit changes after stopping in cleanup
2018-04-09 16:00:04 +02:00
Min RK
7e3fa8c38d
Don't double-check _stop_pending flag
...
could cause spurious raises of Timeout errors
2018-04-09 15:58:39 +02:00
Min RK
151acd5bec
catch errors in cleanup
2018-04-09 15:16:05 +02:00
Min RK
23ca2039f6
run cleanup_after on ioloop
...
instead of directly on asyncio
2018-04-09 15:09:50 +02:00
Min RK
b291103592
fixup cleanup
2018-04-09 14:51:20 +02:00
Min RK
e962c9993b
don't ask for exception is Future is not done
2018-04-09 14:47:50 +02:00
Min RK
955b769d3f
add missing commits for deprecated ip/port
...
consider for removal
2018-04-09 14:47:34 +02:00
Min RK
9b914e8f01
fix waiting for spawner to fail in progress
2018-04-09 14:46:28 +02:00
Min RK
307ad636dc
test spawner failure mid-progress
2018-04-09 14:46:08 +02:00
Min RK
2952f62726
add cleanup_after fixture
...
function-scoped fixture for shutting down servers
avoids servers leaking into neighbor tests without having to teardown the app itself after every test
2018-04-09 14:24:29 +02:00
Min RK
6d6e48f434
test native async generator on Python 3.6
2018-04-09 13:03:29 +02:00
Min RK
a189196855
ensure async generators are properly closed
...
only terminate with iterate_until in handler, not Spawner._generate_events
2018-04-09 13:03:18 +02:00
Min RK
d30e62a205
test spawn progress
2018-04-09 11:39:07 +02:00
Min RK
e56d416210
Don't delete failed spawners
...
They preserve error messages that are useful
only delete spawners that shutdown cleanly
2018-04-09 11:38:29 +02:00
Min RK
c0f37c48a1
fix wait for spawn future
...
asyncio.wait takes a list
2018-04-09 11:16:17 +02:00
Min RK
a3ed387455
move get_content_type up one level to BaseHandler
...
so all handlers get it
2018-04-09 10:38:02 +02:00
Min RK
beedc94179
delete the spinner
...
no need for a spinner when we have a progress bar
2018-04-09 10:32:28 +02:00
Tim Head
5229604782
Merge pull request #1781 from consideRatio/link-in-doc-fix-pr
...
links in docs corrected
2018-04-08 14:06:57 +02:00
Erik Sundell
cf665517dd
links in docs corrected
2018-04-08 09:10:09 +02:00
sangramga
4663edd8a7
removed comments
2018-04-07 13:09:12 +05:30
Min RK
312e7974d9
limit concurrency of cull requests
...
avoids simultaneous request for deletion of lots of users, which can slow down the Hub
2018-04-06 16:03:48 +02:00
Min RK
ca8aa53b32
remove 'missing' from default route message
...
avoids indication that something went wrong
since this occurs during normal hub startup
2018-04-05 12:12:03 +02:00
Min RK
7122ca1c24
add lock to prevent concurrent calls to check_routes
2018-04-05 12:09:06 +02:00
Min RK
97cdb1a5d8
handle progress_url in user model tests
2018-04-05 11:46:47 +02:00
Min RK
31d3f7a20b
allow isoformat(None)
...
simplifies "if timestamp is None" cases when we are just using it to serialize nullable timestamps to JSON
2018-04-05 11:32:34 +02:00
Min RK
6f8a34127b
consolidate progress url
...
and include it in server models
2018-04-05 11:28:52 +02:00
Min RK
ee1a86d192
progress url is at server/progress
...
instead of server-progress
2018-04-05 11:22:00 +02:00
Min RK
707b300bd6
add iterate_until utility
...
allows iterating through an async generator, yielding items until another Future resolves
if/when that deadline Future resolves, ready items will continue to be yielded until there is one that actually needs to wait
at which point the iteration will halt
2018-04-05 11:22:00 +02:00