-
Notifications
You must be signed in to change notification settings - Fork 28
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
ref: Add agreement in user and sync updates with owner agreement (#390) #98
Conversation
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
Codecov Report
@@ Coverage Diff @@
## main #98 +/- ##
=====================================
Coverage 95.27 95.27
=====================================
Files 696 697 +1
Lines 14807 14822 +15
=====================================
+ Hits 14106 14121 +15
Misses 701 701
Flags with carried forward coverage won't be shown. Click here to find out more.
|
codecov_auth/commands/owner/interactors/save_terms_agreement.py
Outdated
Show resolved
Hide resolved
owner_profile.save() | ||
|
||
# Store agreements in user table as well | ||
user = User.objects.get(id=self.current_owner.user_id) |
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.
@JerrySentry This record should already be available at self.current_user
. It's set here:
codecov-api/codecov/commands/base.py
Line 34 in 958cfcf
self.current_user = self.current_owner.user |
Purpose/Motivation
What is the feature? Why is this being done?
This is for auth refactor, add signed agreements flag to user table for users signed in via a non-git provider (ie not row in owners table).
Part 1 of 3 releases for this overall task.
Adds new columns and updates user.agreements when owner.agreements is updated.
Links to relevant tickets
codecov/engineering-team#390