Skip to content

Update last_activity_on field on every REST API request

Andy Schoenen requested to merge rest_api_log_last_activity_on into master

What does this MR do?

It updates the User#last_activity_on field on every request on the REST API when user is logged in and the last_activity was earlier than today. This was requested in #30867 (closed).

Feature flag issue: #199143 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports