Skip to content

UserCore - Add lastActivityOn

Zack Cuddy requested to merge user-core-add-last-activity-on into master

What does this MR do and why?

In support of #409313 (closed)
Split off from !135524 (merged)

This change exposes the key lastActivityOn to the UserCoreType. This key was originally only accessible from AddOnUserType. This is being added to support the needs of OrganizationUserType.

Current AddOnUser docs with lastActivityOn: https://docs.gitlab.com/ee/api/graphql/reference/index.html#addonuser

Screenshots or screen recordings

Before After
Screenshot_2023-11-02_at_10.10.46_AM Screenshot_2023-11-02_at_10.10.14_AM

How to set up and validate locally

  1. Access GraphQL explorer (ex. http://127.0.0.1:3000/-/graphql-explorer)
  2. Query for lastActivityOn
    query {
      user(username: "root") {
        lastActivityOn
      }
    }
  3. Ensure it returns a Date

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Zack Cuddy

Merge request reports