Auto-Remediation - Link to auto-created MRs in pipeline widget - Frontend
- Main issue: #216027 (closed)
- Parent issue: #234082 (closed)
This issue is for adding information about auto-created MRs in the upcoming pipeline widget in the Project Vulnerability List.
We want to show how many auto-fix MRs are currently open, and link to the filtered list of those.
Implementation plan
-
The backend should expose a link to the project's Merge Requests page, ideally with the search params already set to only show auto-fix MRs. -
Trigger a GraphQL query to retrieve the list of open auto-fix MRs (labelled with GitLab-auto-fix
).- Depending on how #241060 (closed) is resolved, where we trigger the query might change. More details to come.
-
Use the data mentioned above to display the MRs count and a link in the pipeline widget.
GraphQL query
The GraphQL API already provides a way to retrieve MRs by labels and status:
query autoFixMRs($fullPath: ID!) {
project(fullPath: $fullPath) {
mergeRequests(labels: "GitLab-auto-fix", state: opened) {
count
}
}
}
/cc @kmann
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.