nhsx / antibody-web

Web application for finger prick covid19 antibody Lateral Flow Tests (LFT) and interpreting results
MIT License
28 stars 10 forks source link

[LDAT-250] enqueue images #90

Closed barnc closed 4 years ago

barnc commented 4 years ago

Context

We need to send a random sample set of interpreted images to the human review service.

Changes proposed in this pull request

We add SQS infra for two queues, as well as a review status field on the test record, which handles the various ids and dates for recording the review process. Once an image is successfully interpreted, we randomly select a configurable % of the images and push the guid of those images to the first queue, to be consumed by the reviewer app.

Guidance to review

Go through a photo upload, and check a new message appears in the results queue in SQS.

Link to Jira task

https://bluesquirrel.atlassian.net/jira/software/projects/LDAT/issues/LDAT-250

barnc commented 4 years ago

(tests aren't in yet as they're waiting on removing the nock mock for the ML model that was interfering with the other tests)