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

feat: Keep track of deleted unverified users #2174

Merged
merged 6 commits into from
Sep 20, 2023

Conversation

faucomte97
Copy link
Contributor

@faucomte97 faucomte97 commented Sep 12, 2023

This change is Reviewable

@faucomte97 faucomte97 self-assigned this Sep 12, 2023
Copy link
Collaborator

@SKairinos SKairinos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 6 files at r1, all commit messages.
Reviewable status: 5 of 6 files reviewed, 1 unresolved discussion (waiting on @faucomte97)


portal/views/cron/user.py line 62 at r1 (raw file):

    )

    return (

instead return the 2 query sets and then get whatever data you need from them for each cron job. it isn't necessary to count in all cases

Copy link
Contributor Author

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 5 of 6 files reviewed, 1 unresolved discussion (waiting on @faucomte97 and @SKairinos)


portal/views/cron/user.py line 62 at r1 (raw file):

Previously, SKairinos (Stefan Kairinos) wrote…

instead return the 2 query sets and then get whatever data you need from them for each cron job. it isn't necessary to count in all cases

Done.

Copy link
Collaborator

@SKairinos SKairinos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 6 files at r3, all commit messages.
Reviewable status: 2 of 7 files reviewed, 2 unresolved discussions (waiting on @faucomte97)


cfl_common/common/models.py line 348 at r3 (raw file):

    indy_lockout_resets = models.PositiveIntegerField(default=0)
    school_student_lockout_resets = models.PositiveIntegerField(default=0)
    anonymised_unverified_teachers = models.PositiveIntegerField(default=0)

why do we need the count now since we are preserving the data?

Copy link
Collaborator

@SKairinos SKairinos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 of 6 files at r3.
Reviewable status: 6 of 7 files reviewed, 1 unresolved discussion (waiting on @faucomte97)


portal/views/cron/user.py line 62 at r1 (raw file):

Previously, faucomte97 (Florian Aucomte) wrote…

Done.

need to update the return type

Copy link
Contributor Author

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 4 of 7 files reviewed, 1 unresolved discussion (waiting on @SKairinos)


portal/views/cron/user.py line 62 at r1 (raw file):

Previously, SKairinos (Stefan Kairinos) wrote…

need to update the return type

Done.

Copy link
Collaborator

@SKairinos SKairinos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r4, 2 of 2 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @faucomte97)

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #2174 (a2f6a6a) into master (9793686) will increase coverage by 0.03%.
Report is 4 commits behind head on master.
The diff coverage is 97.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2174      +/-   ##
==========================================
+ Coverage   94.40%   94.43%   +0.03%     
==========================================
  Files         166      167       +1     
  Lines        4555     4584      +29     
==========================================
+ Hits         4300     4329      +29     
  Misses        255      255              
Files Changed Coverage Δ
cfl_common/common/helpers/organisation.py 100.00% <ø> (ø)
portal/urls.py 100.00% <ø> (ø)
portal/views/cron/user.py 92.22% <96.15%> (+1.31%) ⬆️
...mon/common/migrations/0041_populate_gb_counties.py 88.23% <100.00%> (ø)
...n/common/migrations/0044_update_activity_models.py 100.00% <100.00%> (ø)
cfl_common/common/models.py 89.83% <100.00%> (+0.16%) ⬆️
cfl_common/common/tests/test_models.py 100.00% <100.00%> (ø)
portal/__init__.py 100.00% <100.00%> (ø)

@faucomte97 faucomte97 merged commit 15de190 into master Sep 20, 2023
@faucomte97 faucomte97 deleted the daily_activity_deleted_users branch September 20, 2023 17:57
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.

2 participants