Add CREATED_AT and UPDATED_AT as GraphQL group query sort options

What does this MR do and why?

Needed for &13790 (closed)

We want to be able to sort GraphQL group queries by created_at and updated_at but those options aren't in the enum. This MR adds those to the enum.

How to set up and validate locally

  1. Go to /-/graphql-explorer
  2. Run the following query
query {
  currentUser {
    groups(sort: CREATED_AT_DESC) {
      nodes {
        createdAt
      }
    }
  }
}

MR acceptance checklist

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

Edited by Peter Hegman

Merge request reports

Loading