feat(assessment): watermark the task text of real attempts
This commit is contained in:
1 parent
24b64d698a
commit
c975a0d506
57 files changed
+2429
-92
No files matched your search
@@ -1387,7 +1387,8 @@ type AssessmentCorrectiveAttempt struct {
|
||||
// otherwise.
|
||||
CurrentItem NilAssessmentItem `json:"current_item"`
|
||||
// Practices in the order assigned by the mode policy. The list exposes verdicts only after submission.
|
||||
Practices []AssessmentPractice `json:"practices"`
|
||||
Practices []AssessmentPractice `json:"practices"`
|
||||
Watermark OptAssessmentWatermark `json:"watermark"`
|
||||
}
|
||||
|
||||
// GetID returns the value of ID.
|
||||
@@ -1480,6 +1481,11 @@ func (s *AssessmentCorrectiveAttempt) GetPractices() []AssessmentPractice {
|
||||
return s.Practices
|
||||
}
|
||||
|
||||
// GetWatermark returns the value of Watermark.
|
||||
func (s *AssessmentCorrectiveAttempt) GetWatermark() OptAssessmentWatermark {
|
||||
return s.Watermark
|
||||
}
|
||||
|
||||
// SetID sets the value of ID.
|
||||
func (s *AssessmentCorrectiveAttempt) SetID(val uuid.UUID) {
|
||||
s.ID = val
|
||||
@@ -1570,6 +1576,11 @@ func (s *AssessmentCorrectiveAttempt) SetPractices(val []AssessmentPractice) {
|
||||
s.Practices = val
|
||||
}
|
||||
|
||||
// SetWatermark sets the value of Watermark.
|
||||
func (s *AssessmentCorrectiveAttempt) SetWatermark(val OptAssessmentWatermark) {
|
||||
s.Watermark = val
|
||||
}
|
||||
|
||||
// Start a corrective real assessment at a lower target grade in the chain rooted at root_attempt_id.
|
||||
// The server validates that this grade is strictly below the preceding grade and that the chain
|
||||
// remains within its existing deadline and quota. chain_deadline is derived from the root attempt and
|
||||
@@ -2172,7 +2183,8 @@ type AssessmentExpressAttempt struct {
|
||||
// otherwise.
|
||||
CurrentItem NilAssessmentItem `json:"current_item"`
|
||||
// Practices in the order assigned by the mode policy. The list exposes verdicts only after submission.
|
||||
Practices []AssessmentPractice `json:"practices"`
|
||||
Practices []AssessmentPractice `json:"practices"`
|
||||
Watermark OptAssessmentWatermark `json:"watermark"`
|
||||
}
|
||||
|
||||
// GetID returns the value of ID.
|
||||
@@ -2265,6 +2277,11 @@ func (s *AssessmentExpressAttempt) GetPractices() []AssessmentPractice {
|
||||
return s.Practices
|
||||
}
|
||||
|
||||
// GetWatermark returns the value of Watermark.
|
||||
func (s *AssessmentExpressAttempt) GetWatermark() OptAssessmentWatermark {
|
||||
return s.Watermark
|
||||
}
|
||||
|
||||
// SetID sets the value of ID.
|
||||
func (s *AssessmentExpressAttempt) SetID(val uuid.UUID) {
|
||||
s.ID = val
|
||||
@@ -2355,6 +2372,11 @@ func (s *AssessmentExpressAttempt) SetPractices(val []AssessmentPractice) {
|
||||
s.Practices = val
|
||||
}
|
||||
|
||||
// SetWatermark sets the value of Watermark.
|
||||
func (s *AssessmentExpressAttempt) SetWatermark(val OptAssessmentWatermark) {
|
||||
s.Watermark = val
|
||||
}
|
||||
|
||||
// Explicitly start the short training run. It has no specialization or target grade, uses its separate
|
||||
// demo policy, and does not consume a real-assessment attempt.
|
||||
// Ref: #/components/schemas/AssessmentExpressAttemptCreate
|
||||
@@ -4003,7 +4025,8 @@ type AssessmentQualifiedAttempt struct {
|
||||
// otherwise.
|
||||
CurrentItem NilAssessmentItem `json:"current_item"`
|
||||
// Practices in the order assigned by the mode policy. The list exposes verdicts only after submission.
|
||||
Practices []AssessmentPractice `json:"practices"`
|
||||
Practices []AssessmentPractice `json:"practices"`
|
||||
Watermark OptAssessmentWatermark `json:"watermark"`
|
||||
}
|
||||
|
||||
// GetID returns the value of ID.
|
||||
@@ -4096,6 +4119,11 @@ func (s *AssessmentQualifiedAttempt) GetPractices() []AssessmentPractice {
|
||||
return s.Practices
|
||||
}
|
||||
|
||||
// GetWatermark returns the value of Watermark.
|
||||
func (s *AssessmentQualifiedAttempt) GetWatermark() OptAssessmentWatermark {
|
||||
return s.Watermark
|
||||
}
|
||||
|
||||
// SetID sets the value of ID.
|
||||
func (s *AssessmentQualifiedAttempt) SetID(val uuid.UUID) {
|
||||
s.ID = val
|
||||
@@ -4186,6 +4214,11 @@ func (s *AssessmentQualifiedAttempt) SetPractices(val []AssessmentPractice) {
|
||||
s.Practices = val
|
||||
}
|
||||
|
||||
// SetWatermark sets the value of Watermark.
|
||||
func (s *AssessmentQualifiedAttempt) SetWatermark(val OptAssessmentWatermark) {
|
||||
s.Watermark = val
|
||||
}
|
||||
|
||||
// Start a real assessment for a specialization and target grade, with the task language. The candidate
|
||||
// comes from the session. The server chooses demo_basic or adaptive and fixes the policy, bank, and
|
||||
// algorithm versions. Unknown fields such as `mode`, `seed`, or `score` are rejected.
|
||||
@@ -5611,6 +5644,30 @@ func (s *AssessmentVersions) SetAlgorithmVersion(val AssessmentVersionLabel) {
|
||||
s.AlgorithmVersion = val
|
||||
}
|
||||
|
||||
// Visible mark of a real attempt. The client shows `code` with the current time as a faint tile over
|
||||
// the task screen, so that a screenshot or a photo of the screen can be traced back to the attempt by
|
||||
// an operator. The code is a keyed pseudonym derived on the server: it carries no name, contact, or
|
||||
// identifier of the account, and it cannot be computed without the server secret. The task text of
|
||||
// such an attempt also carries an invisible mark and interchangeable wordings chosen by the same
|
||||
// secret; they change neither the meaning of a task nor its reference answer, and the client keeps the
|
||||
// invisible characters out of the accessibility tree. Training runs (`demo_express`) carry no
|
||||
// watermark. It is evidence for a manual review and an appeal, never an automatic decision.
|
||||
// Ref: #/components/schemas/AssessmentWatermark
|
||||
type AssessmentWatermark struct {
|
||||
// Two groups of five symbols of Crockford base32, such as `7K3QD-9XM2T`.
|
||||
Code string `json:"code"`
|
||||
}
|
||||
|
||||
// GetCode returns the value of Code.
|
||||
func (s *AssessmentWatermark) GetCode() string {
|
||||
return s.Code
|
||||
}
|
||||
|
||||
// SetCode sets the value of Code.
|
||||
func (s *AssessmentWatermark) SetCode(val string) {
|
||||
s.Code = val
|
||||
}
|
||||
|
||||
// Raw score of a demo_basic attempt and the pass mark of the recorded basic grading policy. The pass
|
||||
// mark comes from that policy version and never from the handler.
|
||||
// Ref: #/components/schemas/BasicScore
|
||||
@@ -21811,6 +21868,52 @@ func (o OptAssessmentCategoryDecisionView) Or(d AssessmentCategoryDecisionView)
|
||||
return d
|
||||
}
|
||||
|
||||
// NewOptAssessmentWatermark returns new OptAssessmentWatermark with value set to v.
|
||||
func NewOptAssessmentWatermark(v AssessmentWatermark) OptAssessmentWatermark {
|
||||
return OptAssessmentWatermark{
|
||||
Value: v,
|
||||
Set: true,
|
||||
}
|
||||
}
|
||||
|
||||
// OptAssessmentWatermark is optional AssessmentWatermark.
|
||||
type OptAssessmentWatermark struct {
|
||||
Value AssessmentWatermark
|
||||
Set bool
|
||||
}
|
||||
|
||||
// IsSet returns true if OptAssessmentWatermark was set.
|
||||
func (o OptAssessmentWatermark) IsSet() bool { return o.Set }
|
||||
|
||||
// Reset unsets value.
|
||||
func (o *OptAssessmentWatermark) Reset() {
|
||||
var v AssessmentWatermark
|
||||
o.Value = v
|
||||
o.Set = false
|
||||
}
|
||||
|
||||
// SetTo sets value to v.
|
||||
func (o *OptAssessmentWatermark) SetTo(v AssessmentWatermark) {
|
||||
o.Set = true
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// Get returns value and boolean that denotes whether value was set.
|
||||
func (o OptAssessmentWatermark) Get() (v AssessmentWatermark, ok bool) {
|
||||
if !o.Set {
|
||||
return v, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// Or returns value if set, or given parameter if does not.
|
||||
func (o OptAssessmentWatermark) Or(d AssessmentWatermark) AssessmentWatermark {
|
||||
if v, ok := o.Get(); ok {
|
||||
return v
|
||||
}
|
||||
return d
|
||||
}
|
||||
|
||||
// NewOptCandidateSalaryCompatibility returns new OptCandidateSalaryCompatibility with value set to v.
|
||||
func NewOptCandidateSalaryCompatibility(v CandidateSalaryCompatibility) OptCandidateSalaryCompatibility {
|
||||
return OptCandidateSalaryCompatibility{
|
||||
|
||||
Reference in new issue
Block a user