-
Notifications
You must be signed in to change notification settings - Fork 14
Make sharing_token usage more explicit, don’t pass context token as query param #1400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| assert remote_ds.name == "test_remote_metadata" | ||
|
|
||
| # allow 10s for wk to scan the used storage bytes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the server’s finishUpload call now blocks until the storage is measured.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
|
|
||
| assert remote_ds.name == "test_remote_metadata" | ||
|
|
||
| # allow 10s for wk to scan the used storage bytes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet
|
Not sure it is necessary to update all the snapshots. I usually only remove the ones that are affected and then run |
Description:
sharing_tokens may occasionally be used as context tokens to access shared datasets, never should normal user tokens be passed as sharing_tokens. One problem this may cause is the token showing up in logging.Dataset.trigger_dataset_import,Dataset.trigger_reload_in_datastoreandRemoteDataset.trigger_reload_in_datastorethe parametertokenwas deprecated (use an authenticated webknossos context instead). InRemoteDataset.download_meshandRemoteSegmentationLayer.download_meshthe parametertokenwas renamed tosharing_tokento clarify that it is meant for a dataset sharing token. Otherwise, use an authenticated webknossos context instead.Issues:
Todos: