Skip to content

Annotator Data Incongruity #334

@thehabes

Description

@thehabes

When working in the /annotator and testing the services upgrade CenterForDigitalHumanities/TPEN-services#419 we started getting mixed results. Sometimes new Annotation ids were generated when they shouldn't be, sometimes they weren't.

We discovered a crucial piece of human behavior using the /annotator that made the different.

If you refresh the page each time you click 'save annotations' the error is never encountered

TPEN Interfaces /annotator will pass the bad data to the /project/:projectid/page/:pageid endpoint. We think it is because it caches old data and is using the incorrect ids or some kind of incorrect value. TPEN Services is handling the request like it should be even though the client interfaces appears to experience bad results. We think the reality is the request is bad and will never get the result the client wants. It has been giving a bad request and getting the wrong response all along, but the way that response is wrong happened to "just work".

It is still "just work"ing, but it is more obvious where the interface is messing up the data for the services now. It appears updated line data does not stay in sync in the interface due to what data is cached and reused when it shouldn't be.

Developers that need the /annotator interface to function correctly to make data for their work should refresh the page between each usage of "save annotations" until this bug is investigated further and fixed.

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