-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:scalableminds/webknossos into dro…
…pdown-menu * 'master' of github.com:scalableminds/webknossos: Fix download button for annotations when tiff export is disabled (#6931) Update PULL_REQUEST_TEMPLATE.md Prepare multi modality support (#6748) Improvements for terms-of-services modal (#6930) Fix creating task types with preferred mode (#6928) Fix styling for login pages for dark mode users (#6916) Added members to admin team page (#6915) Release 23.03.1 (#6917) Redesign Welcome UI (#6904) Fix race condition which could disable saving (#6914)
- Loading branch information
Showing
133 changed files
with
4,081 additions
and
2,022 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
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
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
START TRANSACTION; | ||
|
||
CREATE TABLE webknossos.dataSet_layer_coordinateTransformations( | ||
_dataSet CHAR(24) NOT NULL, | ||
layerName VARCHAR(256) NOT NULL, | ||
type VARCHAR(256) NOT NULL, | ||
matrix JSONB | ||
); | ||
|
||
ALTER TABLE webknossos.dataSet_layer_coordinateTransformations | ||
ADD CONSTRAINT dataSet_ref FOREIGN KEY(_dataSet) REFERENCES webknossos.dataSets(_id) DEFERRABLE; | ||
|
||
-- Update default gpuMemoryFactor from 3 to 4 in user configuration | ||
UPDATE webknossos.users | ||
SET userconfiguration = CASE | ||
WHEN (userconfiguration->>'gpuMemoryFactor')::NUMERIC = 3 THEN jsonb_set( | ||
userconfiguration, | ||
array['gpuMemoryFactor'], | ||
to_jsonb(4::NUMERIC)) | ||
else | ||
userconfiguration | ||
END | ||
WHERE userconfiguration ? 'gpuMemoryFactor'; | ||
|
||
-- Do the same for recommended configurations of task types | ||
UPDATE webknossos.tasktypes | ||
SET recommendedconfiguration = CASE | ||
WHEN (recommendedconfiguration->>'gpuMemoryFactor')::NUMERIC = 3 THEN jsonb_set( | ||
recommendedconfiguration, | ||
array['gpuMemoryFactor'], | ||
to_jsonb(4::NUMERIC)) | ||
else | ||
recommendedconfiguration | ||
END | ||
WHERE recommendedconfiguration ? 'gpuMemoryFactor'; | ||
|
||
-- Disable interpolation for all users for performance reasons. | ||
UPDATE webknossos.user_dataSetConfigurations | ||
SET viewconfiguration = CASE | ||
WHEN jsonb_typeof(viewconfiguration->'interpolation') = 'boolean' AND (viewconfiguration->>'interpolation')::boolean IS TRUE THEN jsonb_set( | ||
viewconfiguration, | ||
array['interpolation'], | ||
to_jsonb(FALSE)) | ||
else | ||
viewconfiguration | ||
END | ||
WHERE viewconfiguration ? 'interpolation'; | ||
|
||
UPDATE webknossos.releaseInformation SET schemaVersion = 101; | ||
|
||
COMMIT TRANSACTION; |
31 changes: 31 additions & 0 deletions
31
conf/evolutions/reversions/101-coordinate-transformations.sql
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
START TRANSACTION; | ||
|
||
DROP TABLE webknossos.dataSet_layer_coordinateTransformations; | ||
|
||
-- Restore default gpuMemoryFactor from 4 to 3 in user configuration | ||
UPDATE webknossos.users | ||
SET userconfiguration = CASE | ||
WHEN (userconfiguration->>'gpuMemoryFactor')::NUMERIC = 4 THEN jsonb_set( | ||
userconfiguration, | ||
array['gpuMemoryFactor'], | ||
to_jsonb(3::NUMERIC)) | ||
else | ||
userconfiguration | ||
END | ||
WHERE userconfiguration ? 'gpuMemoryFactor'; | ||
|
||
-- Do the same for recommended configurations of task types | ||
UPDATE webknossos.tasktypes | ||
SET recommendedconfiguration = CASE | ||
WHEN (recommendedconfiguration->>'gpuMemoryFactor')::NUMERIC = 4 THEN jsonb_set( | ||
recommendedconfiguration, | ||
array['gpuMemoryFactor'], | ||
to_jsonb(3::NUMERIC)) | ||
else | ||
recommendedconfiguration | ||
END | ||
WHERE recommendedconfiguration ? 'gpuMemoryFactor'; | ||
|
||
UPDATE webknossos.releaseInformation SET schemaVersion = 100; | ||
|
||
COMMIT TRANSACTION; |
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
Oops, something went wrong.