From b084277179f85e4b1ac6a3d2d916cd06eab18f62 Mon Sep 17 00:00:00 2001 From: Florian M Date: Wed, 24 Jan 2024 13:47:04 +0100 Subject: [PATCH 1/2] Make index location in zarr3 sharding metadata optional --- .../datastore/datareaders/zarr3/Zarr3ArrayHeader.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webknossos-datastore/app/com/scalableminds/webknossos/datastore/datareaders/zarr3/Zarr3ArrayHeader.scala b/webknossos-datastore/app/com/scalableminds/webknossos/datastore/datareaders/zarr3/Zarr3ArrayHeader.scala index 4e4c4deeeb1..6ea3f8fdfd5 100644 --- a/webknossos-datastore/app/com/scalableminds/webknossos/datastore/datareaders/zarr3/Zarr3ArrayHeader.scala +++ b/webknossos-datastore/app/com/scalableminds/webknossos/datastore/datareaders/zarr3/Zarr3ArrayHeader.scala @@ -199,7 +199,9 @@ object Zarr3ArrayHeader extends JsonImplicits { chunk_shape <- config("chunk_shape").validate[Array[Int]] codecs = readCodecs(config("codecs")) index_codecs = readCodecs(config("index_codecs")) - index_location <- config("index_location").validate[IndexLocationSetting.IndexLocationSetting] + index_location = (config \ "index_location") + .asOpt[IndexLocationSetting.IndexLocationSetting] + .getOrElse(IndexLocationSetting.end) } yield ShardingCodecConfiguration(chunk_shape, codecs, index_codecs, index_location) private def readCodecs(value: JsValue): Seq[CodecConfiguration] = { From ed66ed33d9ff5763486bf4db136f62e045c95fb9 Mon Sep 17 00:00:00 2001 From: Florian M Date: Wed, 24 Jan 2024 13:49:26 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG.unreleased.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 70e3e615c7e..1dda57affeb 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -65,6 +65,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released - Fixed a bug where listing the annotations of other users would result in empty lists even if there are annotations, and you should be allowed to see them. [#7563](https://github.com/scalableminds/webknossos/pull/7563) - Fixed errors showing when viewing the annotation list. [#7579](https://github.com/scalableminds/webknossos/pull/7579) - Fixed a bug where all-zero chunks/buckets were omitted when downloading volume annotation even in case of a fallback segmentation layer, where their zeroed-bucket information is actually needed. [#7576](https://github.com/scalableminds/webknossos/pull/7576) +- Fixed a bug where zarr3 datasets with sharding that didn’t specify an explicit index_location in their metadata could not be read. [#7583](https://github.com/scalableminds/webknossos/pull/7583) ### Removed - Removed several unused frontend libraries. [#7521](https://github.com/scalableminds/webknossos/pull/7521)