- Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Context
PR #1868 added tfact_certificate which includes inline certificate type classification logic. Reviewer suggested this should be extracted into a dim_certificate_type dimension.
What
- Create
dim_certificate_typewith surrogate key, type code, display label, and hierarchy (e.g., honor/verified/audit groupings) - Move certificate type classification logic out of
tfact_certificateand into the dimension - Add
certificate_type_fktotfact_certificate
Current State
Certificate type logic currently lives in tfact_certificate.sql (see type classification CTE). The fact table contains certificate_type as a raw string.
Acceptance Criteria
-
dim_certificate_typemodel created with stable surrogate key -
_dim_certificate_type.ymlwith PK uniqueness and accepted_values tests -
certificate_type_fkadded totfact_certificate - Existing
certificate_typestring column kept for backward compatibility or migration notes added
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request