jsnyders / ClimbingComp

Mobile Web Application for scoring Rock Climbing Competitions
GNU Affero General Public License v3.0
11 stars 1 forks source link

Aliases (and other flexibility) in input data #9

Closed badpens closed 9 years ago

badpens commented 9 years ago

I think I already saw some of these (e.g. category/gender aliases), but here are some other things that are good to have:

Where is there is a set of valid input values (e.g. gender, category, region), allow a case-insensitive match. That is, fEmaLE is an aliase for Female.

Aliases: Gender: F=Female; M=Male Category: Jr=Junior; YC=C=YouthC='Youth C'=Youth-C; (notice the ) USAC#: none=n/a=na=no= Region: =... (just the region numbre)

When matching an EventClimber input to Climber

jsnyders commented 9 years ago

On import of master list of climbers or event climbers gender, category, and region are all case insenstive. Gender allows f or m Category allows youth[- ]?[a-d], junior, jr, open, adult, master, masters, [a-d] Region allows just the region number (e.g. 401) or any substring of the full name as long as it is unique. for example "heart" matches "401 (Heartland)" USAC# must be blank When matching by first and last name the match is case insensitive Currently master climber data always fabored over event climber info

So I believe the import parsing is very flexible. The only cases above that are not handled are