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

fix: handle dupe user case for mgmt cmd #271

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

varshamenon4
Copy link
Member

JIRA: Link to JIRA ticket

Description: When SRE tried to run the mgmt command in stage, there was an IntegrityError. After investigating, I realized there was a bug/missing edge case. This fix handles the case where there is a duplicate user in the csv itself (previously, was only checking if there was an existing User in the db)

Author concerns: Is this a case I should handle for duplicate CourseStaffRole entries in the CSV? I'm guessing no, because there shouldn't be duplicate entries when pulling from the db.

@varshamenon4 varshamenon4 force-pushed the varshamenon4/staff-mgmt-command-fix branch from 942ae46 to 67b84f8 Compare April 19, 2024 20:06
@varshamenon4 varshamenon4 merged commit 339559c into main Apr 26, 2024
5 checks passed
@varshamenon4 varshamenon4 deleted the varshamenon4/staff-mgmt-command-fix branch April 26, 2024 14:43
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.

3 participants