-
Couldn't load subscription status.
- Fork 79
fixing VAMPS submission and fix #756 #1671
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
Conversation
|
👍 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? |
|
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 |
|
Thanks @antgonza |
| # 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] |
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.
Could it be that at this point, the number of prep templates is zero and that this would throw an IndexError?
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.
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 ...
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.
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_templatesallow_submission = len(prep_templates) == 1msg_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 oneprep_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
|
👍 looks good, just a few minor comments. |
fixing VAMPS submission and fix #756
😄