-
Notifications
You must be signed in to change notification settings - Fork 5
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
DPL-947 dna control barcode v12 sequel i ie #1143
DPL-947 dna control barcode v12 sequel i ie #1143
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1143 +/- ##
========================================
Coverage 97.64% 97.64%
========================================
Files 369 369
Lines 11002 11003 +1
========================================
+ Hits 10743 10744 +1
Misses 259 259
📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
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.
All good. Just worth taking out the version code as it is no longer needed.
return if record.send(required_attribute).present? | ||
# If versions are specified, check that the record's smrt_link_version version | ||
# is included in the list | ||
if versions.present? && versions.exclude?(record.smrt_link_version.name) |
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 think we can remove this now.
config/pacbio_instrument_types.yml
Outdated
# TODO: fix this to have separate behaviour for v11 and v12 (see commit 05bfe764a8eafe) | ||
required_attributes: | ||
options: | ||
versions: |
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.
We can definitely remove the versions code but wait to hear back from Craig as to whether this needs to be required. It wasn't previously.
@@ -5,7 +5,7 @@ | |||
class MyClass | |||
include ActiveModel::Model | |||
|
|||
attr_accessor :attr_a, :attr_b, :attr_c, :attr_d | |||
attr_accessor :attr_a, :attr_b, :attr_c, :attr_d, :smrt_link_version |
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.
Again I think we can take this out now.
class RequiredAttributesValidator < ActiveModel::Validator | ||
attr_reader :required_attributes | ||
attr_reader :required_attributes, :versions |
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.
Versions aren't needed anymore?
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.
Sorry, missed out. Removed now 👍
DNA control complex box barcode set as a required field in v12 Sequel IIe
dpl947_enable_dna_control_barcode_pacbio_sequel_ii_v12
)pacbio_instrument_types_v1
pacbio_instrument_types_v2
-dna_control_complex_box_barcode
set as required_attribute"Samplesheet
dna_control_complex_box_barcode
field addedSMRT Link Version v11 made inactive in the rake task and database for UAT