Skip to content

Commit

Permalink
Merge pull request #197 from MITLibraries/HRQB-54-add-employee-ethnicity
Browse files Browse the repository at this point in the history
HRQB 54 - add employee ethnicity
  • Loading branch information
ghukill authored Oct 7, 2024
2 parents 3406d46 + 12947a6 commit 1d8fc24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions hrqb/tasks/employees.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def get_dataframe(self) -> pd.DataFrame:
"office_address": "Work Address Office",
"office_phone": "Work Phone",
"home_phone": "Cell Phone Number",
"ethnic_origin": "Ethnicity",
"emergency_contact_name": "Emergency Contact Name",
"emergency_contact_relation": "Emergency Contact Relationship",
"emergency_contact_email": "Emergency Contact Email",
Expand Down
2 changes: 2 additions & 0 deletions hrqb/tasks/sql/employees.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHANGELOG
or retirement reason
- 2024-10-07 Use table HR_APPT_ACTION_DETAIL vs HR_APPT_TX_DETAIL for termination
details
- 2024-10-07 Add employee ethnicity to query
*/

with ordered_appt_txn as (
Expand Down Expand Up @@ -49,6 +50,7 @@ select
e.OFFICE_ADDRESS,
e.OFFICE_PHONE,
e.HOME_PHONE,
e.ETHNIC_ORIGIN,
e.EMERGENCY_CONTACT_NAME,
e.EMERGENCY_CONTACT_RELATION,
e.EMERGENCY_CONTACT_EMAIL,
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ def task_extract_dw_employees_dw_dataframe():
"office_address": "77 Massachusetts Ave, Room 4-123",
"office_phone": "617-253-1234",
"home_phone": "617-555-6789",
"ethnic_origin": "Two or more races, not Hispanic/Latino",
"emergency_contact_name": "Jane Doe",
"emergency_contact_relation": "Spouse",
"emergency_contact_email": "jane.doe@example.com",
Expand Down

0 comments on commit 1d8fc24

Please sign in to comment.