Skip to content

Allow OR params in GraphQL issue resolvers

Heinrich Lee Yu requested to merge 296031-or-params-api into master

What does this MR do and why?

Support OR params in GraphQL issues and issue boards. Author and assignee filters are already supported at the finder level so this just adds the param to GraphQL.

Enable the or_issuable_queries feature flag to test this feature.

Sample query

query {
  project(fullPath: "flightjs/flight") {
    issues(or: { authorUsernames: ["user1", "user2"] }) {
      nodes {
        id
        title
        author {
          username
        }
        assignees {
          nodes {
            username
          }
        }
      }
    }
  }
}

MR acceptance checklist

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

Related to #296031 (closed)

Edited by Heinrich Lee Yu

Merge request reports