Skip to content

use enum for possible fieldTypes #368

@eaquigley

Description

@eaquigley

Author Name: Philip Durbin (@pdurbin)
Original Redmine Issue: 3783, https://redmine.hmdc.harvard.edu/issues/3783
Original Date: 2014-03-26
Original Assignee: Steve Kraffmiller


This ticket is a placeholder for this thread:

From: Philip Durbin <philip_durbin@harvard.edu>
Date: Thu, Mar 20, 2014 at 8:33 AM
Subject: textBox or textbox? source of truth for possible fieldTypes?
To: Dataverse Team

textbox, text, date, email, and url and the current types defined at https://docs.google.com/spreadsheet/ccc?key=0AjeLxEN77UZodHFEWGpoa19ia3pldEFyVFR0aFVGa0E&usp=sharing

We're thinking we should make an enum (or something) the source of truth for this list of fieldTypes and refactor the code accordingly. Solr needs to know the types up front to avoid runtime exceptions while indexing.

Also, maybe we should call it textarea rather than text or textbox since that's what it is in HTML.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions