Add details page path to GraphQL roles data
What does this MR do and why?
On the Admin
-> Settings
-> Roles and Permissions
page, a list of custom roles is shown. In a previous MR, we added a role details page to show the details for a custom role. In a future MR, we want to link from the list page to the show page. This MR adds the details page path to the GraphQL query so that frontend knows where to link to.
Custom roles page | Role details page | New detailsPath for self-managed query |
New detailsPath for SaaS query |
---|---|---|---|
How to set up and validate locally
For self-managed, please follow this video with audio commentary:
GraphQL query
query {
standardRoles {
nodes {
detailsPath
}
}
memberRoles {
nodes {
detailsPath
}
}
}
For SaaS, run these shell commands to enable SaaS mode locally:
export GITLAB_SIMULATE_SAAS=1
gdk restart
Then follow this video with audio commentary:
GraphQL query
query {
group(fullPath: "twitter2") {
standardRoles {
nodes {
detailsPath
}
}
memberRoles {
nodes {
detailsPath
}
}
}
}
Related to #468353 (closed)
Edited by Daniel Tian