Commit 668685c
committed
Transition errored submissions to "in_review"
If all the rows have been processed but some have errors, we want to
transition the submission to an "in_review" state so that the user will
see the errors and is able to correct them on the frontend.
Note that we're allowing transition from "pending", as well as
"processed". In theory, we should only ever transition a "processing"
submission to "in_review", but at the moment there is no part of the
system that transitions a submission out of "pending"; instead the
ingest and validation is triggered whilst they are still "pending". The
plan is to update the ingest script so that it transitions the
submission to "processing" when it starts, but until that is done we
wan to be able to see the submissions flowing through the various
states.1 parent 07bf7ce commit 668685c
3 files changed
Lines changed: 23 additions & 0 deletions
File tree
- app/models
- spec/models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
20 | 33 | | |
21 | 34 | | |
22 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
0 commit comments