Skip to content

Add lastActivityOn field to GraphQL Member type

mo khan requested to merge mokhax/489771/simple-fields into master

What does this MR do and why?

In order to provide the data necessary for the page that lists the data for a custom role we need additional fields to be exposed via the GraphQL API.

#489771

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

Before After
Before After

How to set up and validate locally

  1. Navigate to GraphQL Explorer http://gdk.test:3000/-/graphql-explorer
  2. Enter the following query:
    query findUsers($active:Boolean!) {
      users(active: $active) {
        nodes {
          groupMemberships{        
            nodes{
              accessLevel {
                stringValue
              }            
              lastActivityOn
            }
          }
        }
      }
    }
  3. Enter the following variables:
    {
      "active": true
    }
  4. Execute the query
Edited by mo khan

Merge request reports

Loading