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

@@ -21,8 +21,6 @@ type AssessmentCategoryDecisionSettings struct {
SyntheticDemoAssignmentsEnabled bool
}
// AssessmentCategoryReviewPins identify one exact reviewed source. The
// repository must not substitute a current opening or a different manifest.
// AssessmentCategoryDecisionRepository is bound to the finalization
// transaction. Its category lock is acquired after the caller has obtained
// C3, candidate/specialization scope, and the attempt row lock, in that order.
@@ -35,6 +33,9 @@ type AssessmentCategoryDecisionRepository interface {
candidateID uuid.UUID,
specialization domain.SpecializationCode,
) (domain.CandidateAssessmentCategory, bool, error)
// GetSyntheticCategoryReview takes the pins of one exact reviewed source.
// The repository must not substitute a current opening or a different
// manifest.
GetSyntheticCategoryReview(
ctx context.Context,
openingID uuid.UUID,