Closed mgopez closed 3 years ago
Hi, thanks for contributing this. I will have a close look at it today. It looks like it will improve matching without compromising any existing functionality.
@hellothisisMatt I approved this, then had to revert it on further testing.
On the surface this seems to avoid miss-match on fields with extra spaces in labels. But the algorithm for aligning data columns to template still must run - and it currently depends on exact string match. See main.js mapMatrixToGrid function unmappedHeaders code. So that code needs to be changed too, otherwise each space-mismatched header column of info won't be uploaded. I think that is the only other point in code that pays attention to uploaded file's exact field names, but I'm not sure.
A less UI friendly approach would be just to issue a report/warning of fields that differ only by spaces, and have user manually change this in file before reuploading. But this isn't as nice as changing mapMatrixToGrid().
Hey @ddooley, thanks for the reply. I can have a look at making unmappedHeaders
required changes as well.
Issue:
Fix: