Skip to content

LKSM: Multivalue text choice automation: Assays#2918

Open
DariaBod wants to merge 4 commits intodevelopfrom
fb_mvtc_assay
Open

LKSM: Multivalue text choice automation: Assays#2918
DariaBod wants to merge 4 commits intodevelopfrom
fb_mvtc_assay

Conversation

@DariaBod
Copy link
Contributor

@DariaBod DariaBod commented Mar 20, 2026

Rationale

Added method for MVTC formatting and couple of other helper methods.

Related Pull Requests

@github-actions
Copy link

WARNING: This PR appears to have the default title generated by GitHub. Please use something more descriptive.

@DariaBod DariaBod changed the title Fb mvtc assay LKSM: Multivalue text choice automation: Assays Mar 21, 2026
public static List<String> sortValues(List<String> values)
{
return values.stream()
.filter(s -> !s.isEmpty())
Copy link
Member

Choose a reason for hiding this comment

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

This should probably throw an exception if one of the values is empty. If an empty value ends up in here, something probably went wrong upstream.

Suggested change
.filter(s -> !s.isEmpty())
.peek(s -> { if (s.isEmpty()) throw new IllegalArgumentException("Empty values aren't allowed: " + values);})

elementCache().manageMenu.doMenuAction("Edit Assay Design");
}

public AssayImportPage clickImportData()
Copy link
Member

Choose a reason for hiding this comment

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

I think this method didn't exist before because many assay types have custom import pages that aren't compatible with the standard AssayImportPage. I think it's fine to have this method but it should be documented that it only works for Standard assays.

while (textChoices.size() < size)
{
String generated = randomString(randomInt(1, 25)).trim();
String generated = randomString(randomInt(1, 25), "%<>").trim();
Copy link
Member

Choose a reason for hiding this comment

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

Why can't text choices include these characters? Any special exclusions should be documented.

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