huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
242 stars 80 forks source link

[IX] Labeling data creates two requests #7138

Open RafaPolit opened 3 months ago

RafaPolit commented 3 months ago

Labeling data creates two requests

Labelling data sends two API requests, one to /entities and one to /files. If one of them fails, the other still made changes, and this could lead to inconsistent or corrupted data. The labelling must be a UseCase of the feature that handles all errors within and, ideally, transactions both files and entities back upon error.

txau commented 3 months ago

This looks like something that needs fixing.