Skip to content

Add any, none filters for issue health status

charlie ablett requested to merge 218711-cablett-health-status-any-none into master

What does this MR do and why?

Add any and none as possible filter options for issues by health status in the finder, and expose in GraphQL.

Because the frontend support has already been added, we'll need to deprecate the health_status argument due to multi-version compatibility. If both health_status and health_status_filter arguments are provided, health_status_filter will be taken instead.

GraphQL queries

by project

query {
	project(fullPath: "group/project") {
    issues(healthStatusFilter: ANY) {
      nodes {
        title
        healthStatus
      }
    }
  }
}
query {
	project(fullPath: "group/project") {
    issues(healthStatusFilter: NONE) {
      nodes {
        title
        healthStatus
      }
    }
  }
}

by group

query {
	group(fullPath: "group") {
    issues(healthStatusFilter: ANY) {
      nodes {
        title
        healthStatus
      }
    }
  }
}
query {
	group(fullPath: "group") {
    issues(healthStatusFilter: NONE) {
      nodes {
        title
        healthStatus
      }
    }
  }
}

How to set up and validate locally

  1. Create some issues in a project and assign some of them health statuses
  2. Use the GraphQL queries above to query them

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 #218711 (closed)

Edited by charlie ablett

Merge request reports