Skip to content

Update access token last_used_at

What does this MR do and why?

The functionality of updating the Last Used date (::PersonalAccessTokens::LastUsedService) was added in this MR !35471 (merged)

The method find_user_from_personal_access_token was added later and the MR !63287 (diffs) where the ::PersonalAccessTokens::LastUsedService.new(access_token).execute was not added to the method and therefore the last_used_at was not getting updated.

These changes update the access token "Last Used" date when the personal access token is used.

Related #357434

Related #247057

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #357434

Edited by Oksana Kohuch

Merge request reports

Loading