Skip to content
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

Remove the user directory service api call from grant loader #60

Merged
merged 11 commits into from
Oct 5, 2023

Conversation

rpoet-jh
Copy link
Contributor

@rpoet-jh rpoet-jh commented Oct 3, 2023

eclipse-pass/main#746

This PR has the following changes:

  • Removes the call to user directory api to get the HopkinsID for a user. Now if a User is created because it was not found in Pass, only the employeeId and jhed (eppn) locatorIds are created in the User. The HopkinsID (unique-id) locatorId will be inserted by the ShibAuthenticationFilter in the pass-core/pass-core-main project when the user logs into Pass.

  • Update the user locator ID logic that detects if locator IDs need to be updated. Now only the JHED ID is updated if it is different than what is in Pass.

  • Consolidated JhuPassUpdater and CoeusPassEntityUtil since JhuPassUpdater was very thin and the logic in CoeusPassEntityUtil is for updating Jhu Pass entities. This simplifies the code base.

  • Added grant difference logging for init mode so we know the changes that were made on grant so that data verification can be done.

  • Did some other general cleanup like removing methods in code base used only for testing.

@rpoet-jh rpoet-jh self-assigned this Oct 3, 2023
@rpoet-jh
Copy link
Contributor Author

rpoet-jh commented Oct 3, 2023

I still have local manual testing to perform, but I figured I'd open this now to start the review.

@rpoet-jh
Copy link
Contributor Author

rpoet-jh commented Oct 3, 2023

Closing while making discussed changes to remove user dir api call all together since locatorIds are populated by User Service in Pass on user login.

@rpoet-jh rpoet-jh closed this Oct 3, 2023
@rpoet-jh rpoet-jh reopened this Oct 3, 2023
@rpoet-jh rpoet-jh changed the title Call user directory service during pass update in grant loader Remove the user directory service api call from grant loader Oct 3, 2023
@rpoet-jh rpoet-jh linked an issue Oct 3, 2023 that may be closed by this pull request
Copy link
Contributor

@markpatton markpatton left a comment

Choose a reason for hiding this comment

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

Tests pass for me locally. The changes to user handling make logical sense and should speed things up a lot.

@rpoet-jh rpoet-jh merged commit 5fb0d5b into main Oct 5, 2023
2 checks passed
@markpatton markpatton deleted the russ-746-user-dir-call-change branch December 13, 2023 13:41
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.

Change grant loader to call user dir api on load
2 participants