biigle / core

:large_blue_circle: Application core of BIIGLE
https://biigle.de
GNU General Public License v3.0
12 stars 15 forks source link

Identify annotation in "annotations" user interface by its annotation id #411

Closed GMDuncan closed 2 years ago

GMDuncan commented 2 years ago

We occasionally have quality control flags presented to us from downstream analyses and general QC checks using the csv reporting outputs, for example where the area for an annotation is spurious.

At this stage the annotation is (justly) only directly identifiable by its "id" value. It would be useful if there were a way for an annotator, using the application user interface, to quickly identify the annotation in question so that they confirm the spurious annotation within the system itself.

Potentially solvable by exposing the attribute id as text in the annotation tab like below, for a visual search: image (I can see this id value is already requested from the database to form the "data-annotation-id" attribute in each list item) Or by allowing annotation id as an option in the annotation tab's filter?

(New functionality rather than a bug)

mzur commented 2 years ago

Would using the https://biigle.de/annotations/[id] endpoint be a viable alternative? This redirects to the correct image and highlights the annotation in the user interface. You could generate the links in your downstream pipeline. Example: https://biigle.de/annotations/12305719

The endpoint is undocumented because it's not part of the REST API. Maybe we should update the documentation to include all HTTP endpoints sometime.