fix(demo): advance seeded candidates past onboarding and show the express summary in Russian
This commit is contained in:
1 parent
41206abbcf
commit
945ab6d6a9
9 files changed
+296
-10
No files matched your search
@@ -311,9 +311,18 @@ func (service *AttemptService) persistFinalizedAttempt(
|
||||
return nil
|
||||
}
|
||||
|
||||
// expressResultSummary is the user-facing text of a finished express run. The
|
||||
// product UI is in Russian, and the text is stored in the immutable result, so
|
||||
// a run finished before this text changed keeps the text it was stored with.
|
||||
const expressResultSummary = "Это тренировочный запуск: он не оценивает и не подтверждает уровень."
|
||||
|
||||
// expressEndedSummary is the text of an express run that expired or was left
|
||||
// unfinished. Like expressResultSummary, it is stored in the immutable result.
|
||||
const expressEndedSummary = "Тренировочный запуск завершился до окончания: он не оценивает и не подтверждает уровень."
|
||||
|
||||
func assessmentFinalizedResultPresentation(kind domain.AssessmentAttemptKind) (string, []string) {
|
||||
if kind == domain.AssessmentAttemptKindDemoExpress {
|
||||
return "This training run is educational only. It does not assess or confirm a grade.", []string{"demonstration_only"}
|
||||
return expressResultSummary, []string{"demonstration_only"}
|
||||
}
|
||||
return "", []string{"uncalibrated_thresholds", "demo_bank", "practice_not_included", "unproctored"}
|
||||
}
|
||||
@@ -411,7 +420,7 @@ func terminalAttemptResult(attempt domain.AssessmentAttempt) (AssessmentAttemptR
|
||||
switch snapshot.Kind {
|
||||
case domain.AssessmentAttemptKindDemoExpress:
|
||||
result.Outcome = domain.AssessmentAttemptOutcomeDemonstration
|
||||
result.Summary = "This training run ended before completion. It does not assess or confirm a grade."
|
||||
result.Summary = expressEndedSummary
|
||||
case domain.AssessmentAttemptKindRoot, domain.AssessmentAttemptKindCorrective:
|
||||
result.Limitations = []string{"uncalibrated_thresholds", "demo_bank", "practice_not_included", "unproctored"}
|
||||
result.Outcome = domain.AssessmentAttemptOutcomeNotDetermined
|
||||
|
||||
Reference in new issue
Block a user