Go to validation task
Mark any page is invalid, edit it and save
Click Finish Validation
Request URL: http://localhost:3000/api/v1/annotation/tasks/1883/finish
Request Method: POST
Payload: {annotation_user_for_failed_pages: "auto", validation_user_for_reannotated_pages: "auto"}
Status Code: 400 Bad Request
{"detail":"Validator did not mark any pages as failed, thus annotation_user_for_failed_pages param should be null."}
Back-end
Algorithm to get latest revision:
For each revision from oldest to newest we need to fill lists with annotated, validated, failed using next logic:
- If in newest revision page in different state (from previous one), remove this page from previous list and add to new list
- In final revision must be not intersected lists with all pages from previous revisions and with latest state for each
Front-end
Go to validation task
Mark any page is invalid, edit it and save
Click Finish Validation
Request URL: http://localhost:3000/api/v1/annotation/tasks/1883/finish
Request Method: POST
Payload: {annotation_user_for_failed_pages: "auto", validation_user_for_reannotated_pages: "auto"}
Status Code: 400 Bad Request
{"detail":"Validator did not mark any pages as failed, thus
annotation_user_for_failed_pagesparam should be null."}Back-end
Algorithm to get latest revision:
For each revision from oldest to newest we need to fill lists with annotated, validated, failed using next logic:
Front-end