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

task/DES-2616: Add TAS institution to user profile and update it on login #1130

Merged
merged 4 commits into from
Dec 13, 2023

Conversation

jarosenb
Copy link
Member

Overview:

Part of the V3 migration will involve synchronizing the data model across projects/publications and reducing the number of external API calls needed to fetch project details. This PR adds institutions to the user profile model, which will allow us to keep track of all the user information we need inside of projects without having to call TAS for each user.

PR Status:

  • Ready.
  • Work in Progress.
  • Hold.

Related Jira tickets:

Summary of Changes:

Testing Steps:

  1. Once the branch is pulled, make sure workers are restarted to pick up the changes (docker restart des_workers)
  2. Log into the portal
  3. in the django shell:
from django.contrib.auth import get_user_model
user = get_user_model().objects.get(username=<your username>)
user.profile.institution

You should see your institution populated here.

@jarosenb jarosenb merged commit f7e0cee into main Dec 13, 2023
2 checks passed
@jarosenb jarosenb deleted the task/DES-2616--add-institution-to-profile branch December 13, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant