Skip to content

Commit

Permalink
Merge pull request #3451 from raft-tech/hotfix/3450-rename-gender-to-sex
Browse files Browse the repository at this point in the history
Hotfix/3450 rename gender to sex
  • Loading branch information
jtimpe authored Feb 6, 2025
2 parents 294857a + a655e92 commit 3135a48
Show file tree
Hide file tree
Showing 23 changed files with 125 additions and 67 deletions.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ tasks:
desc: Open a shell in the backend container
dir: tdrs-backend
cmds:
- docker compose -f docker-compose.yml exec web sh
- docker compose -f docker-compose.yml exec web bash

backend-shell:
desc: Open a Django shell in the backend container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ In discussing error troubleshooting, we also discussed new staff training. Curre
But, most participants wanted a way to know where the error was occuring—for example what row or case.

-[It’s] helpful to know what specific value was submitted and what is acceptable. If it’s like a million records that’s obviously a problem.”
- “If comes back that specific, gender incorrect, as long as it tell us which case it was for then they could correct pretty quickly, but doesn’t show what actual case it was on”
- “If comes back that specific, sex incorrect, as long as it tell us which case it was for then they could correct pretty quickly, but doesn’t show what actual case it was on”

**Project impacts**

Expand Down
4 changes: 2 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/ssp/m2.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@
),
Field(
item="31",
name='GENDER',
friendly_name="Gender",
name='SEX',
friendly_name="Sex",
type='number',
startIndex=44,
endIndex=45,
Expand Down
8 changes: 4 additions & 4 deletions tdrs-backend/tdpservice/parsers/schema_defs/ssp/m3.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@
),
Field(
item="64",
name='GENDER',
friendly_name="Gender",
name='SEX',
friendly_name="Sex",
type='number',
startIndex=43,
endIndex=44,
Expand Down Expand Up @@ -550,8 +550,8 @@
),
Field(
item="64",
name='GENDER',
friendly_name="Gender",
name='SEX',
friendly_name="Sex",
type='number',
startIndex=84,
endIndex=85,
Expand Down
4 changes: 2 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/ssp/m5.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@
),
Field(
item="17",
name="GENDER",
friendly_name="Gender",
name="SEX",
friendly_name="Sex",
type="number",
startIndex=43,
endIndex=44,
Expand Down
4 changes: 2 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/tanf/t2.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@
),
Field(
item="35",
name="GENDER",
friendly_name="Gender",
name="SEX",
friendly_name="Sex",
type="number",
startIndex=44,
endIndex=45,
Expand Down
8 changes: 4 additions & 4 deletions tdrs-backend/tdpservice/parsers/schema_defs/tanf/t3.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@
),
Field(
item="71",
name="GENDER",
friendly_name="Gender",
name="SEX",
friendly_name="Sex",
type="number",
startIndex=43,
endIndex=44,
Expand Down Expand Up @@ -545,8 +545,8 @@
),
Field(
item="71",
name="GENDER",
friendly_name="Gender",
name="SEX",
friendly_name="Sex",
type="number",
startIndex=84,
endIndex=85,
Expand Down
4 changes: 2 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/tanf/t5.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@
),
Field(
item="18",
name="GENDER",
friendly_name="Gender",
name="SEX",
friendly_name="Sex",
type="number",
startIndex=43,
endIndex=44,
Expand Down
4 changes: 2 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t2.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@
),
Field(
item="35",
name="GENDER",
friendly_name="Gender",
name="SEX",
friendly_name="Sex",
type="number",
startIndex=44,
endIndex=45,
Expand Down
8 changes: 4 additions & 4 deletions tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t3.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@
),
Field(
item="70",
name="GENDER",
friendly_name="Gender",
name="SEX",
friendly_name="Sex",
type="number",
startIndex=43,
endIndex=44,
Expand Down Expand Up @@ -543,8 +543,8 @@
),
Field(
item="70",
name="GENDER",
friendly_name="Gender",
name="SEX",
friendly_name="Sex",
type="number",
startIndex=84,
endIndex=85,
Expand Down
4 changes: 2 additions & 2 deletions tdrs-backend/tdpservice/parsers/schema_defs/tribal_tanf/t5.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@
),
Field(
item="18",
name="GENDER",
friendly_name="Gender",
name="SEX",
friendly_name="Sex",
type="number",
startIndex=43,
endIndex=44,
Expand Down
18 changes: 9 additions & 9 deletions tdrs-backend/tdpservice/parsers/test/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class Meta:
RACE_BLACK = 1
RACE_HAWAIIAN = 1
RACE_WHITE = 1
GENDER = 1
SEX = 1
FED_OASDI_PROGRAM = 1
FED_DISABILITY_STATUS = 1
DISABLED_TITLE_XIVAPDT = 1
Expand Down Expand Up @@ -257,7 +257,7 @@ class Meta:
RACE_BLACK = 1
RACE_HAWAIIAN = 1
RACE_WHITE = 1
GENDER = 1
SEX = 1
RECEIVE_NONSSA_BENEFITS = 1
RECEIVE_SSI = 1
RELATIONSHIP_HOH = "01"
Expand Down Expand Up @@ -310,7 +310,7 @@ class Meta:
RACE_BLACK = 1
RACE_HAWAIIAN = 1
RACE_WHITE = 1
GENDER = 1
SEX = 1
REC_OASDI_INSURANCE = 1
REC_FEDERAL_DISABILITY = 1
REC_AID_TOTALLY_DISABLED = 1
Expand Down Expand Up @@ -446,7 +446,7 @@ class Meta:
RACE_BLACK = 1
RACE_HAWAIIAN = 1
RACE_WHITE = 1
GENDER = 1
SEX = 1
FED_OASDI_PROGRAM = 1
FED_DISABILITY_STATUS = 1
DISABLED_TITLE_XIVAPDT = 1
Expand Down Expand Up @@ -507,7 +507,7 @@ class Meta:
RACE_BLACK = 1
RACE_HAWAIIAN = 1
RACE_WHITE = 1
GENDER = 1
SEX = 1
RECEIVE_NONSSA_BENEFITS = 1
RECEIVE_SSI = 1
RELATIONSHIP_HOH = "01"
Expand Down Expand Up @@ -560,7 +560,7 @@ class Meta:
RACE_BLACK = 1
RACE_HAWAIIAN = 1
RACE_WHITE = 1
GENDER = 1
SEX = 1
REC_OASDI_INSURANCE = 1
REC_FEDERAL_DISABILITY = 1
REC_AID_TOTALLY_DISABLED = 1
Expand Down Expand Up @@ -692,7 +692,7 @@ class Meta:
RACE_BLACK = 1
RACE_HAWAIIAN = 1
RACE_WHITE = 1
GENDER = 1
SEX = 1
FED_OASDI_PROGRAM = 1
FED_DISABILITY_STATUS = 1
DISABLED_TITLE_XIVAPDT = 1
Expand Down Expand Up @@ -768,7 +768,7 @@ class Meta:
RACE_BLACK = 1
RACE_HAWAIIAN = 1
RACE_WHITE = 1
GENDER = 1
SEX = 1
RECEIVE_NONSSI_BENEFITS = 1
RECEIVE_SSI = 1
RELATIONSHIP_HOH = "01"
Expand Down Expand Up @@ -821,7 +821,7 @@ class Meta:
RACE_BLACK = 1
RACE_HAWAIIAN = 1
RACE_WHITE = 1
GENDER = 1
SEX = 1
REC_OASDI_INSURANCE = 1
REC_FEDERAL_DISABILITY = 1
REC_AID_TOTALLY_DISABLED = 1
Expand Down
6 changes: 3 additions & 3 deletions tdrs-backend/tdpservice/parsers/test/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,14 +575,14 @@ def test_parse_tanf_section1_datafile_t3s(small_tanf_section1_datafile, dfs):
assert t3_1.RPT_MONTH_YEAR == 202010
assert t3_1.CASE_NUMBER == '11111111112'
assert t3_1.FAMILY_AFFILIATION == 1
assert t3_1.GENDER == 2
assert t3_1.SEX == 2
assert t3_1.EDUCATION_LEVEL == '98'

t3_5 = t3_models[4]
assert t3_5.RPT_MONTH_YEAR == 202010
assert t3_5.CASE_NUMBER == '11111111151'
assert t3_5.FAMILY_AFFILIATION == 1
assert t3_5.GENDER == 1
assert t3_5.SEX == 1
assert t3_5.EDUCATION_LEVEL == '98'


Expand Down Expand Up @@ -863,7 +863,7 @@ def test_parse_small_tanf_section2_file(small_tanf_section2_file, dfs):
assert t4.DISPOSITION == 1
assert t4.REC_SUB_CC == 3

assert t5.GENDER == 2
assert t5.SEX == 2
assert t5.AMOUNT_UNEARNED_INCOME == '0000'


Expand Down
6 changes: 3 additions & 3 deletions tdrs-backend/tdpservice/search_indexes/documents/ssp.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Django:
'RACE_BLACK',
'RACE_HAWAIIAN',
'RACE_WHITE',
'GENDER',
'SEX',
'FED_OASDI_PROGRAM',
'FED_DISABILITY_STATUS',
'DISABLED_TITLE_XIVAPDT',
Expand Down Expand Up @@ -189,7 +189,7 @@ class Django:
'RACE_BLACK',
'RACE_HAWAIIAN',
'RACE_WHITE',
'GENDER',
'SEX',
'RECEIVE_NONSSI_BENEFITS',
'RECEIVE_SSI',
'RELATIONSHIP_HOH',
Expand Down Expand Up @@ -262,7 +262,7 @@ class Django:
'RACE_BLACK',
'RACE_HAWAIIAN',
'RACE_WHITE',
'GENDER',
'SEX',
'REC_OASDI_INSURANCE',
'REC_FEDERAL_DISABILITY',
'REC_AID_TOTALLY_DISABLED',
Expand Down
6 changes: 3 additions & 3 deletions tdrs-backend/tdpservice/search_indexes/documents/tanf.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Django:
'RACE_BLACK',
'RACE_HAWAIIAN',
'RACE_WHITE',
'GENDER',
'SEX',
'FED_OASDI_PROGRAM',
'FED_DISABILITY_STATUS',
'DISABLED_TITLE_XIVAPDT',
Expand Down Expand Up @@ -191,7 +191,7 @@ class Django:
'RACE_BLACK',
'RACE_HAWAIIAN',
'RACE_WHITE',
'GENDER',
'SEX',
'RECEIVE_NONSSA_BENEFITS',
'RECEIVE_SSI',
'RELATIONSHIP_HOH',
Expand Down Expand Up @@ -266,7 +266,7 @@ class Django:
'RACE_BLACK',
'RACE_HAWAIIAN',
'RACE_WHITE',
'GENDER',
'SEX',
'REC_OASDI_INSURANCE',
'REC_FEDERAL_DISABILITY',
'REC_AID_TOTALLY_DISABLED',
Expand Down
6 changes: 3 additions & 3 deletions tdrs-backend/tdpservice/search_indexes/documents/tribal.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Django:
'RACE_BLACK',
'RACE_HAWAIIAN',
'RACE_WHITE',
'GENDER',
'SEX',
'FED_OASDI_PROGRAM',
'FED_DISABILITY_STATUS',
'DISABLED_TITLE_XIVAPDT',
Expand Down Expand Up @@ -176,7 +176,7 @@ class Django:
'RACE_BLACK',
'RACE_HAWAIIAN',
'RACE_WHITE',
'GENDER',
'SEX',
'RECEIVE_NONSSA_BENEFITS',
'RECEIVE_SSI',
'RELATIONSHIP_HOH',
Expand Down Expand Up @@ -248,7 +248,7 @@ class Django:
'RACE_BLACK',
'RACE_HAWAIIAN',
'RACE_WHITE',
'GENDER',
'SEX',
'REC_OASDI_INSURANCE',
'REC_FEDERAL_DISABILITY',
'REC_AID_TOTALLY_DISABLED',
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 3135a48

Please sign in to comment.