Skip to content

Commit 1e07d02

Browse files
committed
Merge branch 'master' into special-files
2 parents d37e282 + dd43621 commit 1e07d02

File tree

520 files changed

+4053
-3648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

520 files changed

+4053
-3648
lines changed

.dependency-cruiser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ module.exports = {
203203
comment: "",
204204
severity: "warn",
205205
from: {
206-
path: "^(frontend/javascripts/oxalis/model/accessors/).*[.]ts$",
206+
path: "^(frontend/javascripts/viewer/model/accessors/).*[.]ts$",
207207
},
208208
to: {
209-
path: "^(frontend/javascripts/oxalis/model/sagas/).*[.]ts$",
209+
path: "^(frontend/javascripts/viewer/model/sagas/).*[.]ts$",
210210
reachable: true,
211211
},
212212
},

CHANGELOG.unreleased.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,24 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
1111
[Commits](https://github.com/scalableminds/webknossos/compare/25.05.0...HEAD)
1212

1313
### Added
14+
- Meshes of Neuroglancer Precomputed Datasets can now be viewed. [#8236](https://github.com/scalableminds/webknossos/pull/8236)
1415
- Added the possibility to join an organization without requiring a paid user slot in case an organization already pays for the same user. Such a user is called a "Guest User". [#8502](https://github.com/scalableminds/webknossos/pull/8502)
16+
- Added that "Create Animation" jobs will now use the correct semgent colors for rendering meshes. [#8605](https://github.com/scalableminds/webknossos/pull/8605)
1517

1618
### Changed
1719
- Remove `data.maybe` dependency and replaced with regular Typescript types. [#8563](https://github.com/scalableminds/webknossos/pull/8563)
1820
- Updated `View Modes` documentation page with links for mouse and keyboard shortcuts. [#8582](https://github.com/scalableminds/webknossos/pull/8582)
1921
- Renamed the button to view the compound annotation of all tasks of a tasktype to be more descriptive. [#8565](https://github.com/scalableminds/webknossos/pull/8565)
20-
- Replaced fixed threshold of 40 meshes by a dynamic limit based on the number of triangles in the mesh for the "Create Animation" job. [#8588](https://github.com/scalableminds/webknossos/pull/8588)
22+
- Replaced fixed threshold of 40 meshes by a dynamic limit based on the number of triangles in the mesh for the "Create Animation" job. [#8588](https://github.com/scalableminds/webknossos/pull/8588)
2123
- Replaced Redux selector `useSelector((state: OxalisState) => ...)` with a typed `useWkSelector(state => ...)` shorthand. [#8591](https://github.com/scalableminds/webknossos/pull/8591)
2224
- Renamed `OxalisState`, `OxalisApplication`, and `OxalisApi` to their respective `Webknossos{State, API, Application}` equivalent [#8591](https://github.com/scalableminds/webknossos/pull/8591)
25+
- Renamed `frontend/javascripts/oxalis` to `frontend/javascripts/viewer`. [#8601](https://github.com/scalableminds/webknossos/pull/8601)
26+
- When loading data from a data layer that has data stored beyond the bounding box specified in the datasource-properties.json, data outside of the bounding box is now zeroed. (the layer is “clipped”). [#8551](https://github.com/scalableminds/webknossos/pull/8551)
2327

2428
### Fixed
2529
- Fixed that layer bounding boxes were sometimes colored green even though this should only happen for tasks. [#8535](https://github.com/scalableminds/webknossos/pull/8535)
2630
- Fixed that annotations could not be opened anymore (caused by #8535). [#8599](https://github.com/scalableminds/webknossos/pull/8599)
31+
- Fixed a rare bug where segment bounding box would not be displayed correctly, with the request potentially even crashing the server. [#8590](https://github.com/scalableminds/webknossos/pull/8590)
2732

2833
### Removed
2934

MIGRATIONS.unreleased.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ User-facing changes are documented in the [changelog](CHANGELOG.released.md).
1111
### Postgres Evolutions:
1212

1313
- [131-more-indices-on-users.sql](conf/evolutions/131-more-indices-on-users.sql)
14-
- [132-special-files.sql](conf/evolutions/132-special-files.sql)
14+
- [132-remove-stored-meshes.sql](conf/evolutions/132-remove-stored-meshes.sql)
15+
- [133-special-files.sql](conf/evolutions/133-special-files.sql)
1516

app/controllers/MeshController.scala

Lines changed: 0 additions & 83 deletions
This file was deleted.

app/models/mesh/Mesh.scala

Lines changed: 0 additions & 125 deletions
This file was deleted.

biome.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"organizeImports": {
4-
"enabled": true,
3+
"organizeImports": {
4+
"enabled": true,
55
"ignore": [
66
"frontend/javascripts/test/*",
7-
"frontend/javascripts/oxalis/model/helpers/shader_editor.ts"
7+
"frontend/javascripts/viewer/model/helpers/shader_editor.ts"
88
]
99
},
1010
"linter": {
@@ -100,10 +100,12 @@
100100
},
101101
"overrides": [
102102
{
103-
"include": ["**/package.json"],
103+
"include": [
104+
"**/package.json"
105+
],
104106
"formatter": {
105107
"lineWidth": 1
106108
}
107109
}
108110
]
109-
}
111+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
do $$ begin ASSERT (select schemaVersion from webknossos.releaseInformation) = 131, 'Previous schema version mismatch'; end; $$ LANGUAGE plpgsql;
2+
3+
DROP VIEW webknossos.meshes_;
4+
DROP TABLE webknossos.meshes;
5+
6+
UPDATE webknossos.releaseInformation SET schemaVersion = 132;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
START TRANSACTION;
22

3-
do $$ begin ASSERT (select schemaVersion from webknossos.releaseInformation) = 131, 'Previous schema version mismatch'; end; $$ LANGUAGE plpgsql;
3+
do $$ begin ASSERT (select schemaVersion from webknossos.releaseInformation) = 132, 'Previous schema version mismatch'; end; $$ LANGUAGE plpgsql;
44

55
CREATE TABLE webknossos.dataset_layer_special_files(
66
_dataset TEXT CONSTRAINT _dataset_objectId CHECK (_dataset ~ '^[0-9a-f]{24}$') NOT NULL,
@@ -9,6 +9,6 @@ CREATE TABLE webknossos.dataset_layer_special_files(
99
type TEXT NOT NULL
1010
);
1111

12-
UPDATE webknossos.releaseInformation SET schemaVersion = 132;
12+
UPDATE webknossos.releaseInformation SET schemaVersion = 133;
1313

1414
COMMIT TRANSACTION;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
do $$ begin ASSERT (select schemaVersion from webknossos.releaseInformation) = 132, 'Previous schema version mismatch'; end; $$ LANGUAGE plpgsql;
2+
3+
4+
CREATE TABLE webknossos.meshes(
5+
_id TEXT CONSTRAINT _id_objectId CHECK (_id ~ '^[0-9a-f]{24}$') PRIMARY KEY,
6+
_annotation TEXT CONSTRAINT _annotation_objectId CHECK (_annotation ~ '^[0-9a-f]{24}$') NOT NULL,
7+
description TEXT NOT NULL DEFAULT '',
8+
position webknossos.VECTOR3 NOT NULL,
9+
data TEXT,
10+
created TIMESTAMPTZ NOT NULL DEFAULT NOW(),
11+
isDeleted BOOLEAN NOT NULL DEFAULT false
12+
);
13+
14+
CREATE VIEW webknossos.meshes_ AS SELECT * FROM webknossos.meshes WHERE NOT isDeleted;
15+
16+
ALTER TABLE webknossos.meshes
17+
ADD CONSTRAINT annotation_ref FOREIGN KEY(_annotation) REFERENCES webknossos.annotations(_id) DEFERRABLE;
18+
19+
UPDATE webknossos.releaseInformation SET schemaVersion = 131;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
START TRANSACTION;
22

3-
do $$ begin ASSERT (select schemaVersion from webknossos.releaseInformation) = 132, 'Previous schema version mismatch'; end; $$ LANGUAGE plpgsql;
3+
do $$ begin ASSERT (select schemaVersion from webknossos.releaseInformation) = 133, 'Previous schema version mismatch'; end; $$ LANGUAGE plpgsql;
44

55
DROP TABLE IF EXISTS webknossos.dataset_layer_special_files;
66

7-
UPDATE webknossos.releaseInformation SET schemaVersion = 131;
7+
UPDATE webknossos.releaseInformation SET schemaVersion = 132;
88

99
COMMIT TRANSACTION;

0 commit comments

Comments
 (0)