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.
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
- 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.
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?
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.
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.
- Has duplicate Defect #30440: Custom Key/value List restrained with text length added
- Target version changed from Candidate for next major release to 7.1.0
Setting the target version to 7.1.0.
- 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.
Also available in: Atom
PDF