feat(assessment): record capture hints and keep one window per attempt
This commit is contained in:
1 parent
c975a0d506
commit
bb917bf62e
108 files changed
+6649
-139
No files matched your search
@@ -24,6 +24,8 @@ type AssessmentReviewInputs struct {
|
||||
ClientFocusLossMS int64
|
||||
ClientClipboardCount int32
|
||||
ClientFullscreenExit int32
|
||||
ClientScreenshotKeys int32
|
||||
ClientDevtoolsOpens int32
|
||||
}
|
||||
|
||||
// AssessmentDuplicateQuery selects the pairs of attempts that share answers.
|
||||
@@ -53,6 +55,17 @@ type AssessmentDuplicatePair struct {
|
||||
|
||||
type AssessmentSignalRepositories interface {
|
||||
AssessmentSignals() AssessmentSignalRepository
|
||||
AssessmentWorkLeases() AssessmentWorkLeaseRepository
|
||||
}
|
||||
|
||||
// AssessmentWorkLeaseRepository keeps the hold of the single active work
|
||||
// session of a real attempt. The caller holds the row lock of the attempt, so
|
||||
// the lease of an attempt is read and written by one transaction at a time.
|
||||
type AssessmentWorkLeaseRepository interface {
|
||||
// Get returns the lease; found is false when the attempt never had one.
|
||||
Get(ctx context.Context, attemptID domain.AssessmentAttemptID) (lease domain.AssessmentWorkLease, found bool, err error)
|
||||
// Save stores the lease, replacing the previous one of the attempt.
|
||||
Save(ctx context.Context, lease domain.AssessmentWorkLease) error
|
||||
}
|
||||
|
||||
// AssessmentSignalRepository persists event metadata and the immutable
|
||||
|
||||
Reference in new issue
Block a user