Skip to content

Enable searching for MRs by updated_at

Alex Kalderimis requested to merge ajk-gql-mrs-updated-at-arguments into master

What does this MR do and why?

This updates the Merge Request resolvers to add support for updated_ arguments, enabling searching with cutoffs.

This is already supported in the underlying finders and in the REST API, so this brings GraphQL closer to parity with REST.

Example GraphQL queries

query($project: ID!, $time: Time!) {
  project(fullPath: $project) {
    mergeRequests(updatedAfter: $time) {
      nodes {
        title
        description
        updatedAt
      }
    }
  }
}

example variables:

{
  "project": "flightjs/flight",
  "time": "2022-02-02"
}

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 Alex Kalderimis

Merge request reports

Loading