Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store enumerated iasWorld column value crosswalks using seeds #599

Open
jeancochrane opened this issue Sep 16, 2024 · 0 comments
Open

Store enumerated iasWorld column value crosswalks using seeds #599

jeancochrane opened this issue Sep 16, 2024 · 0 comments
Labels
dbt Related to dbt (tests, docs, schema, etc)

Comments

@jeancochrane
Copy link
Contributor

We should check our iasWorld docs for enumerated values with human-readable text, e.g. permit improvement codes. Where possible, we should extract the values out into a seed in the ccao schema that we can use as a crosswalk between codes and their human-readable values.

Adapted from https://github.com/ccao-data/data-architecture/pull/597/files#r1761797258:

  1. Create a unified schema for storing enumerated column values as seeds
  2. Move these existing values to said schema and out of the docs

As a rule of thumb, I'd say anytime a column has more than 5 enumerated values then the values should live in the seed(s), with a pointer from the docs to the seed(s). If <= 5 values, let's keep the enumerated value in the docs and add it to the seed(s).

@jeancochrane jeancochrane added the dbt Related to dbt (tests, docs, schema, etc) label Sep 16, 2024
@jeancochrane jeancochrane changed the title Store enumerated column values as seeds Store enumerated iasWorld column values as seeds Sep 16, 2024
@jeancochrane jeancochrane changed the title Store enumerated iasWorld column values as seeds Store enumerated iasWorld column value crosswalks using seeds Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dbt Related to dbt (tests, docs, schema, etc)
Projects
None yet
Development

No branches or pull requests

1 participant