プロジェクト

全般

プロフィール

Vote #79283

完了

Cannot find an issue from a closed subproject when search scope is Project and its subprojects

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
16
version_id:
143
issue_org_id:
28636
author_id:
305112
assigned_to_id:
332
comments:
8
status_id:
5
tracker_id:
1
plus1:
1
affected_version:
closed_on:
affected_version_id:
140
ステータス-->[Closed]

説明

Hi,

I have a main project with several closed subprojets. I want to find an issue from one of these closed projects.
Using the search function with 'project with subprojects' Redmine does not list it.
When using 'all projects' or reopening the concerning project Redmine shows the issue.

If this is not a bug, it would be nice to have an option to switch that behavior off.


journals

+1
--------------------------------------------------------------------------------
Confirmed the problem.

Scope 'subprojects' is the only scope that searches only in the active projects. Scopes 'all' and 'my projects' include also closed projects. I think we should be consistent with the behaviour between the search scopes. At the same time, maybe it is a good idea to have an option in the search page to include only active projects in the search (how we have for the issues).
--------------------------------------------------------------------------------
I agree with Marius' opinion. Jean-Philippe wrote in #6049#note-9 as follows. It is obvious that closed subprojects should be searchable.

> I'm closing this request since 2.1.0 adds the ability to close projects. Closed projects are still visible/searchable but read-only.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Attached the patch. I think we can include this fix in 3.4.7 or 3.3.9.

All tests pass: https://gitlab.com/marius-balteanu/redmine/pipelines/39107412
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
LGTM. Setting the target version to 3.3.9.
--------------------------------------------------------------------------------
Committed the patch. Thank you for catching and fixing this issue.

I didn't commit the fix to 3.3-stable branch because a test failed.

<pre>
$ ruby test/functional/search_controller_test.rb
Run options: --seed 17373

# Running:

...............................F.

Finished in 7.689243s, 4.2917 runs/s, 14.1756 assertions/s.

1) Failure:
SearchControllerTest#test_search_should_include_closed_projects [test/functional/search_controller_test.rb:302]:
Expected at least 1 element matching "#search-results", found 0..
Expected 0 to be >= 1.

33 runs, 109 assertions, 1 failures, 0 errors, 0 skips
</pre>
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリSearch engine_16 にセット
  • 対象バージョン3.4.7_143 にセット

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

いいね!0
いいね!0