-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrc.txt
60 lines (42 loc) · 1.71 KB
/
crc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SCENARIO: Upload a zip file with entrance exam source code.
-----------------------------------------------------------
SubmissionController#create
R: Accepts uploaded files from HTTP request params
R: Redirects to status page on success, displays errors on upload form otherwise
C: ExamUploader
C*: UploadStatus
ExamUploader
R: Uploads zip file to S3
R: Generates random key on successful upload
R: Sets submission status to 'submitted' on succesful upload
R: Reports errors on upload failure
C: UploadStatus
C: Submission
(I): TokenPhrase
UploadStatus
R: Receives submission keyphrase on successful upload
R: Receives error messages on failed upload
R: Executes success/failure callbacks
SCENARIO: Check the status of a submitted exam
----------------------------------------------
SubmissionController#show
R: Looks up submission by keyphrase
R: Renders view w. status and notes if key matches
R: Renders a "submission not found" error if key does not match
C: Submission
Submission
R: Handles persistence and retrieval of submission status and notes
SCENARIO: Update the status of a submitted exam
----------------------------------------------
Implement me!
SCENARIO: Download a submitted zip file
----------------------------------------------
So simple it doesn't make sense to draw up its own cards.
Maybe roll this in with the 'view the status of a submission' and
tweak wording to be more general?
SCENARIO: Cancel a submission
----------------------------------------------
Implement me!
SCENARIO: View all submissions and their status
----------------------------------------------
Implement me! (Don't forget protection here)