Tokens in vue issue list filter bar not behaving correctly
Summary
Video summary: https://www.loom.com/share/5f44a576b3604c21876755913c187b7b
- Problem 1 - On the initial page load and selecting the
label=
token, the initial search term does not return the appropriately scoped results. - Problem 2 - Attempting to select a label with the same text
~direction
vs~Direction
selects and applies the wrong label. (see video summary)
Steps to reproduce
- Navigate to https://gitlab.com/gitlab-org/gitlab/-/issues
- In the filter bar, select
Label=
and start typingdirection
. - Notice how the initial list is the full set of labels, not the search results.
- Backspace a few letters and then retype the full word
direction
- Select the darker gold
direction
label with the lower cased
. - Note how the label applied was the lighter yellow
Direction
label with a capitalD
Example Project
https://gitlab.com/gitlab-org/gitlab/-/issues
What is the current bug behavior?
- Incorrect search results.
- Incorrect selection of label
What is the expected correct behavior?
- Search results return correctly the first time.
- The label I pick from the list is the label that gets applied in the filter bar
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Edited by Donald Cook