Vulnerability dismissal via selection stops working after use
Summary
After using the bulk dismissal selection boxes, the "Change status" button will stop working.
Video explaining the bug: https://youtu.be/PZqb9FWlQ0k
Steps to reproduce
- Open a vulnerability report page
- Select one or more items
- Dismiss them by clicking Change status
- Select one or more items again
- Change status button won't be enabled
Example Project
What is the current bug behavior?
The Change status button is disabled.
What is the expected correct behavior?
The change status button is enabled. The change status button is only disabled if: a. there are no selections; or b. all selections match the selected status on the dropbox.
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
/cc @lkerr @matt_wilson