Project

General

Profile

Actions

Defect #34398

closed

Tracker filter shows subprojects trackers even when "Display subprojects issues on main projects by default" is disabled

Added by Go MAEDA over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Filters
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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

34398.patch (1.67 KB) 34398.patch Yuichi HARADA, 2020-12-14 03:58
Actions

Also available in: Atom PDF