Skip to content

Fix failing filtered search when re-submitting epic tokens

What does this MR do?

Related to #213154 (closed)

Filtering issues by epic on the issues search bar works just fine, but if you re-submit the filter, it prepends an & to the epic id every time.

The fix was to add support for this symbol (&) on the filtered_search_tokenizer. I also added tests for this on EE.

This involved a bit of refactorization on the tokenizer, to make it more readable, as it was hard to understand what to change to add support for this kind of token (prefixed (?)).

For reviewers: feel free to propose more readability improvements.

Screenshots

Before: Extra & After: No extra &
image image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Axel García

Merge request reports