pre-commit-ci[bot]
f124f06c2d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 22.1.0 → 22.3.0](https://github.com/psf/black/compare/22.1.0...22.3.0 )
- [github.com/pre-commit/mirrors-prettier: v2.6.1 → v2.6.2](https://github.com/pre-commit/mirrors-prettier/compare/v2.6.1...v2.6.2 )
2022-04-04 20:23:56 +00:00
Joseph Clark
f2faf0ee43
Fix ValueError
...
Fixes ValueError: too many values to unpack (expected 2)
2022-04-01 15:44:28 -06:00
Min RK
ab2913008e
more docs, comments, asserts about immutable scope functions
2022-04-01 11:54:32 +02:00
Min RK
eebc0f485d
Apply suggestions from code review
...
Co-authored-by: Simon Li <orpheus+devel@gmail.com >
2022-04-01 11:36:06 +02:00
Min RK
bb6427ea9b
Add FrozenDict for caching parsed_scopes dicts
...
Since we need them to be immutable
2022-04-01 11:36:05 +02:00
Min RK
29b73563dc
cache common scope operations
...
we expand/parse the same scopes _a lot_.
We can save time with some caching.
Main change: cached functions must return immutable frozenset instead of mutable set,
to avoid mutating the result of subsequent returns.
Some functions can only be cached _sometimes_ (e.g. group lookups in db cannot be cached),
for which we have a DoNotCache(result) exception
2022-04-01 11:35:05 +02:00
Erik Sundell
aa0ce1c88a
Merge pull request #3852 from minrk/isort
...
Use isort for import formatting
2022-04-01 11:07:28 +02:00
Min RK
7a9778249f
run pre-commit with isort
2022-03-31 12:33:26 +02:00
Min RK
c41b732fbd
switch to isort for import formatting
...
isort produces nicer imports without wasting a huge amount of space
2022-03-31 12:32:11 +02:00
Vlad Vifor
6ede428990
Merge branch 'jupyterhub:main' into group_property_feature
2022-03-30 11:25:53 +02:00
Erik Sundell
d9b85a819e
Merge pull request #3849 from huage1994/patch-1
...
The word `used` is duplicated in upgrade.md
2022-03-30 08:26:08 +02:00
nihua
6d00eb501a
Update upgrade.md
2022-03-30 14:20:30 +08:00
Erik Sundell
318c95342d
Merge pull request #3833 from minrk/token-scopes
...
Tokens have scopes instead of roles
2022-03-29 23:49:35 +02:00
Erik Sundell
cde0f12f07
Merge pull request #3848 from jupyterhub/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-03-28 22:41:22 +02:00
pre-commit-ci[bot]
6668fb39f9
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-prettier: v2.6.0 → v2.6.1](https://github.com/pre-commit/mirrors-prettier/compare/v2.6.0...v2.6.1 )
2022-03-28 19:36:33 +00:00
Min RK
4691fae90a
Merge pull request #3845 from jupyterhub/dependabot/npm_and_yarn/jsx/minimist-1.2.6
...
Bump minimist from 1.2.5 to 1.2.6 in /jsx
2022-03-28 09:03:51 +02:00
Min RK
0fccbc69ff
Merge pull request #3834 from NarekA/narek/server-details-in-dashboard
...
Admin Dashboard - Collapsible Details View
2022-03-28 09:03:26 +02:00
dependabot[bot]
d699f794ac
Bump minimist from 1.2.5 to 1.2.6 in /jsx
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-26 13:42:02 +00:00
Min RK
29a9ca18fe
Merge pull request #3841 from minrk/asyncio-mode
...
adopt pytest-asyncio asyncio_mode='auto'
2022-03-26 14:41:29 +01:00
Erik Sundell
72ae21d6dc
Merge pull request #3843 from minrk/doc-typos
...
Some typos in docs
2022-03-24 16:25:47 +01:00
Min RK
310d9621e5
limit server->read:users:name filter to read: scopes
...
it shouldn't be included in _access_ scopes, for instance
2022-03-24 16:13:57 +01:00
Min RK
0f4258d00c
update more test expectations
2022-03-24 15:47:02 +01:00
Min RK
78b5aa150c
avoid always-adding identify scope to everything
...
add it to token permissions _before_ intersecting with owner
2022-03-24 15:36:56 +01:00
Min RK
3cfb14b9e5
rerender rest-api
2022-03-24 15:16:21 +01:00
Min RK
7e22614a4e
[squash me] token progress
...
tokens have scopes
instead of roles, which allow tokens to change permissions over time
This is mostly a low-level change,
with little outward-facing effects.
- on upgrade, evaluate all token role assignments to their current scopes,
and store those scopes on the tokens
- assigning roles to tokens still works, but scopes are evaluated and validated immediately,
rather than lazily stored as roles
- no longer need to check for role permission changes on startup, because token permissions aren't affected
- move a few scope utilities from roles to scopes
- oauth allows specifying scopes, not just roles.
But these are still at the level specified in roles,
not fully-resolved scopes.
- more granular APIs for working with scopes and roles
Still to do later:
- expose scopes config for Spawner/service
- compute 'full' intersection of requested scopes, rather than on the 'raw' scope list in roles
2022-03-24 15:05:50 +01:00
Min RK
66ecaf472a
fix some outdated references to 'all' metascope
...
it is called 'inherit', but not all docs were updated
2022-03-24 14:06:05 +01:00
Min RK
3ba262f6f6
fix heading level in changelog
...
sphinx has started to error with this
2022-03-24 14:06:04 +01:00
vpopescu
bfc9c880b9
Removed duplicate files
2022-03-23 13:54:07 +01:00
vpopescu
ef113a9040
Merge branch 'group_property_feature' of https://github.com/vladfreeze/jupyterhub into group_property_feature
2022-03-23 13:52:04 +01:00
vpopescu
ca4342a010
Removed git error
2022-03-23 13:31:55 +01:00
Vlad Vifor
e627e91fa6
Merge branch 'jupyterhub:main' into group_property_feature
2022-03-23 13:21:25 +01:00
Min RK
b935190da8
adopt pytest-asyncio asyncio_mode
...
removes need for our own implementation of the same behavior
but keep it around while we still support Python 3.6,
since the version (0.17) introducing asyncio_mode drops support for Python 3.6
2022-03-23 09:25:22 +01:00
Erik Sundell
7cd5c1c12b
Merge pull request #3840 from jupyterhub/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-03-22 06:35:53 +01:00
pre-commit-ci[bot]
4708fce4f8
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-prettier: v2.5.1 → v2.6.0](https://github.com/pre-commit/mirrors-prettier/compare/v2.5.1...v2.6.0 )
2022-03-21 23:39:32 +00:00
Narek Amirbekian
93fda7c96b
Change layout
2022-03-21 13:05:56 -07:00
Erik Sundell
912e0ad53f
Merge pull request #3839 from yuvipanda/log-docs-1
...
Document version mismatch log message
2022-03-21 11:40:49 +01:00
YuviPanda
3e9ce8bc03
Document version mismatch log message
2022-03-19 14:10:24 -07:00
Min RK
a08aa3398c
ensure literal_binds is set in order
...
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com >
2022-03-18 15:25:46 +01:00
Min RK
3076845927
tokens have scopes
...
instead of roles, which allow tokens to change permissions over time
This is mostly a low-level change,
with little outward-facing effects.
- on upgrade, evaluate all token role assignments to their current scopes,
and store those scopes on the tokens
- assigning roles to tokens still works, but scopes are evaluated and validated immediately,
rather than lazily stored as roles
- no longer need to check for role permission changes on startup, because token permissions aren't affected
- move a few scope utilities from roles to scopes
- oauth allows specifying scopes, not just roles.
But these are still at the level specified in roles,
not fully-resolved scopes.
- more granular APIs for working with scopes and roles
2022-03-18 14:13:16 +01:00
pre-commit-ci[bot]
b1c0ebd521
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-03-18 11:59:17 +00:00
Vlad Vifor
e6c4ca1f25
Merge branch 'jupyterhub:main' into group_property_feature
2022-03-18 12:58:20 +01:00
Erik Sundell
cb25d29b0b
Merge pull request #3837 from minrk/fix-import-error
...
ensure _import_error is set when JUPYTERHUB_SINGLEUSER_APP is unavailable
2022-03-18 10:03:18 +01:00
Min RK
2e8d303ad8
ensure _import_error is set when JUPYTERHUB_SINGLEUSER_APP is unavailable
2022-03-18 09:24:22 +01:00
Erik Sundell
a754d56433
Merge pull request #3835 from minrk/rm-distutils
...
remove lingering reference to distutils
2022-03-17 13:28:43 +01:00
Min RK
775a16dc50
remove lingering reference to distutils
2022-03-17 12:16:44 +01:00
Narek Amirbekian
16824dcadb
Use .toHaveClass instead of .contains
2022-03-16 16:42:17 -07:00
Narek Amirbekian
f949cda227
Add test for details view
2022-03-16 16:36:34 -07:00
Erik Sundell
454e356e4d
Merge pull request #3713 from minrk/custom-scopes
...
allow user-defined custom scopes
2022-03-16 08:52:55 +01:00
Min RK
9a87b59e84
improve custom scope docstrings
2022-03-16 08:44:52 +01:00
Narek Amirbekian
93d82a9012
Fix tests
2022-03-15 17:09:26 -07:00