Skip to content

Annotation Layer Ordering is Inconsistent #8673

@fm3

Description

@fm3

The ordering of (volume) annotation layers is done in different ways in different scenarios:

  • The frontend displays them in the order they appear in the annotationProto
  • When adding a new layer, it is appended to the list in the annotationProto
  • However, when fetching the annotation layers from the postgres database, this ordering is not available. There, the layers are ordered lexicographically by tracingId
  • The ordering from the database is written to NML. On NML re-upload new IDs are handed out to the uploaded layers, but the ordering from the NML is used for proto.

Should be unified, so that adding layers and download + reupload should yield the same ordering. I’m not sure what’s the best way to solve this, and where a newly added layer should appear.

Note that the layer ordering also affects the initially visible layer (the first in the frontend’s list, apparently)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions