Skip to content

Standardized data models #5

@jjackson12

Description

@jjackson12

Right now, the person and/or household models are not uniformly defined. It's painful having to map field names from module to module, and now I need to add a field to one place (vr_program_id) and that will require modifying several components in unintuitive places.

There should be a standardized Person model and a Household model. These should be passed around instead of miscellaneous objects/json. This will make life better. There will be a models.py file that is shared by all modules. It can translate the schema from different formats (BigQuery, NCOA data, Mailer formatting, etc) all in one place, and adding/removing output data will be easy since it'll all be stored in the same object.

There also should be a List model that is built around a collection of Persons, that can generate output lists as well as handle functionality for filtering and more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions