Skip to content

Y26-063 - Quad stamp scan fails when plate has no active requests#2779

Merged
BenTopping merged 5 commits intodevelopfrom
Y26-063-quad-stamp-no-active-requests
Apr 16, 2026
Merged

Y26-063 - Quad stamp scan fails when plate has no active requests#2779
BenTopping merged 5 commits intodevelopfrom
Y26-063-quad-stamp-no-active-requests

Conversation

@BenTopping
Copy link
Copy Markdown
Contributor

@BenTopping BenTopping commented Apr 8, 2026

Closes #2728

Changes proposed in this pull request

  • Adds 'checkMinCountRequests' to MultiStamp to ensure at least one active library creation request exists on scanned plates.
  • Adds 'requireActiveLibraryRequests' config attribute to multi stamp purposes. We need to do config driven instead of enforcing for every MultiStamp plate as some are not at the start of library prep so will fail the requests check.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.00%. Comparing base (069cce4) to head (ac68a97).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2779      +/-   ##
===========================================
+ Coverage    84.99%   85.00%   +0.01%     
===========================================
  Files          504      504              
  Lines        20668    20684      +16     
  Branches       377      378       +1     
===========================================
+ Hits         17566    17582      +16     
  Misses        3099     3099              
  Partials         3        3              
Flag Coverage Δ
javascript 80.27% <100.00%> (+0.02%) ⬆️
pull_request 85.00% <100.00%> (+0.01%) ⬆️
push 85.00% <100.00%> (+0.01%) ⬆️
ruby 92.62% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

})
})

it.skip('fails if there are duplicate tubes even when the parent has not been updated', () => {
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.

I assume at one point this was dependent on the event but this is no longer the case so this is redundant. It has also been skipped for 7 years.

@BenTopping BenTopping requested a review from andrewsparkes April 8, 2026 14:07
Copy link
Copy Markdown
Member

@andrewsparkes andrewsparkes left a comment

Choose a reason for hiding this comment

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

Looks good, minor question about whether minimum number of requests would ever be more than 1.

Comment thread app/frontend/javascript/multi-stamp/components/MultiStamp.spec.js
// We can't enforce this check for all multi stamp plates because some may not be the first step of the workflow,
// and therefore may not have library requests yet. So we make it optional to check if the scanned plates have active library requests.
if (this.requireActiveLibraryRequests === 'true') {
validators.push(checkMinCountRequests(1))
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.

I think the minimum number of requests that's acceptable for a scanned plate is always going to be 1, did you think of a scenario where it might be a bigger number?

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.

Im reusing this method from somewhere else so not 100% sure why it was made to accept a parameter (1). There is another similar method called checkMaxCountRequests(x) which makes more sense to have a parameter so maybe its keeping inline with that.

@BenTopping BenTopping force-pushed the Y26-063-quad-stamp-no-active-requests branch from d302ed4 to ac68a97 Compare April 16, 2026 09:27
@BenTopping BenTopping merged commit 6a1c78a into develop Apr 16, 2026
24 checks passed
@BenTopping BenTopping deleted the Y26-063-quad-stamp-no-active-requests branch April 16, 2026 13:14
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.

Y26-063 - [BUG] Bioscan - Quad stamp plate scans are valid despite no active requests

2 participants