Skip to content

Commit 159084c

Browse files
authored
Merge pull request #202 from MITLibraries/bug-remove-appt-end-date-from-key
Remove end date as part of appointment unique key
2 parents cef85b8 + bd3e83d commit 159084c

File tree

5 files changed

+1
-7
lines changed

5 files changed

+1
-7
lines changed

hrqb/tasks/employee_appointments.py

-3
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def get_dataframe(self) -> pd.DataFrame:
104104
row.mit_id,
105105
row.position_id,
106106
row.appt_begin_date,
107-
row.appt_end_date,
108107
),
109108
axis=1,
110109
)
@@ -139,14 +138,12 @@ def generate_merge_key(
139138
mit_id: str,
140139
position_id: str,
141140
appt_begin_date: str,
142-
appt_end_date: str,
143141
) -> str:
144142
return md5_hash_from_values(
145143
[
146144
mit_id,
147145
position_id,
148146
appt_begin_date,
149-
appt_end_date,
150147
]
151148
)
152149

hrqb/tasks/employee_leave.py

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def get_dataframe(self) -> pd.DataFrame:
5656
row.mit_id,
5757
row.position_id,
5858
row.appt_begin_date,
59-
row.appt_end_date,
6059
),
6160
axis=1,
6261
)

hrqb/tasks/employee_salary_history.py

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def get_dataframe(self) -> pd.DataFrame:
5050
row.mit_id,
5151
row.position_id,
5252
row.appt_begin_date,
53-
row.appt_end_date,
5453
),
5554
axis=1,
5655
)

tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def task_shared_extract_qb_employee_appointments_complete(all_tasks_pipeline_nam
790790
"Related Employee Type": "Admin Staff",
791791
"Union Name": "Le Union",
792792
"Exempt / NE": "E",
793-
"Key": "868ce513323c5391ae8afaa0ceb70c69",
793+
"Key": "00f6099d6777bd9b6985bf86eeb3e449",
794794
}
795795
]
796796
)

tests/tasks/test_employee_appointments.py

-1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,5 @@ def test_task_transform_employee_appointments_key_expected_from_row_data(
102102
row["MIT ID"],
103103
row["Position ID"],
104104
row["Begin Date"],
105-
row["End Date"],
106105
]
107106
)

0 commit comments

Comments
 (0)