"Hide whitespace chages" not working for collapsed files in MR
In most cases, we are working with diffs in MR with "Hide whitespace changes" option. This option is not working if you expand big file.
Probable "?w=1" URL argument not passed when UI request diff for file.
Steps to reproduce
- Create MR with big file which will shown as collapsed file in changes view.
- Press "Hide whitespace changes"
- Expand collapsed file.
What is the current bug behavior?
Whitespaces not hidden for expanded file (initially collapsed) even "Hide whitespace changes" enabled. Viewing same file in Web IDE will show proper diff (with whitespaces hidden)
What is the expected correct behavior?
Whitespaces must be hidden in MR diff viewer.
Relevant logs and/or screenshots
Results of GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.4.4p296 Gem Version: 2.7.6 Bundler Version:1.16.2 Rake Version: 12.3.1 Redis Version: 3.2.11 Git Version: 2.17.1 Sidekiq Version:5.1.3 Go Version: unknown
GitLab information Version: 11.1.4