Project

General

Profile

Actions

Feature #27097

closed

Raise the maximum length of key/value list custom field values from 60 to 255 characters

Added by Rene Sperling about 9 years ago. Updated 3 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Custom fields
Target version:
Resolution:
Fixed

Description

Hello

I want to use the key/value list.
When I try to enter a new possible value longer than 60 characters it won't be added to the available list.
Also editing existiong entries with longer text won't be saved.

Please set the textlength to 255 characters.


Files


Related issues

Has duplicate Redmine - Defect #30440: Custom Key/value List restrained with text lengthClosedActions
Actions #1

Updated by Mischa The Evil almost 9 years ago

  • Tracker changed from Patch to Feature
  • Subject changed from CustomField Key/value list - value is too short to Key/value custom field; Raise length limit from 60 to 255
  • Category changed from Issues to Custom fields

The current, 60-char. limit is enforced by source:/trunk/app/models/custom_field_enumeration.rb@16970#L22.

Actions #2

Updated by Rene Sperling over 8 years ago

Mischa The Evil wrote:

The current, 60-char. limit is enforced by source:/trunk/app/models/custom_field_enumeration.rb@16970#L22.

Is there a chance, that this will change someday?

Actions #3

Updated by Jyrki Lilja 9 months ago

Mischa The Evil wrote in #note-1:

The current, 60-char. limit is enforced by source:/trunk/app/models/custom_field_enumeration.rb@16970#L22.

Is there a reason for the limit? As far as I can see the field in the db has `text` as type so it should be able to hold a value with unlimited length.

Actions #4

Updated by Go MAEDA 10 days ago

The attached patch raises the maximum length of a key/value list value from 60 to 255 characters.

The current limit is inconsistent with the "List" format. Possible values of a List custom field have no length validation at all, so values longer than 60 characters can already be used there. Only the key/value list format restricts a value to 60 characters. As a result, users who want to switch from List to Key/value list cannot do so if any of their values exceeds that limit.

The 60-character limit is enforced only by a model validation. The custom_field_enumerations.name column is a string column that can already store 255 characters, so no migration is required.

Actions #5

Updated by Go MAEDA 10 days ago

  • Has duplicate Defect #30440: Custom Key/value List restrained with text length added
Actions #6

Updated by Go MAEDA 9 days ago

  • Target version changed from Candidate for next major release to 7.1.0

Setting the target version to 7.1.0.

Actions #7

Updated by Go MAEDA 3 days ago

  • Subject changed from Key/value custom field; Raise length limit from 60 to 255 to Raise the maximum length of key/value list custom field values from 60 to 255 characters
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch in r25153.

Actions

Also available in: Atom PDF