-
Notifications
You must be signed in to change notification settings - Fork 33
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
4579-y25-002---bug-duplicate-samples-per-pool-validations #4638
base: develop
Are you sure you want to change the base?
4579-y25-002---bug-duplicate-samples-per-pool-validations #4638
Conversation
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 there is some redundant calls, which look like validations but they are not. There are no error messages added to the errors collection.
number_of_pools = rows.pluck(headers.index(HEADER_NUMBER_OF_POOLS)).uniq.first.to_i | ||
|
||
validate_samples_per_pool(rows, total_number_of_samples_per_study_project, number_of_pools) | ||
nil if plate.nil? | ||
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.
validate_for_plates
is not doing any validation. What is the purpose of it?
|
||
validate_samples_per_pool(rows, total_number_of_samples_per_study_project, number_of_pools) | ||
def validate_for_tubes(barcodes) | ||
find_tubes(barcodes) | ||
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.
validate_for_tubes
is not doing any validation. What is the purpose of it?
@@ -3,7 +3,6 @@ | |||
<strong>none</strong> of them will be processed. You will get feedback about any problems.</p> | |||
<% end %> | |||
<%= semantic_form_for @bulk_submission, html: { multipart: true } do |form| %> | |||
<%= form.semantic_errors :base %> |
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.
Note: This removes the duplicate listing of the same error messages at the form level because they are already listed at the input control level.
Closes #
Changes proposed in this pull request
remove duplicate validation
remove duplicate error messages display
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