Add webPath and editPath to group and project GraphQL types
What does this MR do and why?
Related to &13790 (closed)
We use GraphQL queries for group and project lists and we want to avoid constructing relative URLs on the frontend due to problems with relative URL configuration. This MR makes available two fields on group and project types:
webPatheditPath
Screenshots or screen recordings
How to set up and validate locally
- (Optional) add
relative_url_root: '/gitlab'togdk.yml. Then rungdk reconfigure && gdk restart - Go to http://127.0.0.1:3000/gitlab/-/graphql-explorer or http://127.0.0.1:3000/-/graphql-explorer depending on if you did step 1
- Run the following query
query {
projects(first: 1) {
nodes {
webPath
editPath
}
}
groups(first: 1) {
nodes {
webPath
editPath
}
}
}
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Peter Hegman
