プロジェクト

全般

プロフィール

Vote #81165

完了

"is not" operator for Subproject filter incorrectly excludes closed subprojects

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Filters_59
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
59
version_id:
161
issue_org_id:
34375
author_id:
332
assigned_to_id:
332
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

"is not" operator for Subproject is expected to exclude only given projects, however, it actually excludes closed projects as well.

Suppose the following project tree.

parent(status: active) -- issue15
 +-- child1 (status: closed) -- issue16
 +-- child2 (status: active) -- issue17
 +-- child3 (status: active) -- issue18

When you apply the issues filter "[Subproject] [is not] [child3]" on the "parent", issues from "child1" and "child2" should be displayed but you will see issues only from child2.

Applying issues filter "[Subproject] [is not] [child3]" on the "parent":

[Expected result]
issue15, issue16, issue17

[Actual result]
issue15, issue17

The behavior is clearly inconsistent with the "is" and "any" operator, because the "is" operator is can be used for closed projects and displays its issues, and the "any" operator includes closed projects as well as active projects.


journals

--------------------------------------------------------------------------------
The issue is caused at source:branches/4.1-stable/app/models/query.rb#L886
--------------------------------------------------------------------------------
This issue has been fixed in r20693. The attached test code makes sure that.
--------------------------------------------------------------------------------
Committed the test code.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,34297,Subprojects issues are not displayed on main project when all subprojects are closed

Admin Redmine さんが3年以上前に更新

  • カテゴリFilters_59 にセット
  • 対象バージョン4.0.8_161 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0