Summary
First-time user creation never sets last_login; only subsequent OAuth callbacks do. Minor admin/analytics inconsistency.
Code
- backend/app/api/auth.py — new user branch
Acceptance criteria
- last_login set on create and on later logins
First-time user creation never sets last_login; only subsequent OAuth callbacks do. Minor admin/analytics inconsistency.
Hi! I'd like to work on this task, but I couldn't find the corresponding repository. Could you please link the repository (or provide the clone URL) that contains backend/app/api/auth.py? Thanks!
@EbenezerRao The tool is linked in the tool profile page in Phab, but here you go: https://gitlab.wikimedia.org/toolforge-repos/sentinel
Submitted a fix for review.
Merge Request: https://gitlab.wikimedia.org/toolforge-repos/sentinel/-/merge_requests/12
This change sets last_login during the initial OAuth user creation while preserving the existing behavior for subsequent OAuth logins.