Additions and deletions not present in REST API for merge request diff stats
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
The Merge Request Diff REST API does not contain the count of lines added, deleted and changes in the respone but the Merge Request GraphQL API does have a field diffStatsSummary
which shows total lines added, deleted and changed as part of the merge request
Steps to reproduce
-
Make a GET request on the REST API
/projects/:id/merge_requests/:merge_request_iid/diffs
and observe that the individual changes are listed but a summary of the changes is not present -
Use the GraphiQL Explorer and use the below query and observe that the diff summary is listed
{
project(fullPath: "gitlab-org/gitlab") {
mergeRequest(iid: "154530") {
diffStatsSummary {
additions
deletions
changes
}
}
}
}
Example Project
https://gitlab.com/gitlab-org/gitlab
What is the current bug behavior?
The summary of diff is not present in REST API
What is the expected correct behavior?
The summary of diff should also be present in REST API