Feature #25052

Allow to disable description field in tracker setting

Added by Go MAEDA 6 months ago. Updated 6 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Issues
Target version:3.4.0
Resolution:Fixed

Description

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.

disable-description-field.diff Magnifier - patch (956 Bytes) Go MAEDA, 2017-02-12 04:09

disable-description-field_fixed-test.diff Magnifier (1.57 KB) Mischa The Evil, 2017-02-15 07:58


Related issues

Related to Redmine - Feature #15918: Managing "description" field Closed 2009-12-11
Related to Redmine - Patch #21705: Option for long text custom fields to be displayed using ... Closed

Associated revisions

Revision 16351
Added by Jean-Philippe Lang 6 months ago

Allow to disable description field in tracker setting (#25052).

Patch by Go MAEDA and Mischa The Evil.

History

#1 Updated by Go MAEDA 6 months ago

#2 Updated by Go MAEDA 6 months ago

  • Related to Patch #21705: Option for long text custom fields to be displayed using full width added

#3 Updated by Marius BALTEANU 6 months ago

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.

#4 Updated by Go MAEDA 6 months ago

  • Target version set to 3.4.0

I think this feature will make #21705 much greater.
Setting target version to 3.4.0.

#5 Updated by Mischa The Evil 6 months ago

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.

#6 Updated by Go MAEDA 6 months ago

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.

#7 Updated by Jean-Philippe Lang 6 months ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Committed, thanks to both of you.

Also available in: Atom PDF