feat(assessment): assign the demonstration category and keep result history
This commit is contained in:
1 parent
b3c6dc870b
commit
8277133712
61 files changed
+4338
-268
No files matched your search
@@ -32,6 +32,10 @@ func newAssessmentHandler(
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("bootstrap.newAssessmentHandler - create pool: %w", err)
|
||||
}
|
||||
if settings.AssessmentDemoCategoriesEnabled {
|
||||
logger.Warn("synthetic demonstration categories are enabled; never on a production stand",
|
||||
slog.String("setting", "ASSESSMENT_DEMO_CATEGORIES_ENABLED"))
|
||||
}
|
||||
transactor := postgres.NewTransactor(pool)
|
||||
service, err := assessment.NewAttemptServiceWithCategorySettings(
|
||||
transactor,
|
||||
|
||||
Reference in new issue
Block a user