-
Notifications
You must be signed in to change notification settings - Fork 3
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
Tribal Section 1 Parsing & Validation #2742
Conversation
- Added support for tribal parsing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elipe17 this is in pretty good shape. some testing notes and questions below. You'll notice that most of the comments reference other clean-up tickets. Let me know if it makes sense to keep those fixes in other tix. The only exception might be CASE_NUMBER
.
Header/Trailer
- tribes will often space-fill or zero-fill the
state_fips
. space-filling raises an error message:state_fips is required but a value was not provided.
- currently not storing
FIPS_CODE
from header (state_fips
) ❓ - currently not storing
TRIBE_CODE
from header (tribe_code
) ❓ - how will OFA staff who query the db know which STTs each record is associated with? seems like we need the abovementioned fields in every schema? possibly a new ticket? ❓
T1, T2, and T3
- verified that tribal section 1 files have T1,T2, and T3 records have length == 122. this was implemented here ✔️
- records with
RPT_MONTH_YEAR
needs better validator for YYYY. updatedateYearIsLargerThan()
validator logic forRPT_MONTH_YEAR
#2793 CASE_NUMBER
validator needs an update to handle edgy case numbers. see comment hereCOUNTY_FIPS_CODE
validation correct but also related to a bug in FTANF executables that erroneously drops leading zeros. As tech lead, I need validation checks to be consistent with FTANF validation checks. #2749DATE_OF_BIRTH
needs logic from As an STT, I need to know if there are issues with the DOBs reported in my data files #2746SSN
needs logic from UpdatevalidateSSN
validator to allow for all 0s,1s,...,9s as valid possible values except in cat3 scenarios. #2771- a few suggestions/comments related to friendly names and range of values I missed.
for @reitermb --please double check that these are captured in the hackmd:
-
cat 2 error messages look like the following ([Error Audit] Category 2 error messages clean-up #2693):
2 does not match 1.
3 is not in [1, 2].
3 is not larger or equal to 1 and smaller or equal to 2.
family exempt time limits is required but a value was not provided.
04 is not in range [0, 3]. or 04 is not in range [5, 9]. or 04 is not in range [11, 19]. or 04 does not match 99.
-
cat 3 error mesages look like the following ([Error Audit] Category 3 error messages clean-up #2792):
if cash amount :502 validator1 passed then number of months 0 is not larger than 0.
if child care amount :3 validator1 passed then children covered 0 is not larger than 0.
if sanction reduction amount :3 validator1 passed then work requirement sanction 0 is not in (1, 2).
The sum of ('amount of food stamp assistance', 'amount of subsidized child care', 'cash amount', 'child care amount', 'transportation amount', 'transition services amount', 'other amount') is not larger than 0.
if family affiliation :1 validator1 passed then work participation status 04 is not in range [1, 3]. or 04 is not in range [5, 9]. or 04 is not in range [11, 19]. or 04 does not match 99.
If family affiliation ==2 and citizenship status==1 or 2, then social security number - ssn != 000000000 -- 999999999.
Co-authored-by: Alex P. <63075587+ADPennington@users.noreply.github.com>
Co-authored-by: Alex P. <63075587+ADPennington@users.noreply.github.com>
Co-authored-by: Alex P. <63075587+ADPennington@users.noreply.github.com>
Co-authored-by: Alex P. <63075587+ADPennington@users.noreply.github.com>
…into 1114-tribal-s1
@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. |
sounds good thank you @elipe17. we may need to separate new tickets:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elipe17 this is ready for approval as soon as this comment is addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you @elipe17 🚀
Summary of Changes
Pull request closes Tribal TANF Active Data (01) File Parsing - As a data analyst, I want my data files to be parsed so that my submission can be validated/accepted by TDP #1114
How to Test
ADS.E2J.FTP1.TS142
andtribal_section_1_inconsistency.txt
.Deliverables
More details on how deliverables herein are assessed included here.
Deliverable 1: Accepted Features
Checklist of ACs:
Deliverable 2: Tested Code
CodeCov Report
comment in PR)CodeCov Report
comment in PR)Deliverable 3: Properly Styled Code
Deliverable 4: Accessible
iamjolly
andttran-hub
using Accessibility Insights reveal any errors introduced in this PR?Deliverable 5: Deployed
Deliverable 6: Documented
Deliverable 7: Secure
Deliverable 8: User Research
Research product(s) clearly articulate(s):