Support for integer/float custom fields
|Reported by:||pipern||Owned by:|
|Cc:||osimons, leho@…, Ryan J Ollos||Branch:|
Adds integer and float as custom field type and query language constraints
Adds a 'datatype' key to the TicketSystem.fields list, which can contain string:
See http://article.gmane.org/gmane.comp.version-control.subversion.trac.devel/6561 for some discussion.
We'd like to be able to mark some custom fields as "contains integer" or "contains floating number". This would then let us sort numerically, validate user input, add an aggregation/summing feature, and so on.
We're not thinking of changing the storage type, nor, currently, the Python type that exists in the ticket.fields list. Instead, we just validate the user input and then later we can also attempt to convert the field value to the numeric type if we want to do sorting or summing.