Add `include_personal` argument to contributed projects GraphQL query
What does this MR do and why?
Need for &13066 (closed). We are adding a Contributed tab to Your work -> Projects and we want to show personal projects in this tab but currently the contributed projects GraphQL query filters personal projects out. This MR adds a include_personal argument to the GraphQL query. The new argument defaults to false so the existing behavior is preserved and this is not a breaking change.
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.
How to set up and validate locally
- Go to http://gdk.test:3000/projects/new#blank_project
- Choose your namespace from the
Pick a group or namespacedropodown - Make sure the
Initialize repository with a READMEcheckbox is checked - Go to http://gdk.test:3000/-/graphql-explorer
- Run the following query:
query getProjects {
currentUser {
contributedProjects(includePersonal: true) {
nodes {
nameWithNamespace
}
}
}
}
Edited by Peter Hegman