Skip to content

LKSM: Multivalue text choice automation: Sample Finder MVFK#2928

Merged
DariaBod merged 6 commits intodevelopfrom
fb_sampleFinderMVFK
Apr 8, 2026
Merged

LKSM: Multivalue text choice automation: Sample Finder MVFK#2928
DariaBod merged 6 commits intodevelopfrom
fb_sampleFinderMVFK

Conversation

@DariaBod
Copy link
Copy Markdown
Contributor

@DariaBod DariaBod commented Mar 31, 2026

Rationale

Make MVTC selections more predictable using bitmaskSelect.

Related Pull Requests

fixes for mvtc values in other tests
bitmaskSelect for selecting mvtc values
Comment on lines +193 to +196
// Use i + 1 as a bitmask so each row gets a deterministic, non-empty subset of choices,
// consistent with how other field types (Integer, Boolean, TextChoice) use i for predictable data.
// Salt with queryName hash so different entity types produce distinct MVTC values at the same row index.
List<String> values = bitmaskSelect(validator.getValues(), i + 1, queryName.hashCode());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Other than string fields, all of the other data types have predictable values based only on the row index. Why do MVTC values need to be distinct between different queries?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The main problem is the testMVTCWithMPlusNAncestors() test. Since MVTC values are based only on a row index, they are the same for Sources, Parents, and Samples with that index. This means sorting and filtering results are also identical, which I think results in poor test coverage.

@DariaBod DariaBod requested a review from labkey-tchad April 7, 2026 18:27
Comment on lines +501 to +505
public String getNamePart()
{
return _namePart;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add getNamePart to FieldInfo instead. It's guaranteed to be non-null there.

@DariaBod DariaBod merged commit 86645d0 into develop Apr 8, 2026
5 checks passed
@DariaBod DariaBod deleted the fb_sampleFinderMVFK branch April 8, 2026 16:05
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