raft-tech / TANF-app

Repo for development of a new TANF Data Reporting System
Other
16 stars 3 forks source link

Add `STT_CODE` (or location information) to tanf/tribal t1-t7 and m1-m7 records in the django admin #2796

Closed ADPennington closed 6 months ago

ADPennington commented 10 months ago

Description

TDRS stores the state_fips (for states and territories) and tribe_code (for tribes) from the header record with each data record (T1,...T7,M1,...,M7) in the db. This helps OFA analysts understand which STT is associated with each record. See example below of the T6 db table from TDRS.

T6_sttcode

This is currently not happening in TDP. This ticket was created in response to the comment below:

@ADPennington I updated based on your review. I think all the validator changes should live in those tickets you called out. That way we can update all sections for programs in one go. I would also like to make the fips_code/tribe_code addition to the models/documents it's own ticket. Adding those to the models that are missing them will create a new migration. The migration generated will be a big one since it will have to impute a new column and value for the DB tables that don't have it. Those tables are pretty big which will cause a reasonably long running migration.

Originally posted by @ADPennington in https://github.com/raft-tech/TANF-app/issues/2742#issuecomment-1871458505

Acceptance Criteria

Tasks

Notes

Supporting documentation

ADPennington commented 6 months ago

captured in #2915