Skip to content

GitHub Issue 1366: inventory-addSamples API cleanup - #7916

Merged
XingY merged 1 commit into
developfrom
fb_issue1366
Aug 11, 2026
Merged

GitHub Issue 1366: inventory-addSamples API cleanup#7916
XingY merged 1 commit into
developfrom
fb_issue1366

Conversation

@XingY

@XingY XingY commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Rationale

Related Pull Requests

Changes

  • Move utils to check out of scope samples/data from Workflow to ExperimentService

@XingY
XingY requested a review from cnathe August 10, 2026 22:35
filter.addClause(cf.createFilterClause(entityTable.getSchema(), FieldKey.fromParts("Container")));

Set<Long> inScope = new HashSet<>(new TableSelector(entityTable, Collections.singleton("RowId"), filter, null).getArrayList(Long.class));
return entityIds.stream().anyMatch(id -> !inScope.contains(id));

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.

since we are dealing with RowIds in both the entityIds collection and the inScope collection, could we just return a check for if the size of the collections match? If the size of the inScope set is smaller than the entityIds side, then there are some not in scope, right?

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 see now after doing the CR on the limsModules side that this method was just ported over from WorkflowManager, so fine to leave it as is. I thought this was new code.

@XingY
XingY merged commit 9f68a2b into develop Aug 11, 2026
12 of 14 checks passed
@XingY
XingY deleted the fb_issue1366 branch August 11, 2026 16:27
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