Commit 73ad359
committed
fix: ignore deleted files in submissions
If a file is deleted from disk somehow
after the student response has been submitted,
the api will still respond with metadata about these files.
However, the download url will be empty,
resulting in broken files in the frontend ui:
the preview pane will display an "Unknown error",
and downloading the files will result in downloaded files
with the correct file names but invalid content.
The student view in ORA handles these deleted files
by simply ignoring them and not displaying them to the user.
So here we do the same:
simply filter out any deleted files from the api.
Private-ref: https://tasks.opencraft.com/browse/BB-97811 parent 715cc60 commit 73ad359
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
| |||
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
68 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
69 | 82 | | |
70 | 83 | | |
71 | 84 | | |
| |||
0 commit comments