Skip to content

feat(dimensional): add dim_certificate_type to normalize certificate type hierarchy #1984

@blarghmatey

Description

@blarghmatey

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_type with surrogate key, type code, display label, and hierarchy (e.g., honor/verified/audit groupings)
  • Move certificate type classification logic out of tfact_certificate and into the dimension
  • Add certificate_type_fk to tfact_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_type model created with stable surrogate key
  • _dim_certificate_type.yml with PK uniqueness and accepted_values tests
  • certificate_type_fk added to tfact_certificate
  • Existing certificate_type string column kept for backward compatibility or migration notes added

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions