-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Y24-268 - Create a presenter for automated submission for WGS branch on Adp Lig plate #1982
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1982 +/- ##
===========================================
+ Coverage 77.97% 78.18% +0.21%
===========================================
Files 459 466 +7
Lines 17699 17989 +290
Branches 225 225
===========================================
+ Hits 13800 14065 +265
- Misses 3897 3922 +25
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
state :passed do | ||
include StateAllowsChildCreation | ||
include DoesNotAllowLibraryPassing | ||
|
||
def sidebar_partial | ||
'submission_default' | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'submission_default'
shows the newly combined sidebar
include Presenters::StateChangeless | ||
# TODO: confirm Presenters::StateChangeless is not required here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost certainly incorrect, but as StateChangeless says "Include in presenters that suppress state changes under all circumstances", this feels like a good start. If State Changes are prevented the Manual Transfer button is not displayed (and I'm assuming the plate cannot enter passed state).
I suspect the way forward is to specify under what circumstances the state may change or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solved by creating a new SubmissionBehaviour
in d15c05e that can be used where required
@yoldas @KatyTaylor @andrewsparkes thanks for the conversation this morning - it gave me a much better idea of what we are trying to achieve, the various ways of doing so, and why. |
<%# TODO: confirm that this is a suitable check and does not disrupt workflows besides LCMT WGS branch %> | ||
<% if not presenter.labware.any_complete_requests? %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I check and confirm this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any checking of requests working on a labware created via permissive presenters, because I think that labware will be in pending state and have no aliquots/samples or requests because nothing has been transferred into it yet.
(we discussed this the other day, but I forget the conclusion! am I wrong?)
In theory a plate in a pipeline could have both completed and active requests. e.g. Bespoke chromium splits into 3 library preps each with a different submission and requests. So, including the closed request for the DNA prep part of the pipeline that ends with creation of the branch point plate, the branch plate could have 3 more to make 4 in total, e.g. 2 completed sets of library prep requests per well plus a third set of library prep requests still active (3 different library types). (NB. that one does not have automated submissions)
- Potential multiple workflows will be evident from multiple buttons - Active workflows/submissions will be visible above this message
From issue story:
|
Code Climate has analyzed commit 44817ff and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 91.2% (0.1% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just check Submission values for WGS.
template_name: 'Limber-Htp - LCM Triomics WGS' | ||
allowed_extra_barcodes: false | ||
request_options: | ||
# TODO: replace with the correct request options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assume you've asked Scott about those fragment sizes?
Closes sanger/sequencescape#4290
Changes proposed in this pull request
PermissiveSubmissionPlatePresenter
adding elements of thePermissivePlatePresenter
to theSubmissionPlatePresenter
Current issues
Add an empty ___ plate
button - I think this is expected?Current screenshots
Previous screenshots
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