Defect #34398
closedTracker filter shows subprojects trackers even when "Display subprojects issues on main projects by default" is disabled
0%
Description
Currently, the tracker filter shows all trackers enabled in the current projects and subprojects. However, it makes no sense to show subprojects trackers when "Display subprojects issues on main projects by default" (Setting.display_subprojects_issues
) is disabled because filtering by those trackers always shows no issue.
Assume that there are two projects, p_main and its subproject p_sub. foo and bar trackers are enabled for p_main, and bar and baz trackers are enabled for p_sub.
Project | Enabled trackers |
---|---|
p_main | foo, bar |
p_sub | bar, baz |
Tracker filter in p_main has 3 options, foo, bar, and baz. It is OK because issues in p_sub is displayed in p_main as well by default.
When you turn off "Display subprojects issues on main projects by default" setting, issues in p_sub are no longer displayed in the issues list of p_main. This means that all issues displayed in p_main should belong to one of the two trackers, foo or bar. However, the tracker filter still shows a tracker baz which is only enabled in the subproject baz. The option baz in the tracker filter is useless because issues with baz tracker are never displayed in p_main's issues list.
Setting.display_subprojects_issues |
Possible trackers in p_main's issues list | Available options for trackers filter |
---|---|---|
'0' | foo, bar | foo, bar, baz |
'1' | foo, bar, baz | foo, bar, baz |
Files