feat(assessment): assign the demonstration category and keep result history

This commit is contained in:
shira committed 2026-10-09 00:35:13 +03:00
1 parent b3c6dc870b
commit 8277133712
61 files changed
+4338 -268

No files matched your search

+4
View File
@@ -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,