Simon Li
913832da48
Add support-bot
...
The old support-bot was disabled https://github.com/jupyterhub/.github/issues/15
This is the recommended replacement https://github.com/dessant/support-requests/issues/8
2021-10-29 14:09:49 +01:00
Min RK
42f57f4a72
Merge pull request #3662 from minrk/2.0rc-changelog
...
changelog for 2.0 release candidate
2021-10-29 13:40:34 +02:00
Min RK
d01a518c41
add updating rest-api version to release
...
and make real release checklist, to match other repos
2021-10-29 13:13:41 +02:00
Min RK
65ce06b116
test feedback
...
use global PYTEST_ARGS for nicer, simpler always-on arguments for pytest
2021-10-29 13:13:41 +02:00
Min RK
468aa5e93c
render openapi spec client-side
...
- move spec to _static/rest-api.yml, since the original yaml must be served
- copy javascript rendering code from FastAPI (uses swagger-ui)
- remove link to pet store, since there isn't a big enough difference to duplicate it
- remove bootprint rendering with node
2021-10-29 13:13:41 +02:00
Min RK
5c01370e6f
set version as long as we are rewriting the file
2021-10-29 13:13:41 +02:00
Min RK
21d08883a8
resolve rest-api validation errors
...
- regen scopes by running generate-scopes.py
2021-10-29 13:13:41 +02:00
Min RK
59de506f20
validate the rest-api
...
both with github action that runs openapi validation,
and a couple local tests to verify some maintenance tasks are done
2021-10-29 13:13:41 +02:00
Erik Sundell
b34120ed81
Merge pull request #3663 from minrk/clarify-default-roles
...
clarify some log messages during role assignment
2021-10-29 12:19:45 +02:00
Erik Sundell
617978179d
Merge pull request #3667 from minrk/autodoc-traits
...
use stable autodoc-traits
2021-10-29 12:16:30 +02:00
Min RK
0985d6fdf2
use stable autodoc-traits
2021-10-29 11:32:02 +02:00
Min RK
2049fb0491
clarify some log messages during role assignment
...
and only commit on change
2021-10-29 11:22:12 +02:00
Erik Sundell
a58fc6534b
Merge pull request #3664 from minrk/create-groups-on-startup
...
create groups declared in roles
2021-10-28 03:30:25 +02:00
Min RK
a14f97b7aa
create groups declared in roles
...
matches behavior of users
2021-10-27 21:00:49 +02:00
Min RK
0a4cd5b4f2
add auto-changelog for 2.0rc
2021-10-27 16:22:43 +02:00
Min RK
dca6d372df
Merge pull request #3661 from minrk/owner-metascope
...
Rename 'all' metascope to more descriptive 'inherit'
2021-10-27 16:20:29 +02:00
pre-commit-ci[bot]
3898c72921
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2021-10-27 14:01:05 +00:00
Min RK
b25517efe8
Rename 'all' metascope to more descriptive 'inherit'
...
since it means 'inheriting' the owner's permissions
'all' prompted the question 'all of what, exactly?'
Additionally, fix some NameErrors that should have been KeyErrors
2021-10-27 16:00:21 +02:00
Erik Sundell
392dffd11e
Merge pull request #3659 from minrk/deprecate-admin-only
...
deprecate instead of remove `@admin_only` auth decorator
2021-10-25 23:32:01 +02:00
Erik Sundell
510f6ea7e6
Merge pull request #3660 from minrk/scope-error
...
minor refinement of excessive scopes error message
2021-10-25 15:53:43 +02:00
Min RK
296a0ad2f2
minor refinement of excessive scopes error message
...
show the role name
2021-10-25 14:10:57 +02:00
Min RK
487c4524ad
deprecate instead of remove @admin_only
auth decorator
...
no harm in keeping it around for a deprecation cycle
2021-10-25 13:00:45 +02:00
Erik Sundell
b2f0208fcc
Merge pull request #3658 from minrk/better-timeout-message
...
improve timeout handling and messages
2021-10-20 22:15:26 +02:00
Min RK
84b9c3848c
more detailed error messages for start timeouts
...
these are the most common error for any number of reasons spawn may fail
2021-10-20 20:08:34 +02:00
Min RK
9adbafdfb3
consistent handling of any timeout error
...
some things raise standard TimeoutError, others may raise tornado gen.TimeoutError (gen.with_timeout)
For consistency, add AnyTimeoutError tuple to allow catching any timeout, no matter what kind
Where we were raising `TimeoutError`,
we should have been raising `asyncio.TimeoutError`.
The base TimeoutError is an OSError for ETIMEO, which is for system calls
2021-10-20 20:07:45 +02:00
Erik Sundell
9cf2b5101e
Merge pull request #3657 from edgarcosta/patch-1
...
docs: fix typo in proxy config example
2021-10-20 09:12:30 +02:00
Edgar Costa
725fa3a48a
typo
2021-10-19 22:39:41 -04:00
Erik Sundell
534dda3dc7
Merge pull request #3653 from minrk/admin-no-such-user
...
raise 404 on admin attempt to spawn nonexistent user
2021-10-15 15:23:18 +02:00
Min RK
b0c7df04ac
raise 404 on admin attempt to spawn nonexistent user
2021-10-15 14:40:47 +02:00
Min RK
61b0e8bef5
2.0.0b3
2.0.0b3
2021-10-14 12:49:20 +02:00
Erik Sundell
64f3938528
Merge pull request #3649 from minrk/cl-beta-3
...
add 424 status code change to changelog
2021-10-13 09:52:33 +02:00
Min RK
85bc92d88e
Merge pull request #3646 from joegasewicz/joegasewicz-New-user-token-returns-200-instead-of-201-1
...
new user token returns 200 instead of 201
2021-10-13 09:24:30 +02:00
Min RK
7bcda18564
add 424 status code change to changelog
2021-10-13 09:17:47 +02:00
Erik Sundell
86da36857e
Merge pull request #3647 from jupyterhub/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-10-12 00:13:22 +02:00
pre-commit-ci[bot]
530833e930
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1 )
2021-10-11 19:42:10 +00:00
Joe Gasewicz
3b0850fa9b
Fixed test_roles
2021-10-07 23:14:10 +01:00
josefgasewicz
1366911be6
Fixed tests & set status after writing json
2021-10-07 22:21:16 +01:00
Joe Gasewicz
fe276eac64
Update users.py
...
New user token returns 200 instead of 201 Fixes #3642
2021-10-07 16:31:23 +01:00
Min RK
9209ccd0de
Merge pull request #3636 from yuvipanda/404
...
Fail suspected API requests with 424, not 503
2021-10-05 15:16:18 +02:00
YuviPanda
3b2a1a37f9
Update tests that were looking for 503s
2021-10-05 18:10:52 +05:30
YuviPanda
6007ba78b0
Preserve older 503 behavior behind a flag
2021-10-05 17:56:51 +05:30
YuviPanda
9cb19cc342
Use 424 rather than 404 to indicate non-running server
...
404 is also used to identify that a particular resource
(like a kernel or terminal) is not present, maybe because
it is deleted. That comes from the notebook server, while
here we are responding from JupyterHub. Saying that the
user server they are trying to request the resource (kernel, etc)
from does not exist seems right.
2021-10-05 17:44:17 +05:30
YuviPanda
0f471f4e12
Fail suspected API requests with 404, not 503
...
Non-running user servers making requests is a fairly
common occurance - user servers get culled while their
browser tabs are left open. So we now have a background level
of 503s responses on the hub *all* the time, making it
very difficult to detect *real* 503s, which should ideally
be closely monitored and alerted on.
I *think* 404 is a more appropriate response, as the resource
(API) being requested is no longer present.
2021-10-05 03:00:16 +05:30
Erik Sundell
68db740998
Merge pull request #3635 from jupyterhub/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-10-04 22:38:05 +02:00
pre-commit-ci[bot]
9c0c6f25b7
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.28.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.28.0...v2.29.0 )
2021-10-04 19:48:13 +00:00
Min RK
5f0077cb5b
Merge pull request #3445 from rpwagner/patch-1
...
Initial SECURITY.md
2021-09-29 09:42:59 +02:00
Min RK
a6a2056cca
2.0.0b2
2.0.0b2
2021-09-29 09:41:57 +02:00
Erik Sundell
fb1e81212f
Merge pull request #3628 from minrk/beta-2
...
add latest changes to 2.0 changelog
2021-09-28 18:32:14 +02:00
Min RK
17f811d0b4
add latest changes to 2.0 changelog
...
- nullauthenticator
- lab by default
2021-09-28 15:28:59 +02:00
Min RK
34398d94de
Merge pull request #3627 from jupyterhub/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-09-28 15:23:00 +02:00