Skip to content

Using correct column for sorting users by Recent Sign-in

What does this MR do?

Uses current_sign_in_at instead of last_sign_in_at for sorting users by "Recent Sign-in". According to https://github.com/plataformatec/devise/blob/master/lib/devise/models/trackable.rb, last_sign_in_at points to the previous time the user logged in. The correct column to use here is current_sign_in_at as this gets updated every time a user logs in and is not set to nil when the user logs out.

Are there points in the code the reviewer needs to double check?

No

Why was this MR needed

To sort the users by "Recent Sign-in" correctly

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #26468 (closed)

Merge request reports