Skip to content

Commit bd8a6af

Browse files
authored
open_remote() additionally tries to disambiguate with directory name and orga_id (#1247)
* Add directory_name to arguments of open_remote() * Update disambiguate for remote datasets and fix metadata bug. * Update changelog and update cassettes. * Run typechecker. * Implement requested changes.
1 parent dd88bfa commit bd8a6af

35 files changed

+2925
-2157
lines changed

webknossos/Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
1818
- Added support for python 3.13. [#1240](https://github.com/scalableminds/webknossos-libs/pull/1240)
1919

2020
### Changed
21+
- `Dataset.open_remote()` adds another method to disambiguate dataset_name and organization_id. [#1247](https://github.com/scalableminds/webknossos-libs/pull/1247)
2122

2223
### Fixed
24+
- Fixed a bug with loading metadata lists. [#1247](https://github.com/scalableminds/webknossos-libs/pull/1247)
2325

2426

2527
## [0.16.4](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.16.4) - 2025-01-23

webknossos/tests/cassettes/test_annotation/test_annotation_upload_download_roundtrip.yml

Lines changed: 39 additions & 39 deletions
Large diffs are not rendered by default.

webknossos/tests/cassettes/test_annotation/test_bounding_box_roundtrip.yml

Lines changed: 60 additions & 30 deletions
Large diffs are not rendered by default.

webknossos/tests/cassettes/test_api_client/test_annotation_info.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ http_interactions:
22
- request:
33
method: GET
44
path: >-
5-
/api/v9/annotations/570ba0092a7c0e980056fe9b/info?timestamp=1737379983000
5+
/api/v9/annotations/570ba0092a7c0e980056fe9b/info?timestamp=1738236191000
66
headers:
77
host: localhost:9000
88
accept: '*/*'
@@ -22,7 +22,7 @@ http_interactions:
2222
cache-control: no-cache
2323
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
2424
x-permitted-cross-domain-policies: master-only
25-
date: Mon, 20 Jan 2025 13:33:02 GMT
25+
date: Thu, 30 Jan 2025 11:23:10 GMT
2626
content-type: application/json
2727
content-length: '1929'
2828
body:

webknossos/tests/cassettes/test_api_client/test_build_info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ http_interactions:
2222
access-control-max-age: '600'
2323
access-control-allow-origin: '*'
2424
x-permitted-cross-domain-policies: master-only
25-
date: Mon, 20 Jan 2025 13:33:03 GMT
25+
date: Thu, 30 Jan 2025 11:23:12 GMT
2626
content-type: application/json
2727
content-length: '415'
2828
body:

webknossos/tests/cassettes/test_api_client/test_current_user_info_and_user_logged_time.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ http_interactions:
2121
cache-control: no-cache
2222
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
2323
x-permitted-cross-domain-policies: master-only
24-
date: Mon, 20 Jan 2025 13:33:03 GMT
24+
date: Thu, 30 Jan 2025 11:23:11 GMT
2525
content-type: application/json
2626
content-length: '682'
2727
body:
2828
encoding: utf8
2929
data: >-
30-
{"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":1737379785764,"isAnonymous":false,"isEditable":true,"organization":"Organization_X","novelUserExperienceInfos":{},"selectedTheme":"auto","created":1460379469000,"lastTaskTypeId":null,"isSuperUser":true,"isEmailVerified":true}
30+
{"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":1738235973758,"isAnonymous":false,"isEditable":true,"organization":"Organization_X","novelUserExperienceInfos":{},"selectedTheme":"auto","created":1460379469000,"lastTaskTypeId":null,"isSuperUser":true,"isEmailVerified":true}
3131
compression: none
3232
- request:
3333
method: GET
@@ -51,7 +51,7 @@ http_interactions:
5151
cache-control: no-cache
5252
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
5353
x-permitted-cross-domain-policies: master-only
54-
date: Mon, 20 Jan 2025 13:33:03 GMT
54+
date: Thu, 30 Jan 2025 11:23:11 GMT
5555
content-type: application/json
5656
content-length: '691'
5757
body:

webknossos/tests/cassettes/test_api_client/test_dataset_info.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ http_interactions:
2121
cache-control: no-cache
2222
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
2323
x-permitted-cross-domain-policies: master-only
24-
date: Mon, 20 Jan 2025 13:33:03 GMT
24+
date: Thu, 30 Jan 2025 11:23:12 GMT
2525
content-type: application/json
2626
content-length: '112'
2727
body:
@@ -51,11 +51,11 @@ http_interactions:
5151
cache-control: no-cache
5252
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
5353
x-permitted-cross-domain-policies: master-only
54-
date: Mon, 20 Jan 2025 13:33:03 GMT
54+
date: Thu, 30 Jan 2025 11:23:12 GMT
5555
content-type: application/json
56-
content-length: '1503'
56+
content-length: '1602'
5757
body:
5858
encoding: utf8
5959
data: >-
60-
{"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,"directoryName":"l4_sample","created":1508495293789,"isEditable":true,"lastUsedByUser":1737379984239,"logoUrl":"/assets/images/mpi-logos.svg","sortingKey":1508495293789,"metadata":[{"key":"key","type":"string","value":"value"}],"isUnreported":false,"tags":[],"folderId":"570b9f4e4bb848d0885ea917","publication":null,"usedStorageBytes":1692207513}
60+
{"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,"directoryName":"l4_sample","created":1508495293789,"isEditable":true,"lastUsedByUser":1738236192619,"logoUrl":"/assets/images/mpi-logos.svg","sortingKey":1508495293789,"metadata":[{"key":"key","type":"string","value":"value"},{"key":"number","type":"number","value":42},{"key":"list","type":"string[]","value":["a","b","c"]}],"isUnreported":false,"tags":[],"folderId":"570b9f4e4bb848d0885ea917","publication":null,"usedStorageBytes":1692207513}
6161
compression: none

webknossos/tests/cassettes/test_api_client/test_datastore_list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ http_interactions:
2121
cache-control: no-cache
2222
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
2323
x-permitted-cross-domain-policies: master-only
24-
date: Mon, 20 Jan 2025 13:33:02 GMT
24+
date: Thu, 30 Jan 2025 11:23:11 GMT
2525
content-type: application/json
2626
content-length: '147'
2727
body:

webknossos/tests/cassettes/test_api_client/test_generate_token_for_data_store.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ http_interactions:
2222
cache-control: no-cache
2323
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
2424
x-permitted-cross-domain-policies: master-only
25-
date: Mon, 20 Jan 2025 13:33:03 GMT
25+
date: Thu, 30 Jan 2025 11:23:11 GMT
2626
content-type: application/json
2727
content-length: '34'
2828
body:
2929
encoding: utf8
30-
data: '{"token":"PxDd6hXgE0biL9iVj3wTJQ"}'
30+
data: '{"token":"KFZHvz4A7iVBVjpP9Hieqg"}'
3131
compression: none

webknossos/tests/cassettes/test_api_client/test_health.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ http_interactions:
2121
cache-control: no-cache
2222
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
2323
x-permitted-cross-domain-policies: master-only
24-
date: Mon, 20 Jan 2025 13:33:02 GMT
24+
date: Thu, 30 Jan 2025 11:23:10 GMT
2525
content-type: text/plain; charset=UTF-8
2626
content-length: '2'
2727
body:

0 commit comments

Comments
 (0)