Skip to content

Add faculty start date to people feed #76

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

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

hakbailey
Copy link
Contributor

@hakbailey hakbailey commented Jun 22, 2022

What does this PR do?

Updates people feed to use DATE_TO_FACULTY field from the Data Warehouse if present for ArriveDate, otherwise continues to use ORIGINAL_HIRE_DATE.

Helpful background context

For faculty, sometimes the original hire date doesn't line up with the faculty start date and that was causing problems in the OA workflow. A new field was added to the data warehouse table that gives us the date a hire became faculty, which we want to use preferentially over the original hire date when present.

How can a reviewer manually see the effects of these changes?

We can't really yet because part of verification requires backend activity to happen in Symplectic Elements. However, the changes and file output have been verified locally in Docker and on Stage.

Includes new or updated dependencies?

NO

Relevant tickets

Developer

  • README is updated to reflect all changes as needed
  • All related Jira tickets are linked in commit message(s)

Code Reviewer

  • The commit message is clear and follows our guidelines (not just this pull request message)
  • There are appropriate tests covering any new functionality
  • The documentation has been updated to reflect all changes or is not needed
  • The changes have been verified
  • New dependencies are appropriate or there were no changes

Why these changes are being introduced:
For faculty, sometimes the original hire date doesn't line up with the
faculty start date and that was causing problems in the OA workflow. A
new fields was added to the data warehouse table that gives us the
date a hire became faculty, which we want to use preferentially over the
original hire date when present.

How this addresses that need:
* Adds DATE_TO_FACULTY field to the persons model
* Retrieves DATE_TO_FACULTY field from the data warehouse as part of the
  person record
* Adds a method to map the DATE_TO_FACULTY field as ArriveDate in the
  people feed XML if present, otherwise continues as before and maps the
  ORIGINAL_HIRE_DATE to ArriveDate
* Updates tests/fixtures as needed

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/INFRA-299
@hakbailey hakbailey requested review from carlj11 and ehanson8 June 22, 2022 18:31
Copy link
Contributor

@ehanson8 ehanson8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@hakbailey hakbailey merged commit 2abfff0 into main Jun 22, 2022
@hakbailey hakbailey deleted the infra-299-add-to-faculty-date branch June 22, 2022 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants