fix(assessment): return confirmed categories with their basis and label demonstration categories

This commit is contained in:
shira committed 2026-10-09 21:24:24 +03:00
1 parent 623d41b969
commit d4903a3796
77 files changed
+1441 -288

No files matched your search

+5
View File
@@ -436,6 +436,7 @@ AssessmentAvailability:
specializations:
- specialization: backend
confirmed_grade: null
confirmed_basis: null
active_attempt_id: null
grades:
- grade: intern
@@ -472,6 +473,7 @@ AssessmentAvailability:
practice_required: null
- specialization: network_engineer
confirmed_grade: null
confirmed_basis: null
active_attempt_id: null
grades:
- grade: intern
@@ -4139,6 +4141,7 @@ BackendCandidateProfile:
confirmed_categories:
- specialization: backend
grade: junior
basis: synthetic_demo
confirmed_at: "2026-10-04T18:10:00Z"
attempt_id: 0192b3c4-d5e6-7f80-9a1b-2c3d4e5f6a7b
updated_at: "2026-10-05T09:30:00Z"
@@ -4378,6 +4381,7 @@ PublishedCardPreview:
- specialization: backend
grade: middle
strength: standard
basis: synthetic_demo
stack:
- postgresql
- kafka
@@ -4403,6 +4407,7 @@ OrganizationAnonymousCandidateCard:
- specialization: backend
grade: middle
strength: standard
basis: synthetic_demo
stack:
- postgresql
- kafka
+5
View File
@@ -52,6 +52,7 @@ ThreeGroups:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -87,6 +88,7 @@ ThreeGroups:
category:
specialization: frontend
grade: junior
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -183,6 +185,7 @@ MLUnavailable:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: strong
public_context:
stack:
@@ -234,6 +237,7 @@ CohortBelow30:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -287,6 +291,7 @@ Truncated:
category:
specialization: backend
grade: junior
basis: synthetic_demo
strength: standard
public_context:
stack: null
+18 -3
View File
@@ -1682,6 +1682,7 @@ AssessmentSpecializationAvailability:
required:
- specialization
- confirmed_grade
- confirmed_basis
- active_attempt_id
- grades
properties:
@@ -1692,6 +1693,11 @@ AssessmentSpecializationAvailability:
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
confirmed_basis:
description: What the confirmed grade rests on, or null exactly when `confirmed_grade` is null. `synthetic_demo` marks a demonstration category, which is not a validated measurement and must not be shown as a real confirmation.
oneOf:
- $ref: '#/EvidenceBasis'
- type: 'null'
active_attempt_id:
type:
- string
@@ -2325,11 +2331,12 @@ ProfileParallelPeriodConfirmation:
$ref: '#/ProfileExperiencePeriod'
ProfileConfirmedCategory:
type: object
description: 'A category that an assessment result confirmed: the specialization with the confirmed grade. It is read-only and derived by the server from the assessment results of the candidate; no request carries it and the profile storage holds no such column, so neither a form nor an import can write a confirmed grade. It is separate from the claims of the profile and from the self-assessed grades in `roles`.'
description: 'A category that an assessment result confirmed: the specialization with the confirmed grade. It is read-only and derived by the server from the assessment results of the candidate; no request carries it and the profile storage holds no such column, so neither a form nor an import can write a confirmed grade. It is separate from the claims of the profile and from the self-assessed grades in `roles`. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category that is not a validated measurement.'
additionalProperties: false
required:
- specialization
- grade
- basis
- confirmed_at
- attempt_id
properties:
@@ -2337,6 +2344,8 @@ ProfileConfirmedCategory:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
basis:
$ref: '#/EvidenceBasis'
confirmed_at:
$ref: '#/Timestamp'
attempt_id:
@@ -4808,16 +4817,19 @@ MatchStrength:
- strong
MatchCategory:
type: object
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization.
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which an organization must read as one and never as a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- basis
properties:
specialization:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
basis:
$ref: '#/EvidenceBasis'
MatchScore:
type: number
format: double
@@ -6783,12 +6795,13 @@ PrivacySettings:
description: Number of organizations that the candidate hides the profile from. The list is read with `ListMyHiddenOrganizations`.
CardCategory:
type: object
description: A category confirmed by assessment results, as the card shows it.
description: A category confirmed by assessment results, as the card shows it. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which is never a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- strength
- basis
properties:
specialization:
$ref: '#/SpecializationCode'
@@ -6800,6 +6813,8 @@ CardCategory:
- standard
- strong
description: Coarse strength of the authoritative confirmation.
basis:
$ref: '#/EvidenceBasis'
CardSelfAssessment:
type: object
description: Candidate-declared specialization and optional grade. This is never an assessment result.
@@ -1845,6 +1845,7 @@ schemas:
required:
- specialization
- confirmed_grade
- confirmed_basis
- active_attempt_id
- grades
properties:
@@ -1855,6 +1856,15 @@ schemas:
oneOf:
- $ref: "./catalog_schemas.yml#/schemas/GradeCode"
- type: "null"
confirmed_basis:
description: >-
What the confirmed grade rests on, or null exactly when
`confirmed_grade` is null. `synthetic_demo` marks a demonstration
category, which is not a validated measurement and must not be shown
as a real confirmation.
oneOf:
- $ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
- type: "null"
active_attempt_id:
type:
- string
@@ -593,11 +593,14 @@ schemas:
from the assessment results of the candidate; no request carries it
and the profile storage holds no such column, so neither a form nor an
import can write a confirmed grade. It is separate from the claims of
the profile and from the self-assessed grades in `roles`.
the profile and from the self-assessed grades in `roles`. `basis` says
what the grade rests on; `synthetic_demo` marks a demonstration category
that is not a validated measurement.
additionalProperties: false
required:
- specialization
- grade
- basis
- confirmed_at
- attempt_id
properties:
@@ -605,6 +608,8 @@ schemas:
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
basis:
$ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
confirmed_at:
$ref: "./common_schemas.yml#/schemas/Timestamp"
attempt_id:
@@ -236,16 +236,21 @@ schemas:
type: object
description: >-
A confirmed category. Its specialization must equal the enclosing
match entry's specialization.
match entry's specialization. `basis` says what the grade rests on;
`synthetic_demo` marks a demonstration category, which an organization
must read as one and never as a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- basis
properties:
specialization:
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
basis:
$ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
MatchScore:
type: number
format: double
@@ -315,12 +315,16 @@ schemas:
The list is read with `ListMyHiddenOrganizations`.
CardCategory:
type: object
description: A category confirmed by assessment results, as the card shows it.
description: >-
A category confirmed by assessment results, as the card shows it.
`basis` says what the grade rests on; `synthetic_demo` marks a
demonstration category, which is never a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- strength
- basis
properties:
specialization:
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
@@ -332,6 +336,8 @@ schemas:
- standard
- strong
description: Coarse strength of the authoritative confirmation.
basis:
$ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
CardSelfAssessment:
type: object
description: Candidate-declared specialization and optional grade. This is never an assessment result.