Additions and deletions not present in REST API for merge request diff stats
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=464260) </details> <!--IssueSummary end--> ### Summary The [Merge Request Diff REST API](https://docs.gitlab.com/ee/api/merge_requests.html#list-merge-request-diffs) does not contain the count of lines added, deleted and changes in the respone but the [Merge Request GraphQL API](https://docs.gitlab.com/ee/api/graphql/reference/#mergerequest) does have a field [`diffStatsSummary`](https://docs.gitlab.com/ee/api/graphql/reference/#diffstatssummary) which shows total lines added, deleted and changed as part of the merge request ### Steps to reproduce 1. 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 2. 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 ### Relevant logs and/or screenshots ![image](/uploads/1bd2953f96d93656c47bac7cb7165c77/image.png)
issue