プロジェクト

全般

プロフィール

Vote #78232

完了

Allow to disable description field in tracker setting

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

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

0%

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

説明

Since we can create a full width layout custom field which look like a description field in upcoming 3.4.0 (#21705), I think that we will sometimes want to replace a description field with a full width layout custom field for better and specific naming of the field.

I am sure that it would be great if Redmine 3.4.0 has an ability to disable description field on TrackersController#edit page, along with #21705.


journals

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

--------------------------------------------------------------------------------
Thanks Go MAEDA for this patch. It was on my plan to create it because we need it on the following use case:
- we want to define a "Test Case" tracker with 3 fields instead of the description field: Preconditions, Steps, Expected Results.

Currently, we can define the new fields, but we aren't able to disable the description.

--------------------------------------------------------------------------------
I think this feature will make #21705 much greater.
Setting target version to 3.4.0.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> [...] that it would be great if Redmine 3.4.0 has an ability to disable description field on TrackersController#edit page, along with #21705.

Although I'm not very glad with the integration of #21705, I do think that the ability to disable the description field for trackers would be a good addition to it.

I did some quick tests with your patch applied, and it seems to work without any side-effects. But this is something to look-out for by enabling the field to be disabled, as this is a long-time expectation (plugins?).
There is a test that fails with the changes applied though: @IssueTest#test_safe_attributes_names_should_not_include_disabled_field@ (source:/trunk/test/unit/issue_test.rb@16333#L806). This is however expected as we've turned the description field to be 'disablable'. I'll leave an updated, fixed (SVN) patch against source:/trunk@16333 which adds the removal of the test assertion.

--------------------------------------------------------------------------------
Mischa The Evil wrote:
> There is a test that fails with the changes applied though: @IssueTest#test_safe_attributes_names_should_not_include_disabled_field@ (source:/trunk/test/unit/issue_test.rb@16333#L806). This is however expected as we've turned the description field to be 'disablable'. I'll leave an updated, fixed (SVN) patch against source:/trunk@16333 which adds the removal of the test assertion.

Thanks, I had missed it.
--------------------------------------------------------------------------------
Committed, thanks to both of you.
--------------------------------------------------------------------------------


related_issues

relates,Closed,15918,Managing "description" field
relates,Closed,21705,Option for long text custom fields to be displayed using full width

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

  • カテゴリIssues_2 にセット
  • 対象バージョン3.4.0_119 にセット

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

いいね!0
いいね!0