Fix import from gitlab.com fails
_Originally opened at !2896 by @kazsw._
- - -
Fixes#12652
CGI.escape encodes '/' by default.
Second argument can be removed.
See merge request !2988
Updated SAML and Omniauth docs
Updated SAML and Omniauth docs with information on the new behavior recently introduced in !2882
/cc @ernstvn @DouweM
See merge request !2950
Add customer label explanation and change label references to markdown
Add customer label plus change valid labels to markdown format so they render.
The unchanged labels do not have actual/valid labels behind them. We should consider removing them since they're obviously not used.
cc/ @sytses @dzaporozhets @DouweM What do you think about removing the unused labels?
Label names are now rendered

See merge request !2972
Return empty array when commit has no statuses in API
This makes API endpoint for Commit Statuses return empty array instead
of 404 when commit exists, but has no statuses.
Closes#3080
See merge request !3010
Fix issue with overlap of sidebar links.
Thanks @iamphill for the help with this one.

cc @iamphill @alfredo1 @dzaporozhets @rymai
See merge request !3043
Properly check for a pre-existing error in `User#namespace_uniq`
Rails adds an empty error to the Errors object even if you just call
`#[]` on it:
```
[1] pry(main)> u = User.last
[2] pry(main)> u.errors.keys
=> []
[3] pry(main)> u.errors[:username].present?
=> false
[4] pry(main)> u.errors.keys
=> [:username]
```
See merge request !3017
Don't show any "2FA required" message if it's not actually required
Prior, if the user had enabled and then disabled 2FA, they would be
shown a "You must enable Two-factor Authentication for your account."
message when going back to re-activate it, even if 2FA enforcement was
disabled.
See merge request !3014
Changed # to ! on merge requests on activity view
Closes#9082

See merge request !2938
Batch size >1000 does not pay off
We did a small experiment to see how a full scan of the Redis keys on
gitlab.com speeds up as we increase the batch size. The values on the
right are time in seconds for a full scan (no delete operations).
```
count: 10); 284.500529021
count: 100); 86.21216934
count: 1_000); 60.931676195
count: 10_000); 60.96355610
count: 100_000); 62.378172541
```
It looks like 1,000 is a good number.
See merge request !2970