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

don't save student status to owner if it is false #180

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

joseph-sentry
Copy link
Contributor

Purpose/Motivation

We don't want to save the student status of an owner if it's false

Links to relevant tickets

Fixes: codecov/engineering-team#644

What does this PR do?

  • Only save student status from user_dict to owner if user_dict student status is True

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Merging #180 (b30afc8) into main (7c02977) will not change coverage.
The diff coverage is 100.00%.

@@          Coverage Diff          @@
##            main    #180   +/-   ##
=====================================
  Coverage   95.51   95.51           
=====================================
  Files        714     714           
  Lines      15584   15589    +5     
=====================================
+ Hits       14884   14889    +5     
  Misses       700     700           
Flag Coverage Δ
unit 95.61% <100.00%> (ø)
unit-latest-uploader 95.61% <100.00%> (ø)

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

Files Coverage Δ
codecov_auth/views/base.py 99.50% <100.00%> (ø)

... and 1 file with indirect coverage changes

@codecov-qa
Copy link

codecov-qa bot commented Oct 5, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (7c02977) 95.61% compared to head (b30afc8) 95.61%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #180   +/-   ##
=======================================
  Coverage   95.61%   95.61%           
=======================================
  Files         600      600           
  Lines       15183    15183           
=======================================
  Hits        14517    14517           
  Misses        666      666           
Flag Coverage Δ
unit 95.61% <100.00%> (ø)
unit-latest-uploader 95.61% <100.00%> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codecov-public-qa
Copy link

codecov-public-qa bot commented Oct 5, 2023

Codecov Report

Merging #180 (b30afc8) into main (7c02977) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #180   +/-   ##
=======================================
  Coverage   95.61%   95.61%           
=======================================
  Files         600      600           
  Lines       15183    15183           
=======================================
  Hits        14517    14517           
  Misses        666      666           
Flag Coverage Δ
unit 95.61% <100.00%> (ø)
unit-latest-uploader 95.61% <100.00%> (ø)

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

Files Coverage Δ
codecov_auth/views/base.py 99.49% <100.00%> (ø)

Impacted file tree graph

@joseph-sentry joseph-sentry marked this pull request as ready for review October 5, 2023 17:40
@joseph-sentry joseph-sentry force-pushed the joseph/student-login branch 4 times, most recently from 9ec491e to c25b6ae Compare October 10, 2023 11:58
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
@joseph-sentry joseph-sentry merged commit 502a283 into main Oct 11, 2023
18 checks passed
@joseph-sentry joseph-sentry deleted the joseph/student-login branch October 11, 2023 09:18
RulaKhaled pushed a commit that referenced this pull request Oct 12, 2023
* Don't update owner student if student_disabled is True

* fix tests for student login

Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
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.

Disable Student check on login
2 participants