Fix failing filtered search when re-submitting epic tokens
requested to merge 213154-re-submitting-an-epic-filter-on-the-issues-search-bar-prepends-an-before-the-id into master
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 & |
---|---|
![]() |
![]() |
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Edited by Axel García