Skip to content

Fix MR diff compare with previous version

What does this MR do?

Fix the bug on MR diff view.

When we create a MR with a lot of commits, GitLab help us combine some commits into a version. And we can compare base with any version.

The bug is: When we select a previous version for comparison, the result obtained is always the result of the latest version (HEAD).

Screenshots (strongly suggested)

image

I created a demo project to show this bug, more detail see: icbd/mr-diff-changes-demo!1

And the bug view link: icbd/mr-diff-changes-demo!1

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • 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

#326887 (closed)

Edited by Patrick Bajao

Merge request reports