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

fix #3089 #3097

Merged
merged 2 commits into from
Apr 28, 2021
Merged

fix #3089 #3097

merged 2 commits into from
Apr 28, 2021

Conversation

antgonza
Copy link
Member

Extra from blocking, I added the possibility of showing a message so users have a better idea of why is blocked.

  • Current: before
  • This PR; note that all options are not valid but the per_sample_FASTQ shows a message with the reason: 3089

Copy link
Contributor

@adswafford adswafford left a comment

Choose a reason for hiding this comment

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

One small text update to help guide users and reduce qiita.help request, otherwise good, so when fixed I'll pop back on to approve.


if ((count_ok || (!is_required && num_children === 0))) {
if ($("#artifact-type").val() === 'per_sample_FASTQ' && num_samples !== num_children) {
message = "per_sample_FASTQ expects the same number of samples and run_prefix.";
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a slightly altered message to be clearer:
per_sample_FASTQ expects one run_prefix per sample. Check for duplicate or missing run_prefix entries.

mark_as_correct(this);

if ((count_ok || (!is_required && num_children === 0))) {
if ($("#artifact-type").val() === 'per_sample_FASTQ' && num_samples !== num_children) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if ($("#artifact-type").val() === 'per_sample_FASTQ' && num_samples !== num_children) {
if (($("#artifact-type").val() === 'per_sample_FASTQ') && (num_samples !== num_children)) {

@adswafford adswafford merged commit cac9820 into qiita-spots:dev Apr 28, 2021
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.

3 participants