Skip to content

Conversation

@antgonza
Copy link
Member

@antgonza antgonza commented Mar 2, 2016

😄

@josenavas
Copy link
Contributor

👍 While doing some test refactoring in the artifact-study-pages branch I realized that there are no tests for this. Is there because this can't be tested? Not blocker for this PR, but is it possible to talk with the VAMPS developers so we can have a test submission site?

@antgonza
Copy link
Member Author

antgonza commented Mar 2, 2016

The submission is basically a FTP call and should be really easy to test: submit and check that the file is there ... added an issue for that #1672

@josenavas
Copy link
Contributor

Thanks @antgonza
@ElDeveloper @mortonjt available for a quick review?

# did so it doesn't fail.
# We currently support only one prep template for submission, so
# grabbing the first one
prep_template = prep_templates[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Could it be that at this point, the number of prep templates is zero and that this would throw an IndexError?

Copy link
Member Author

Choose a reason for hiding this comment

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

Theoretically it could but in practice it can't: the only way to get to this point is by clicking on a button that is only shown when you see the summary of the prep template ...

Copy link
Contributor

Choose a reason for hiding this comment

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

Noted, thanks!

On (Mar-02-16|12:57), Antonio Gonzalez wrote:

  •    prep_template = PrepTemplate(preprocessed_data.prep_template)
    
  •    sample_template = SampleTemplate(preprocessed_data.study)
    
  •    study = Study(preprocessed_data.study)
    
  •    prep_templates = preprocessed_data.prep_templates
    
  •    allow_submission = len(prep_templates) == 1
    
  •    msg_list = ["Submission to EBI disabled:"]
    
  •    if not allow_submission:
    
  •        msg_list.append(
    
  •            "Only artifacts with a single prep template can be submitted")
    
  •    # If allow_submission is already false, we technically don't need to
    
  •    # do the following work. However, there is no clean way to fix this
    
  •    # using the current structure, so we perform the work as we
    
  •    # did so it doesn't fail.
    
  •    # We currently support only one prep template for submission, so
    
  •    # grabbing the first one
    
  •    prep_template = prep_templates[0]
    

Theoretically it could but in practice it can't: the only way to get to this point is by clicking on a button that is only shown when you see the summary of the prep template ...


Reply to this email directly or view it on GitHub:
https://github.com/biocore/qiita/pull/1671/files#r54789962

@ElDeveloper
Copy link
Contributor

👍 looks good, just a few minor comments.

ElDeveloper added a commit that referenced this pull request Mar 2, 2016
fixing VAMPS submission and fix #756
@ElDeveloper ElDeveloper merged commit cffc39e into qiita-spots:master Mar 2, 2016
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