Skip to content

Show whitespace message when there's nothing to show

What does this MR do and why?

Show whitespace message when there's nothing to show

An empty table was rendered, when diff consistent only of whitespace changes and Hide whitespace changes was selected. Detecting the whitespace changes allows to render a message identical to what we have in the new rapid diff implementation.

Changelog: fixed

References

Screenshots or screen recordings

Context Before After
hide whitespace Screenshot_2025-10-07_at_17.08.48 Screenshot_2025-10-07_at_17.08.58 Screenshot_2025-10-07_at_17.08.04
show whitespace Screenshot_2025-10-07_at_17.09.15 Screenshot_2025-10-07_at_16.29.04

How to set up and validate locally

  1. Go to a project
  2. Create a commit to any of your files that only includes whitespace changes (one extra space in one of the lines is enough)
  3. Go to the commit you've created, for example http://gdk.test:8080/flightjs/Flight/-/commit/[SHA_OF_YOUR_COMMIT]
  4. Scroll down to the files and make sure you see the message about only whitespace changes after you choose Hide whitespace changes

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #570565

Edited by Paulina Sedlak-Jakubowska

Merge request reports

Loading