Skip to content

Draft: No warning if one file MR and no whitespace preference

What does this MR do?

When rendering a MR with only one file and the setting "Show whitespace changes" disabled, no need to show two alerts. This MR changes the logic to show the global alert.

Proposed fix for 331838

Screenshots (strongly suggested)

Result below: test_file_large_

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
Edited by Mauricio Gonzalez

Merge request reports