Skip to content

Error on finishing validation task #190

@sbilevich

Description

@sbilevich

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

  • Don't accept edited pages and (invalid or valid) state in same revision
  • Change algorithm to get latest revision

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

  • Don't send pages edited and (invalid or valid) state in same revision
  • Don't send field pages if no pages edited

Metadata

Metadata

Labels

bugSomething isn't workingpriority

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions