Skip to content

GH Issue 1412: Don't allow job task ids for assay types not referenced in actions - #8010

Merged
labkey-susanh merged 2 commits into
developfrom
fb_assayImportTaskId
Sep 2, 2026
Merged

GH Issue 1412: Don't allow job task ids for assay types not referenced in actions#8010
labkey-susanh merged 2 commits into
developfrom
fb_assayImportTaskId

Conversation

@labkey-susanh

@labkey-susanh labkey-susanh commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Rationale

Issue 1412

Related Pull Requests

Changes

  • Add check that assay id is referenced in the job task id provided.

@labkey-susanh
labkey-susanh requested a review from cnathe September 2, 2026 15:04
WorkflowService workService = WorkflowService.get();

if (workService != null && protocol != null && !workService.isTaskAssayType(workflowTaskId, protocol.getRowId()))
throw new ExperimentException("Invalid job task id " + workflowTaskId + ". Either the task does not exist or does not reference this assay type.");

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.

so we weren't even validating that the workflowTaskId was an existing task before? Nice to get both of those validations here in one place.

@labkey-susanh
labkey-susanh merged commit ff35ad0 into develop Sep 2, 2026
9 of 10 checks passed
@labkey-susanh
labkey-susanh deleted the fb_assayImportTaskId branch September 2, 2026 17:44
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