start transition to multiple variants per submission

This commit is contained in:
Filip Graliński 2018-07-04 16:22:10 +02:00
parent 306d9d0af6
commit 52ae6ae9a5
2 changed files with 6 additions and 0 deletions

View File

@ -302,6 +302,7 @@ outForTest repoDir submissionId (Entity testId test) = do
checksum <- liftIO $ gatherSHA1ForCollectionOfFiles [outF] checksum <- liftIO $ gatherSHA1ForCollectionOfFiles [outF]
return Out { return Out {
outSubmission=submissionId, outSubmission=submissionId,
outVariant=Nothing,
outTest=testId, outTest=testId,
outChecksum=SHA1 checksum } outChecksum=SHA1 checksum }

View File

@ -59,6 +59,10 @@ Submission
isPublic Bool default=False isPublic Bool default=False
isHidden Bool Maybe isHidden Bool Maybe
UniqueSubmissionRepoCommitChallenge repo commit challenge UniqueSubmissionRepoCommitChallenge repo commit challenge
Variant
submission SubmissionId
name Text
UniqueVariantSubmissionName submission name
Fork Fork
source SubmissionId source SubmissionId
target SubmissionId target SubmissionId
@ -77,6 +81,7 @@ Comment
text Textarea text Textarea
Out Out
submission SubmissionId submission SubmissionId
variant VariantId Maybe
test TestId test TestId
checksum SHA1 checksum SHA1
UniqueOutSubmissionTestChecksum submission test checksum UniqueOutSubmissionTestChecksum submission test checksum