Min RK
c9e12182a2
halt progress iteration on completed spawn
...
requires calling `__aiter__` and `__anext__` instead of `async for`
2018-04-05 11:22:00 +02:00
Min RK
9b7186e9b8
close eventstream on success
2018-04-05 11:22:00 +02:00
Min RK
4eb07f9d48
stop spinner on failure
2018-04-05 11:22:00 +02:00
Min RK
4f78cbbd1b
implement progress on spawn_pending page
...
- add Spawner.progress method. Must be an async generator of JSON-able progress events
- add /api/users/:user/server-progress eventstream endpoint
- use eventstream to fill progress bar on the spawn pending page
2018-04-05 11:22:00 +02:00
Min RK
d962e8bcbc
Merge pull request #1748 from minrk/cookie-options
...
expose cookie options and pass them down to spawners
2018-04-05 10:28:46 +02:00
Min RK
ba695a0230
Merge pull request #1750 from minrk/warn-should-start
...
remove warning when generating proxy token if Proxy.should_start
2018-04-05 10:28:18 +02:00
Min RK
dfed2437a8
Merge pull request #1746 from minrk/activity-tracking
...
expand user activity timestamps
2018-04-05 10:27:55 +02:00
Min RK
ecfcb4ec64
Merge pull request #1745 from minrk/rm-redirects
...
clear ?redirects from URL once single-user pages load successfully
2018-04-05 10:25:24 +02:00
Min RK
b9335311de
Merge pull request #1774 from dhirschfeld/patch-1
...
Fix Windows build
2018-04-05 10:24:41 +02:00
Dave Hirschfeld
354468db0a
Fix Windows build
...
Closes #1773
2018-04-05 16:35:29 +10:00
Min RK
340a736722
use age instead of time cutoff
...
gets nicely formatted timedeltas in logging
instead of absolute times
2018-04-03 15:24:10 +02:00
Min RK
7bf93cb7e6
update cull_idle_servers for 0.9
...
- adds max-age
- handle named servers
- refactor culling a bit
2018-04-03 15:24:10 +02:00
Min RK
4fa9535fd4
get upstream changes from cull_idle_servers.py in zero-to-jupyterhub
2018-04-03 15:24:10 +02:00
Min RK
1abd3217aa
always run test_auth_api with 'admin' user
...
avoids inconsistent subsequent state based on db behavior
2018-04-03 15:24:10 +02:00
Min RK
d0360d5c98
update tests with new user models
...
add normalize_user and fill_user utilities
2018-04-03 15:24:08 +02:00
Min RK
74365ad05e
starting a server updates last_activity and started for user and spawner
2018-04-03 15:14:47 +02:00
Min RK
9dc24c0995
add user.created, spawner.started
...
- alembic revision
- in user/spawner models
2018-04-03 15:14:47 +02:00
Min RK
fd40e27be4
indicate that REST API timestamps are UTC
...
use iso8601 Z suffix for UTC timestamps
use dateutil to parse dates from proxy, as well
even though CHP uses iso8601 UTC timestamps, we no longer assume CHP, so use more general parsing
in our db we are stuck with naïve datetime objects, so use those internally.
But ensure we put 'Z' on timestamps we ship externally
2018-04-03 15:14:47 +02:00
Min RK
05b2bf4c96
ensure user.created is defined during app startup
...
avoids user.created being null after upgrade
2018-04-03 15:14:47 +02:00
Min RK
a0fcbcbc7d
do not consider stopping a user's server activity
2018-04-03 15:14:47 +02:00
Min RK
3117ea9d34
handle user.last_activity being None
2018-04-03 15:14:47 +02:00
Min RK
8973dea33e
add user.created and start last_activity as None
...
need to handle last_activity being None throughout
2018-04-03 15:14:47 +02:00
Min RK
3e7d0dbd23
update user.last_activity whenever we see activity on API tokens / cookies
2018-04-03 15:14:47 +02:00
Min RK
b26b1bc038
Merge pull request #1720 from glenak1911/gk/update-circleci-config-v2
...
Updated CircleCI config file to 2.0
2018-04-03 13:14:14 +02:00
Glen A Knight
74b1102dea
Delete package-lock.json
2018-04-02 09:06:57 -04:00
Glen A Knight
a89226279f
remove checkout step from deploy and release jobs
2018-04-02 09:03:50 -04:00
Glen A Knight
8b490c8ef0
add package-lock.json to gitignore
2018-04-02 09:03:09 -04:00
Min RK
77a98e7875
Merge pull request #1753 from minrk/check-pending
...
avoid deleting routes for spawners in a pending state
2018-04-02 09:31:29 +02:00
sangramga
c02592d5ba
Merge remote-tracking branch 'origin/master'
2018-03-31 16:24:08 +05:30
sangramga
52d7dacbaa
post groups api added
...
Added post groups list api
Added test for Multi groups post API
Added Post multiple groups API
2018-03-31 16:20:51 +05:30
sangramga
9a8457deff
Added Post multiple groups API
2018-03-31 15:42:58 +05:30
sangramga
5039b3ac6f
Added test for Multi groups post API
2018-03-31 14:46:49 +05:30
sangramga
00705223b6
Added post groups list api
2018-03-31 13:10:48 +05:30
Glen Knight
9f6ab4c419
make workflows in line with jobs
2018-03-30 11:39:25 -04:00
Glen Knight
9012c7310d
update workflows
2018-03-29 01:53:37 -04:00
Glen Knight
a3edebcad9
update run commands
2018-03-29 01:49:50 -04:00
Glen Knight
f2abb6a73f
update indentation
2018-03-29 01:40:35 -04:00
Glen Knight
e96e5b740a
update indentation
2018-03-29 01:38:57 -04:00
Glen Knight
ee067ad97a
update indentation
2018-03-29 01:36:44 -04:00
Glen Knight
d01b3a88b6
update workflow
2018-03-29 01:34:59 -04:00
Glen Knight
5a22c978cf
update workflows
2018-03-29 01:26:14 -04:00
Glen Knight
f8a0e7d1be
update workflows
2018-03-29 01:25:23 -04:00
Glen Knight
25a65564b1
update workflows
2018-03-29 01:24:00 -04:00
Glen Knight
c858023c88
update config and add workflows
2018-03-29 01:19:17 -04:00
sangramga
c3e470db26
post groups api added
2018-03-28 18:50:35 +05:30
Min RK
5908c4da7a
clarify pending exception comment
2018-03-27 17:49:03 +02:00
Min RK
b08dbbd106
handle that auth_token is checked now at startup
2018-03-27 17:46:37 +02:00
Min RK
3b320c75e9
remove warning when generating proxy token if Proxy.should_start
...
Now that it's unambiguous whether the proxy should start or not,
we don't need a warning about generating tokens causing issues for hub restart.
We can raise a strict, early error if proxy s external and token is still unspecified,
rather than running into a 403 error due to a generated token
2018-03-27 17:46:25 +02:00
Min RK
1aa6dc6686
use semaphore to limit concurrent requests to the proxy
...
should limit timeout errors in case of flooding the proxy with requests
default concurrency is 10
2018-03-27 14:30:03 +02:00
Min RK
fdc4385e62
a bit more debug logging in proxy.check_routes
...
- log (info) that check_routes is starting
- log (debug) when fetching routes
2018-03-27 14:25:49 +02:00