Skip to content

Show correct total number of commit diff's changes

Patrick Bajao requested to merge 7816-commits-diff-total-api into master

What does this MR do?

Update the API endpoint to use the correct method for getting diff of a commit to return correct X-Total in the response's header. The said method uses the same limits as the ones used in the UI so they'll be consistent.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

#7816 (closed)

Edited by Patrick Bajao

Merge request reports