-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Mag setup in case of non public UPath. (#1222)
* append the token to the UPath of the mag path to ensure setup in case of non-public mags * add changelog * Update cassettes. * fix typing issue. * Update cassette. --------- Co-authored-by: valentin-pinkau <[email protected]> Co-authored-by: markbader <[email protected]>
- Loading branch information
1 parent
4878f66
commit 006083f
Showing
31 changed files
with
4,753 additions
and
1,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 67 additions & 37 deletions
104
webknossos/tests/cassettes/test_annotation/test_annotation_upload_download_roundtrip.yml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,13 @@ http_interactions: | |
cache-control: no-cache | ||
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin | ||
x-permitted-cross-domain-policies: master-only | ||
date: Wed, 18 Dec 2024 09:28:20 GMT | ||
date: Wed, 18 Dec 2024 13:42:29 GMT | ||
content-type: application/json | ||
content-length: '682' | ||
body: | ||
encoding: utf8 | ||
data: >- | ||
{"id":"570b9f4d2a7c0e4d008da6ef","email":"[email protected]","firstName":"user_A","lastName":"last_A","isAdmin":true,"isOrganizationOwner":true,"isDatasetManager":true,"isActive":true,"teams":[{"id":"570b9f4b2a7c0e3b008da6ec","name":"team_X1","isTeamManager":true},{"id":"59882b370d889b84020efd3f","name":"team_X3","isTeamManager":false},{"id":"59882b370d889b84020efd6f","name":"team_X4","isTeamManager":true}],"experiences":{"abc":5},"lastActivity":1734513931412,"isAnonymous":false,"isEditable":true,"organization":"Organization_X","novelUserExperienceInfos":{},"selectedTheme":"auto","created":1460379469000,"lastTaskTypeId":null,"isSuperUser":true,"isEmailVerified":true} | ||
{"id":"570b9f4d2a7c0e4d008da6ef","email":"[email protected]","firstName":"user_A","lastName":"last_A","isAdmin":true,"isOrganizationOwner":true,"isDatasetManager":true,"isActive":true,"teams":[{"id":"570b9f4b2a7c0e3b008da6ec","name":"team_X1","isTeamManager":true},{"id":"59882b370d889b84020efd3f","name":"team_X3","isTeamManager":false},{"id":"59882b370d889b84020efd6f","name":"team_X4","isTeamManager":true}],"experiences":{"abc":5},"lastActivity":1734529175482,"isAnonymous":false,"isEditable":true,"organization":"Organization_X","novelUserExperienceInfos":{},"selectedTheme":"auto","created":1460379469000,"lastTaskTypeId":null,"isSuperUser":true,"isEmailVerified":true} | ||
compression: none | ||
- request: | ||
method: GET | ||
|
@@ -51,13 +51,13 @@ http_interactions: | |
cache-control: no-cache | ||
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin | ||
x-permitted-cross-domain-policies: master-only | ||
date: Wed, 18 Dec 2024 09:28:21 GMT | ||
date: Wed, 18 Dec 2024 13:42:29 GMT | ||
content-type: application/json | ||
content-length: '1501' | ||
body: | ||
encoding: utf8 | ||
data: >- | ||
{"id":"59e9cfbdba632ac2ab8b23b5","name":"l4_sample","dataSource":{"id":{"name":"l4_sample","team":"Organization_X"},"dataLayers":[{"name":"color","category":"color","boundingBox":{"topLeft":[3072,3072,512],"width":1024,"height":1024,"depth":1024},"resolutions":[[1,1,1],[2,2,1],[4,4,1],[8,8,2],[16,16,4]],"elementClass":"uint8","defaultViewConfiguration":{"color":[255,0,0]}},{"name":"segmentation","category":"segmentation","boundingBox":{"topLeft":[3072,3072,512],"width":1024,"height":1024,"depth":1024},"resolutions":[[1,1,1],[2,2,1],[4,4,1],[8,8,2],[16,16,4]],"elementClass":"uint32","largestSegmentId":2504697}],"scale":{"factor":[11.239999771118164,11.239999771118164,28],"unit":"nanometer"}},"dataStore":{"name":"localhost","url":"http://localhost:9000","isScratch":false,"allowsUpload":true,"jobsSupportedByAvailableWorkers":[],"jobsEnabled":false},"owningOrganization":"Organization_X","allowedTeams":[{"id":"570b9f4b2a7c0e3b008da6ec","name":"team_X1","organization":"Organization_X"}],"allowedTeamsCumulative":[{"id":"570b9f4b2a7c0e3b008da6ec","name":"team_X1","organization":"Organization_X"}],"isActive":true,"isPublic":true,"description":null,"created":1508495293789,"isEditable":true,"lastUsedByUser":1734514101546,"logoUrl":"/assets/images/mpi-logos.svg","sortingKey":1508495293789,"metadata":[{"key":"key","type":"string","value":"value"}],"isUnreported":false,"tags":[],"folderId":"570b9f4e4bb848d0885ea917","publication":null,"usedStorageBytes":1692207513,"displayName":"l4_sample"} | ||
{"id":"59e9cfbdba632ac2ab8b23b5","name":"l4_sample","dataSource":{"id":{"name":"l4_sample","team":"Organization_X"},"dataLayers":[{"name":"color","category":"color","boundingBox":{"topLeft":[3072,3072,512],"width":1024,"height":1024,"depth":1024},"resolutions":[[1,1,1],[2,2,1],[4,4,1],[8,8,2],[16,16,4]],"elementClass":"uint8","defaultViewConfiguration":{"color":[255,0,0]}},{"name":"segmentation","category":"segmentation","boundingBox":{"topLeft":[3072,3072,512],"width":1024,"height":1024,"depth":1024},"resolutions":[[1,1,1],[2,2,1],[4,4,1],[8,8,2],[16,16,4]],"elementClass":"uint32","largestSegmentId":2504697}],"scale":{"factor":[11.239999771118164,11.239999771118164,28],"unit":"nanometer"}},"dataStore":{"name":"localhost","url":"http://localhost:9000","isScratch":false,"allowsUpload":true,"jobsSupportedByAvailableWorkers":[],"jobsEnabled":false},"owningOrganization":"Organization_X","allowedTeams":[{"id":"570b9f4b2a7c0e3b008da6ec","name":"team_X1","organization":"Organization_X"}],"allowedTeamsCumulative":[{"id":"570b9f4b2a7c0e3b008da6ec","name":"team_X1","organization":"Organization_X"}],"isActive":true,"isPublic":true,"description":null,"created":1508495293789,"isEditable":true,"lastUsedByUser":1734529349336,"logoUrl":"/assets/images/mpi-logos.svg","sortingKey":1508495293789,"metadata":[{"key":"key","type":"string","value":"value"}],"isUnreported":false,"tags":[],"folderId":"570b9f4e4bb848d0885ea917","publication":null,"usedStorageBytes":1692207513,"displayName":"l4_sample"} | ||
compression: none | ||
- request: | ||
method: POST | ||
|
@@ -82,19 +82,19 @@ http_interactions: | |
cache-control: no-cache | ||
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin | ||
x-permitted-cross-domain-policies: master-only | ||
date: Wed, 18 Dec 2024 09:28:21 GMT | ||
date: Wed, 18 Dec 2024 13:42:29 GMT | ||
content-type: application/json | ||
content-length: '34' | ||
body: | ||
encoding: utf8 | ||
data: '{"token":"m9ez5LM3yThKI4xoo46UwA"}' | ||
data: '{"token":"46XGJlCDCY-YKWdFmB0iYA"}' | ||
compression: none | ||
- request: | ||
method: HEAD | ||
path: /data/zarr/Organization_X/l4_sample/datasource-properties.json | ||
headers: | ||
host: localhost:9000 | ||
x-auth-token: m9ez5LM3yThKI4xoo46UwA | ||
x-auth-token: 46XGJlCDCY-YKWdFmB0iYA | ||
accept-encoding: identity | ||
accept: '*/*' | ||
user-agent: Python/3.10 aiohttp/3.10.9 | ||
|
@@ -111,7 +111,7 @@ http_interactions: | |
access-control-max-age: '600' | ||
access-control-allow-origin: '*' | ||
x-permitted-cross-domain-policies: master-only | ||
date: Wed, 18 Dec 2024 09:28:21 GMT | ||
date: Wed, 18 Dec 2024 13:42:29 GMT | ||
connection: close | ||
content-type: application/json | ||
content-length: '1152' | ||
|
@@ -124,7 +124,7 @@ http_interactions: | |
path: /data/zarr/Organization_X/l4_sample/datasource-properties.json | ||
headers: | ||
host: localhost:9000 | ||
x-auth-token: m9ez5LM3yThKI4xoo46UwA | ||
x-auth-token: 46XGJlCDCY-YKWdFmB0iYA | ||
range: bytes=0-1151 | ||
accept: '*/*' | ||
accept-encoding: gzip, deflate | ||
|
@@ -142,7 +142,7 @@ http_interactions: | |
access-control-max-age: '600' | ||
access-control-allow-origin: '*' | ||
x-permitted-cross-domain-policies: master-only | ||
date: Wed, 18 Dec 2024 09:28:21 GMT | ||
date: Wed, 18 Dec 2024 13:42:29 GMT | ||
connection: close | ||
content-type: application/json | ||
content-length: '1152' | ||
|
@@ -163,31 +163,31 @@ http_interactions: | |
x-auth-token: >- | ||
1b88db86331a38c21a0b235794b9e459856490d70408bcffb767f64ade0f83d2bdb4c4e181b9a9a30cdece7cb7c65208cc43b6c1bb5987f5ece00d348b1a905502a266f8fc64f0371cd6559393d72e031d0c2d0cabad58cccf957bb258bc86f05b5dc3d4fff3d5e3d9c0389a6027d861a21e78e3222fb6c5b7944520ef21761e | ||
content-length: '971' | ||
content-type: multipart/form-data; boundary=2bfa9aacaac79d46bb140c8cf7a5b9c6 | ||
content-type: multipart/form-data; boundary=bea7d3fdb51257fcf763c45203858879 | ||
body: | ||
encoding: base64 | ||
data: >- | ||
LS0yYmZhOWFhY2FhYzc5ZDQ2YmIxNDBjOGNmN2E1YjljNg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJjcmVhdGVHcm91cEZvckVhY2hGaWxlIg0KDQpmYWxzZQ0KLS0yYmZhOWFhY2FhYzc5ZDQ2YmIxNDBjOGNmN2E1YjljNg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJ0ZXN0X2JvdW5kaW5nX2JveF9yb3VuZHRyaXAuemlwIjsgZmlsZW5hbWU9InRlc3RfYm91bmRpbmdfYm94X3JvdW5kdHJpcC56aXAiDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL3ppcA0KDQpQSwMEFAAAAAgAilOSWRYDTB7eAQAA8AMAAB8AAAB0ZXN0X2JvdW5kaW5nX2JveF9yb3VuZHRyaXAubm1sjZNNb9wgEIbv+RWIe3b5WC9eyU6k3CL12qrtJfIHWaPaYAFu3f76Dhi2TtRK9QUGZpj38cxUj+s0ou/SOmV0jemBYCR1Z3qlrzVe/Ot9iR8f7io/wIF7uEOomhvbTNJDSDDhQK6ztGqS2iMNNzUeTy+umeZRYnRMPq5rRolWyEAPjF/gE4J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nWSWSixNTHeAQAA7gMAAB8AAAB0ZXN0X2JvdW5kaW5nX2JveF9yb3VuZHRyaXAubm1sjZPLbt0gEIb3eQrEPueAb9iSnUjZReq2VdpN5As5RrXBAty6efoOGE6dKJHqjRmYYf6Pmanvt3lCv7g2QskG0xPBiMteDUJeGrzal9sS39/d1HaEDXN3g1C9tLqduYUQZ8IG3xauxcylRRJOGjxlz6adl4ljdA4+pm8njjbIQE9JWsHHGKW0pEWG0Z+Pt18bnJROULzEQhI0G/BmaZYnVZpVhBzPW/PzQa3SiX9QG+rVpPSpBX8c1l2DySmJFhBC9O6l3UmO0cAXOzYYViMXl9H6pTDfhBHdBGxWr4C1c1rI99x1asPIquULf7FPkAuuDNb3N9aP3fothpAgYq2G6/+QfYVwsp3Ug3BACsLde0blbi0GD/kJwVfpSAYU08PiHUwCd/zDySlkCqbjSUqMApBL5onq89sO2XvnUAxX0l27LwcpM5anWcIKUuQ0J1cyz8kKRjPCaJkmtGJFjPTlKgllVUqqjKZlkVE4vGi1Lo+ADI/lyEHtXqoWWc05Dt0o1cBD90L/Ost7p9h1KHH6oCX9H3rQ/2OtzofQmg8XbiK0nxA/IJ1uZT8uSkgbT3s1u/mIExNMeAVpYbvBXgJodv8Gg47wkse42sPFK7zhVbswP3btjn8Njv71OU7vX1BLAQIUAxQAAAAIAE51klkosTUx3gEAAO4DAAAfAAAAAAAAAAAAAACAAQAAAAB0ZXN0X2JvdW5kaW5nX2JveF9yb3VuZHRyaXAubm1sUEsFBgAAAAABAAEATQAAABsCAAAAAA0KLS1iZWE3ZDNmZGI1MTI1N2ZjZjc2M2M0NTIwMzg1ODg3OS0tDQo= | ||
response: | ||
status: | ||
code: 200 | ||
headers: | ||
cache-control: no-cache | ||
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin | ||
x-permitted-cross-domain-policies: master-only | ||
date: Wed, 18 Dec 2024 09:28:21 GMT | ||
date: Wed, 18 Dec 2024 13:42:29 GMT | ||
content-type: application/json | ||
content-length: '124' | ||
body: | ||
encoding: utf8 | ||
data: >- | ||
{"annotation":{"typ":"Explorational","id":"676295b5010000b500976f57"},"messages":[{"success":"Successfully | ||
{"annotation":{"typ":"Explorational","id":"6762d145010000b400d80752"},"messages":[{"success":"Successfully | ||
uploaded file"}]} | ||
compression: none | ||
- request: | ||
method: GET | ||
path: >- | ||
/api/v8/annotations/676295b5010000b500976f57/download?skipVolumeData=false | ||
/api/v8/annotations/6762d145010000b400d80752/download?skipVolumeData=false | ||
headers: | ||
host: localhost:9000 | ||
accept: '*/*' | ||
|
@@ -208,30 +208,30 @@ http_interactions: | |
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin | ||
content-disposition: attachment;filename="test_bounding_box_roundtrip.nml" | ||
x-permitted-cross-domain-policies: master-only | ||
date: Wed, 18 Dec 2024 09:28:21 GMT | ||
date: Wed, 18 Dec 2024 13:42:29 GMT | ||
content-type: application/xml | ||
content-length: '1741' | ||
content-length: '1738' | ||
body: | ||
encoding: utf8 | ||
data: |- | ||
<things> | ||
<meta name="writer" content="NmlWriter.scala"/> | ||
<meta name="writerGitCommit" content="e1dd0672d5bd134d589faf6e6cbe15ad2a8fc9a2"/> | ||
<meta name="timestamp" content="1734514101689"/> | ||
<meta name="annotationId" content="676295b5010000b500976f57"/> | ||
<meta name="timestamp" content="1734529349513"/> | ||
<meta name="annotationId" content="6762d145010000b400d80752"/> | ||
<meta name="username" content="user_A last_A"/> | ||
<parameters> | ||
<experiment name="l4_sample" organization="Organization_X" datasetId="59e9cfbdba632ac2ab8b23b5" description="" wkUrl="http://localhost:9000"/> | ||
<scale x="11.239999771118164" y="11.239999771118164" z="28.0" unit="nanometer"/> | ||
<offset x="0" y="0" z="0"/> | ||
<time ms="1734514101642"/> | ||
<time ms="1734529349457"/> | ||
<editPosition x="0" y="0" z="0"/> | ||
<editRotation xRot="0.0" yRot="0.0" zRot="0.0"/> | ||
<zoomLevel zoom="2.0"/> | ||
<userBoundingBox id="0" name="Unnamed Bounding Box" isVisible="true" color.r="0.20000000298023224" color.g="0.5" color.b="0.10000000149011612" color.a="1.0" topLeftX="1024" topLeftY="512" topLeftZ="128" width="64" height="64" depth="64"/> | ||
<userBoundingBox id="1" name="task bounding box" color.r="0.7017210437734921" color.g="0.05341613291949088" color.b="0.6597648448306229" color.a="1.0" topLeftX="10" topLeftY="10" topLeftZ="10" width="5" height="5" depth="5"/> | ||
<userBoundingBox id="1" name="task bounding box" color.r="0.6216956041447752" color.g="0.5452428671401794" color.b="0.9783209862174057" color.a="1.0" topLeftX="10" topLeftY="10" topLeftZ="10" width="5" height="5" depth="5"/> | ||
</parameters> | ||
<thing id="2" color.r="0.07525762170553207" color.g="0.7398073077201843" color.b="0.23286902904510498" color.a="1.0" name="a tree" groupId="1"> | ||
<thing id="2" color.r="0.801793098449707" color.g="0.7671407461166382" color.b="0.08475342392921448" color.a="1.0" name="a tree" groupId="1"> | ||
<nodes> | ||
<node id="3" radius="1.0" x="0" y="0" z="0" rotX="0.0" rotY="0.0" rotZ="0.0" inVp="0" inMag="0" bitDepth="0" interpolation="false" time="0"/> | ||
</nodes> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,13 @@ http_interactions: | |
cache-control: no-cache | ||
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin | ||
x-permitted-cross-domain-policies: master-only | ||
date: Wed, 18 Dec 2024 09:28:22 GMT | ||
date: Wed, 18 Dec 2024 13:42:30 GMT | ||
content-type: application/json | ||
content-length: '682' | ||
body: | ||
encoding: utf8 | ||
data: >- | ||
{"id":"570b9f4d2a7c0e4d008da6ef","email":"[email protected]","firstName":"user_A","lastName":"last_A","isAdmin":true,"isOrganizationOwner":true,"isDatasetManager":true,"isActive":true,"teams":[{"id":"570b9f4b2a7c0e3b008da6ec","name":"team_X1","isTeamManager":true},{"id":"59882b370d889b84020efd3f","name":"team_X3","isTeamManager":false},{"id":"59882b370d889b84020efd6f","name":"team_X4","isTeamManager":true}],"experiences":{"abc":5},"lastActivity":1734513931412,"isAnonymous":false,"isEditable":true,"organization":"Organization_X","novelUserExperienceInfos":{},"selectedTheme":"auto","created":1460379469000,"lastTaskTypeId":null,"isSuperUser":true,"isEmailVerified":true} | ||
{"id":"570b9f4d2a7c0e4d008da6ef","email":"[email protected]","firstName":"user_A","lastName":"last_A","isAdmin":true,"isOrganizationOwner":true,"isDatasetManager":true,"isActive":true,"teams":[{"id":"570b9f4b2a7c0e3b008da6ec","name":"team_X1","isTeamManager":true},{"id":"59882b370d889b84020efd3f","name":"team_X3","isTeamManager":false},{"id":"59882b370d889b84020efd6f","name":"team_X4","isTeamManager":true}],"experiences":{"abc":5},"lastActivity":1734529175482,"isAnonymous":false,"isEditable":true,"organization":"Organization_X","novelUserExperienceInfos":{},"selectedTheme":"auto","created":1460379469000,"lastTaskTypeId":null,"isSuperUser":true,"isEmailVerified":true} | ||
compression: none | ||
- request: | ||
method: GET | ||
|
@@ -51,7 +51,7 @@ http_interactions: | |
cache-control: no-cache | ||
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin | ||
x-permitted-cross-domain-policies: master-only | ||
date: Wed, 18 Dec 2024 09:28:22 GMT | ||
date: Wed, 18 Dec 2024 13:42:30 GMT | ||
content-type: application/json | ||
content-length: '692' | ||
body: | ||
|
Oops, something went wrong.