Skip to content

Empty line with mvtc column should be treated as empty line#7493

Merged
XingY merged 2 commits intodevelopfrom
fb_mvtc_emptyLine
Mar 16, 2026
Merged

Empty line with mvtc column should be treated as empty line#7493
XingY merged 2 commits intodevelopfrom
fb_mvtc_emptyLine

Conversation

@XingY
Copy link
Contributor

@XingY XingY commented Mar 15, 2026

Rationale

Blank MVTC will be parsed as empty array [] during import. This resulted in blank row being treated as a nonblank row with non-null MVTC field. Empty MV array should not flag a line as non blank.

SMSampleTypeMultiChoiceTest & SMSourceTypeMultiChoiceTest
Extra lines in the Excel file are creating unexpected rows during import.

Related Pull Requests

Changes

@XingY XingY requested a review from labkey-matthewb March 15, 2026 05:28
@XingY XingY self-assigned this Mar 16, 2026
// GitHub Issue 925: Not providing a MVTC value in an assay result throws error
// convert blank to empty array, not null
values[i] = column.converter.convert(column.clazz, fld);
if (values[i] instanceof MultiChoice.Array array)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there value is making this more generic? instanceof List and/or instanceof java.sql.Array?

@XingY XingY merged commit 22e06f2 into develop Mar 16, 2026
6 of 8 checks passed
@XingY XingY deleted the fb_mvtc_emptyLine branch March 16, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants