ucsd-ccbb / qiimp

Web application to collect metadata specifications from an experimenter and produce metadata input files with appropriate constraints
3 stars 7 forks source link

Normalize capitalization in Field Names inputs #76

Open AmandaBirmingham opened 6 years ago

AmandaBirmingham commented 6 years ago

From Austin 11/30/2017: Can capitalization be allowed in entry, but converted when assigning to the list box? (and using the existing structure to check for duplicates?). When I copied from excel I had a ton of errors, but most of them turned out to be capitalization errors.

AmandaBirmingham commented 6 years ago

Amanda's response: Not sure this is strictly a bug :) This can definitely be done but we should think a little about it first—for example, will we warn the user we are changing their inputs? This is too big a new feature to add in the remaining time, but I will add it to the issues list. What priority (must-have, nice-to-have, someday/maybe) do you want to give it?

AmandaBirmingham commented 6 years ago

Austin's response: Let's make it a someday/maybe and wait to see if it is mettlesome for other users.

adswafford commented 6 years ago

Having done this a few more times, it is a pain; adding To Scope

adswafford commented 6 years ago

Tied to #157

adswafford commented 6 years ago

Follow up on this in a hope to make it 'small scope'. I think a revised improved operation would be to at the verification stage (when the user clicks 'Add field'), we cast their strings to lower and replace any spaces with underscores, then check for compliance with special characters.

Then we add a note under the "Enter custom fields by typing their names into the box below and/or uploading them from a previously created QIIMP file" that says "To enable Qiita-compatibility, all field titles will be converted to lowercase only letters with all spaces replaced by underscores."

This should let users have flecibility in both copy and pasting and in entering and they'll see the results after adding the fields in the listbox as they input their custom field parameters.