Skip to content

Kanban 2256: Exclude selected rows from Luminex results, across runs - #1120

Open
cnathe wants to merge 31 commits into
developfrom
fb_exclude_selected_rows_2256
Open

cnathe wants to merge 31 commits into
developfrom
fb_exclude_selected_rows_2256

Conversation

@cnathe

@cnathe cnathe commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

Lets Luminex users exclude analytes for, or remove exclusions from, the rows they select in the assay results grid, including rows from up to 10 runs at once.

Until now, well and replicate group exclusions were made one at a time, from each row's exclusion link, within a single run. Labs that review many standards and controls across runs had to open that dialog repeatedly to exclude the same analytes. With this change they can check the rows in the results grid, for one run or across runs, and review and save all the resulting exclusions in one step. The existing per-row link and the other exclusion dialogs are unchanged. Each job reruns the run's transform script once, instead of after every exclusion.

Related Pull Requests

  • None

Changes

  • The results grid's Exclusions menu adds Exclude Selected Rows and Remove Selected Exclusions, on one run's results and on the results for all runs, which show only these two items.
  • A dialog lists the well and replicate group exclusions the save will add, update or remove, with each run's Assay ID, notebook number and, when a run's rows span files, data file.
  • A selected row in a replicate group with summary rows excludes the whole group, as the existing well exclusion dialog does; other rows become single-well exclusions that merge into existing ones. Remove takes the selected analytes out of the exclusions covering them.
  • The save exclusion API accepts several runs and queues one pipeline job per run. It now checks that each run belongs to the assay, each data file belongs to its run, and updates and deletes name the exclusion they change.
  • A job's exclusion commands share one transaction and rerun the transform script once instead of after each command.
  • Fixes in the existing well exclusion dialog: a load race that could leave Save disabled, and a well listed twice under Wells in Group.
  • Fixes for re-importing a run to keep each single-well exclusion in a replicate group instead of merging them into one, and the re-import warning counts them separately.
  • New unit tests for the exclusion rules and save form, and a new Selenium test.

…after the last command instead of after each one,
…x run

- New Exclusions menu items open a dialog listing the well and replicate group exclusions to insert, update, or remove for the rows selected in the results grid
- The dialog's list is read-only, so a LabKey-styled table that wraps long values reads better than a selectable grid.
- Matches the existing well exclusion dialog
- Exclusions menu now shows Exclude Selected Rows and Remove Selected Exclusions on the results grid for all runs
- a selection that spans up to 10 runs saves one exclusion job per run
@cnathe cnathe self-assigned this Nov 25, 2026
- Retaining exclusions merged single-well exclusions of the same replicate group into one, and the re-import warning counted them as one, so all but one were lost.
@XingY
XingY self-requested a review November 29, 2026 04:55
{
private static final TestRun SUMMARY_RUN = new TestRun("SelectedRowsRun", TEST_ASSAY_LUM_FILE10, "Standard1", "NB-101", "");
private static final TestRun RAW_RUN = new TestRun("SelectedRowsRawRun", TEST_ASSAY_MULTIPLE_STANDARDS_1_XLSX, "Standard2", "NB-102", "plate 1 IgA-Biot + Standard2");
private static final TestRun OTHER_RUN = new TestRun("SelectedRowsOtherRun", TEST_ASSAY_LUM_FILE10, "Standard1", null, "");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it intentional to have OTHER_RUN and SUMMARY_RUN both use TEST_ASSAY_LUM_FILE10?

private void validateKeys(LuminexSaveExclusionsForm form, ExpRun run, Errors errors)
{
Set<Integer> keys = form.getCommands().stream()
.filter(command -> !"insert".equals(command.getCommand()))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For "insert", is it possible to verify that the exclusion doesn't already exist?

{
case "insert" ->
int remaining = commands.size();
for (LuminexSingleExclusionCommand command : commands)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess this is out of scope for this PR, but createExclusions doesn't seem to validate keys/dataids against current state.

groupWells.wellValues().computeIfAbsent(group, _ -> new HashSet<>()).add(well);
if (rs.getBoolean("Summary"))
groupWells.summaryGroups().add(group);
double dilution = rs.getDouble("Dilution");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Claude suggest to use Double.parseDouble(value.toString())

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