Skip to content

Exclude trailing spaces from commit search queries

Vasilii Iakliushin requested to merge 386479_remove_trailing_spaces into master

What does this MR do and why?

Problem

Trailing spaces in the search query prevent users from finding commits.

Solution

Remove trailing spaces from the search query.

Screenshots or screen recordings

Before After
Screenshot_2023-01-02_at_11.34.07 Screenshot_2023-01-02_at_11.35.08

How to set up and validate locally

  1. Enable feature flag Feature.enable(:commit_search_trailing_spaces)
  2. Visit commits page and search by commit message that has trailing spaces
  3. You should see the result for a query without trailing spaces

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vasilii Iakliushin

Merge request reports