-
Notifications
You must be signed in to change notification settings - Fork 2
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
Resolve issue when repairing user's edx synchronised records #1496
Resolve issue when repairing user's edx synchronised records #1496
Conversation
…ut no user record exists in edx.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to work if I remove the OpenEdxUser
record but it doesn't if it's still there. Line 314 in openedx/api.py
looks for that record so it seems like it it's skipping the call to regen the auth tokens?
Nice find. I updated the PR to now make an API call after retrieving the existing token: |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #1496 +/- ##
==========================================
+ Coverage 82.92% 82.93% +0.01%
==========================================
Files 313 313
Lines 13443 13451 +8
Branches 954 953 -1
==========================================
+ Hits 11147 11155 +8
- Misses 2027 2029 +2
+ Partials 269 267 -2
... and 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried repairing in the way that I was and was successful. LGTM! 👍
Pre-Flight checklist
What are the relevant tickets?
#1493
What's this PR do?
An issue occurs when we attempt to repair mitxonline User's edx OAuth accounts. This issue occurs when a user meets the following criteria:
OpenEdxUser
record in mitxonline.How should this be manually tested?
makemigrations
in mitxonline.