cidgoh / DataHarmonizer

A standardized browser-based spreadsheet editor and validator that can be run offline and locally, and which includes templates for SARS-CoV-2 and Monkeypox sampling data. This project, created by the Centre for Infectious Disease Genomics and One Health (CIDGOH), at Simon Fraser University, is now an open-source collaboration with contributions from the National Microbiome Data Collaborative (NMDC), the LinkML development team, and others.
MIT License
94 stars 26 forks source link

Add utility methods for parsing and formatting multivalued cell values #376

Closed pkalita-lbl closed 1 year ago

pkalita-lbl commented 1 year ago

These changes introduce two complimentary utility methods, parseMultivaluedValue and formatMultivaluedValue. They are used during multivalued cell editing, data object loading, and validation to normalize the behavior of translating between arrays and delimited strings. See accompanying tests for details about how they handle edge cases.

Fixes #375