Skip to content

Add `includeArchived: true | false` to `groupProjects` graphQL

Michael Becker requested to merge 426520-update-the-graphql-resolver into master

What does this MR do and why?

This MR

This MR exposes the new include_archived filter param in the groupProjects graphql resolver which was added in !141989 (merged)

As the existing behavior was to include archived projects, the default for the new param is include_archived: true to keep any other usages of this graphql resolver unaffected.

Context

For the group-level view of the Vulnerability Report, we exclude archived projects.

However, the project filter list includes archived projects as selections:

image

We want to exclude archived projects from that list.

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 (include_archived: false) After (include_archived: true) After (param excluded)
before include_archived_false include_archived_true include_archived_excluded

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

resolves: #438814 (closed)
related to: #426520 (closed)

Edited by Michael Becker

Merge request reports