Skip to content
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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

wendyyang
Copy link
Contributor

@wendyyang wendyyang commented Jan 23, 2025

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

Copy link
Member

@yoldas yoldas left a 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
Copy link
Member

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
Copy link
Member

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 %>
Copy link
Member

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.

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.

Y25-002 - [BUG] Duplicate Samples per Pool validations for scRNA cDNA Prep Submission
2 participants