mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 20:43:02 +00:00
progress url is at server/progress
instead of server-progress
This commit is contained in:
@@ -372,9 +372,9 @@ default_handlers = [
|
|||||||
(r"/api/user", SelfAPIHandler),
|
(r"/api/user", SelfAPIHandler),
|
||||||
(r"/api/users", UserListAPIHandler),
|
(r"/api/users", UserListAPIHandler),
|
||||||
(r"/api/users/([^/]+)", UserAPIHandler),
|
(r"/api/users/([^/]+)", UserAPIHandler),
|
||||||
(r"/api/users/([^/]+)/server-progress", SpawnProgressAPIHandler),
|
|
||||||
(r"/api/users/([^/]+)/server-progress/([^/]*)", SpawnProgressAPIHandler),
|
|
||||||
(r"/api/users/([^/]+)/server", UserServerAPIHandler),
|
(r"/api/users/([^/]+)/server", UserServerAPIHandler),
|
||||||
|
(r"/api/users/([^/]+)/server/progress", SpawnProgressAPIHandler),
|
||||||
(r"/api/users/([^/]+)/servers/([^/]*)", UserServerAPIHandler),
|
(r"/api/users/([^/]+)/servers/([^/]*)", UserServerAPIHandler),
|
||||||
|
(r"/api/users/([^/]+)/servers/([^/]*)/progress", SpawnProgressAPIHandler),
|
||||||
(r"/api/users/([^/]+)/admin-access", UserAdminAccessAPIHandler),
|
(r"/api/users/([^/]+)/admin-access", UserAdminAccessAPIHandler),
|
||||||
]
|
]
|
||||||
|
@@ -887,10 +887,12 @@ class UserSpawnHandler(BaseHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
# we may have waited above, check pending again:
|
# we may have waited above, check pending again:
|
||||||
progress_url = url_path_join(
|
url_parts = [self.hub.base_url, 'api/users', user.escaped_name]
|
||||||
self.hub.base_url, 'api/users',
|
if spawner.name:
|
||||||
user.escaped_name, 'server-progress', spawner.name,
|
url_parts.extend(['servers', spawner.name, 'progress'])
|
||||||
)
|
else:
|
||||||
|
url_parts.extend(['server/progress'])
|
||||||
|
progress_url = url_path_join(*url_parts)
|
||||||
|
|
||||||
if spawner.pending:
|
if spawner.pending:
|
||||||
self.log.info("%s is pending %s", spawner._log_name, spawner.pending)
|
self.log.info("%s is pending %s", spawner._log_name, spawner.pending)
|
||||||
|
Reference in New Issue
Block a user