Skip to content

disable the button for the same request type only#2731

Merged
wendyyang merged 12 commits intoTriomic_Epicfrom
2665-y26-004---lcm-triomics---choose-workflow-emseq-rnaseq
Mar 16, 2026
Merged

disable the button for the same request type only#2731
wendyyang merged 12 commits intoTriomic_Epicfrom
2665-y26-004---lcm-triomics---choose-workflow-emseq-rnaseq

Conversation

@wendyyang
Copy link
Contributor

Closes #

Changes proposed in this pull request

update disable workflow button condition

Instructions for Reviewers

[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.94%. Comparing base (c789c0f) to head (633edf7).
⚠️ Report is 13 commits behind head on Triomic_Epic.

Additional details and impacted files
@@               Coverage Diff                @@
##           Triomic_Epic    #2731      +/-   ##
================================================
+ Coverage         84.91%   84.94%   +0.02%     
================================================
  Files               502      502              
  Lines             20615    20619       +4     
  Branches            377      377              
================================================
+ Hits              17506    17515       +9     
+ Misses             3106     3101       -5     
  Partials              3        3              
Flag Coverage Δ
javascript 80.25% <ø> (ø)
pull_request 84.94% <100.00%> (+0.02%) ⬆️
push 84.94% <100.00%> (+0.02%) ⬆️
ruby 92.54% <100.00%> (+0.06%) ⬆️

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.

@wendyyang wendyyang marked this pull request as ready for review March 5, 2026 08:59
@wendyyang
Copy link
Contributor Author

Click one of the button, submission is building, both button disabled
Screenshot 2026-03-05 at 11 43 05

When the submission is ready, the requests active, only one of the button disabled
Screenshot 2026-03-05 at 11 43 45

@wendyyang wendyyang requested a review from KatyTaylor March 5, 2026 14:50
@wendyyang wendyyang requested a review from KatyTaylor March 11, 2026 18:12
labware.all_requests.any?(&:pending?)
def template_request_type(uuid)
template = Sequencescape::Api::V2::SubmissionTemplate.find_by(uuid:)
template.request_type_keys.first
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see there's an associated SS PR to update the API here - https://github.com/sanger/sequencescape/pull/5605/changes 👍

So you'll have to release that first / at the same time.

@wendyyang wendyyang merged commit 3febc5d into Triomic_Epic Mar 16, 2026
16 checks passed
@wendyyang wendyyang deleted the 2665-y26-004---lcm-triomics---choose-workflow-emseq-rnaseq branch March 16, 2026 17:45
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