プロジェクト

全般

プロフィール

Vote #77251

完了

Totals cannot be removed completely if some columns are set in the global settings

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

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

0%

予定工数:
category_id:
56
version_id:
121
issue_org_id:
22123
author_id:
80618
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
102
ステータス-->[Closed]

説明

  1. Set Estimated time as a totalable column in Administration\Settings\Issue tracking
  2. Display a list of issues: the estimated time is shown at the top and for each group if the list is grouped.
  3. Unroll the Options, uncheck Estimated time (and any other column for totals if there are), Apply Result: the Estimated time total is still shown.

In fact, it is not possible to completely remove totals if one or more column is set in the global settings.

For us, it is an issue,

  1. Because we want to have default totalable columns, as this is not saved in Custom queries (for the moment, maybe it will come in the future?)
  2. We want to produce some issue lists in PDF without showing time information, so without having totals shown.

A possible fix would be to add a hidden field in the issue filter form, and set it to indicate global settings should not apply when the user manually changed all totals to unchecked (attached patch, based on 3.2.0 code). This is not very elegant, but it works.


journals

Could you add test?
source:tags/3.2.1/test/ui/issues_test_ui.rb
--------------------------------------------------------------------------------
Sorry for the delay.
Here is a patch including tests. If you have a better solution than using sleep(1) for waiting for the page to reload after submitting the changes in totalable columns selection, I would be glad you update the test with it.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I committed a slightly simpler fix in r15510. The test was changed to avoid the sleep(1).
Thanks for pointing this out.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
??>>I committed a slightly simpler fix??

Smart one... thank you.
--------------------------------------------------------------------------------

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

  • カテゴリIssues filter_56 にセット
  • 対象バージョン3.2.4_121 にセット

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

いいね!0
いいね!0