Fix iteration dropdown in Issues Analytics filter bar
Summary
The Iteration
filter in Issue Analytics is not working – clicking on the operator yields an error, and the results dropdown never appears.
Steps to reproduce
- Visit either Issue Analytics at either the group or project level
- Attempt to filter by
Iteration
in the filter bar
What is the current bug behavior?
Results dropdown for the Iteration
filter never appears, so issues cannot be filtered with it.
What is the expected correct behavior?
Results dropdown for the Iteration
filter appears and issues can be filtered with it.
Relevant logs and/or screenshots
Screen Recording 2023-07-25 at 10.25.02 PM.mov
Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
at H.bindEvents (filtered_search_dropdown.js:24:19)
at new A (filtered_search_dropdown.js:19:10)
at new H (dropdown_ajax_filter.js:12:5)
at Q.load (filtered_search_dropdown_manager.js:128:30)
at Q.loadDropdown (filtered_search_dropdown_manager.js:170:12)
at Q.setDropdown (filtered_search_dropdown_manager.js:207:12)
at HTMLInputElement.r (helpers.js:90:17)
at _.dispatchInputEvent (filtered_search_dropdown.js:109:16)
at _.itemClicked (dropdown_operator.js:39:10)
at HTMLDivElement.r (helpers.js:90:17)
at a.clickEvent (drop_down.js:60:15)
at HTMLDivElement.r (helpers.js:90:17)
Possible fixes
Include iteration
in the list of excluded tokens
in issues_analytics/filtered_search_issues_analytics.js
Edited by Rudy Crespo