fix(assessment): return confirmed categories with their basis and label demonstration categories
This commit is contained in:
1 parent
623d41b969
commit
d4903a3796
77 files changed
+1441
-288
No files matched your search
@@ -55,6 +55,14 @@ SELECT candidate_id, specialization, grade, source_attempt_id, source_review_id,
|
||||
FROM candidate_assessment_categories
|
||||
WHERE candidate_id = sqlc.arg(candidate_id) AND specialization = sqlc.arg(specialization);
|
||||
|
||||
-- name: ListCandidateAssessmentCategories :many
|
||||
SELECT candidate_id, specialization, grade, source_attempt_id, source_review_id,
|
||||
product_policy_version_id, product_policy_version, grading_policy_version_id,
|
||||
opening_id, opening_manifest_sha256, source, calibration_status, assigned_at
|
||||
FROM candidate_assessment_categories
|
||||
WHERE candidate_id = sqlc.arg(candidate_id)
|
||||
ORDER BY specialization;
|
||||
|
||||
-- name: GetSyntheticCategoryReview :one
|
||||
SELECT review.id, review.opening_id, review.category, review.source,
|
||||
review.opening_manifest_sha256, review.product_policy_version_id,
|
||||
|
||||
@@ -53,7 +53,11 @@ SELECT
|
||||
COALESCE(
|
||||
(
|
||||
SELECT jsonb_agg(
|
||||
jsonb_build_object('specialization', category.specialization, 'grade', category.grade)
|
||||
jsonb_build_object(
|
||||
'specialization', category.specialization,
|
||||
'grade', category.grade,
|
||||
'source', category.source
|
||||
)
|
||||
ORDER BY category.specialization
|
||||
)::text
|
||||
FROM candidate_assessment_categories AS category
|
||||
@@ -187,7 +191,11 @@ SELECT
|
||||
COALESCE(
|
||||
(
|
||||
SELECT jsonb_agg(
|
||||
jsonb_build_object('specialization', category.specialization, 'grade', category.grade)
|
||||
jsonb_build_object(
|
||||
'specialization', category.specialization,
|
||||
'grade', category.grade,
|
||||
'source', category.source
|
||||
)
|
||||
ORDER BY category.specialization
|
||||
)::text
|
||||
FROM candidate_assessment_categories AS category
|
||||
|
||||
Reference in new issue
Block a user