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

ref: Add agreement in user and sync updates with owner agreement (#390) #98

Merged
merged 5 commits into from
Aug 30, 2023

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Aug 30, 2023

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

@JerrySentry JerrySentry changed the title [WIP] ref: Add agreement in user and sync updates with owner agreement [WIP] ref: Add agreement in user and sync updates with owner agreement (#390) Aug 30, 2023
@codecov-staging
Copy link

codecov-staging bot commented Aug 30, 2023

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
...commands/owner/interactors/save_terms_agreement.py 100.00%
...v_auth/migrations/0036_add_user_terms_agreement.py 100.00%
codecov_auth/models.py 100.00%

📢 Thoughts on this report? Let us know!.

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #98 (ff95dd3) into main (3afda2c) will not change coverage.
The diff coverage is 100.00%.

@@          Coverage Diff          @@
##            main     #98   +/-   ##
=====================================
  Coverage   95.27   95.27           
=====================================
  Files        696     697    +1     
  Lines      14807   14822   +15     
=====================================
+ Hits       14106   14121   +15     
  Misses       701     701           
Flag Coverage Δ
unit ?
unit-latest-uploader ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...commands/owner/interactors/save_terms_agreement.py 100.00% <100.00%> (ø)
...v_auth/migrations/0036_add_user_terms_agreement.py 100.00% <100.00%> (ø)
codecov_auth/models.py 98.84% <100.00%> (+<0.01%) ⬆️

@JerrySentry JerrySentry changed the title [WIP] ref: Add agreement in user and sync updates with owner agreement (#390) ref: Add agreement in user and sync updates with owner agreement (#390) Aug 30, 2023
@JerrySentry JerrySentry requested a review from a team August 30, 2023 18:14
@JerrySentry JerrySentry merged commit 958cfcf into main Aug 30, 2023
12 checks passed
@JerrySentry JerrySentry deleted the api_390a branch August 30, 2023 20:23
owner_profile.save()

# Store agreements in user table as well
user = User.objects.get(id=self.current_owner.user_id)
Copy link
Contributor

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:

self.current_user = self.current_owner.user

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.

None yet

3 participants