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

Track last sign in date #553

Merged

Conversation

fosterfarrell9
Copy link
Collaborator

In preparation of a later PR that will allow us to remove users that have not logged in for a very long time (see #532), we add tracking of the last sign in date. This is done via Devise's :trackable module. By default, this also stores IP adresses, which we do not want for GDPR reasons, so we make sure that the default is overridden and no IP data are stored.

Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Merging #553 (36fe324) into mampf-next (0ff42a1) will increase coverage by 0.01%.
Report is 2 commits behind head on mampf-next.
The diff coverage is 100.00%.

@@              Coverage Diff               @@
##           mampf-next     #553      +/-   ##
==============================================
+ Coverage       66.51%   66.52%   +0.01%     
==============================================
  Files             311      311              
  Lines            9423     9426       +3     
==============================================
+ Hits             6268     6271       +3     
  Misses           3155     3155              
Files Coverage Δ
app/models/user.rb 53.43% <100.00%> (+0.42%) ⬆️

app/models/user.rb Outdated Show resolved Hide resolved
Copy link
Member

@Splines Splines left a comment

Choose a reason for hiding this comment

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

LGTM, just some more little nitpicky-stuff before I approve ;)

app/models/user.rb Outdated Show resolved Hide resolved
Copy link
Member

@Splines Splines left a comment

Choose a reason for hiding this comment

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

Remember to use "Squash and merge" to merge into mampf-next.

@Splines Splines mentioned this pull request Nov 12, 2023
1 task
@fosterfarrell9 fosterfarrell9 merged commit 76cb7c0 into mampf-next Nov 12, 2023
6 of 8 checks passed
@fosterfarrell9 fosterfarrell9 deleted the feature/add_last_sign_in_date_to_user_model branch November 12, 2023 15:48
Splines pushed a commit that referenced this pull request Jan 6, 2024
* add trackable module to devise

* disable IP adress logging in trackable module of devise

* extend comment to explain better what happens

* remove redundant lines in comment
@Splines Splines mentioned this pull request Mar 12, 2024
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