-
Couldn't load subscription status.
- Fork 79
fix #2320 #3031
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
Merged
Merged
fix #2320 #3031
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7fa7d21
fix #2320
antgonza 4ca1928
adding prints to debug
antgonza 452d389
children -> 1
antgonza 3465822
APIArtifactHandlerTest -> APIArtifactHandlerTests
antgonza 852451f
configure_biom
antgonza b03af97
qdb.util.activate_or_update_plugins
antgonza 4c85841
improving code
antgonza 3c30d11
almost there
antgonza 309a31d
add values.template
antgonza c525114
fix filepaths
antgonza 0ee6a9e
filepaths -> files
antgonza 3eec96a
fixing errors
antgonza 116e8aa
add prep.artifact insertion
antgonza b08b38a
addressing @ElDeveloper comments
antgonza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -1125,18 +1125,32 @@ def _complete_artifact_definition(self, artifact_data): | |||
| if job_params['provenance'] is not None: | ||||
| # The artifact is a result from a previous job | ||||
| provenance = loads(job_params['provenance']) | ||||
| if provenance.get('data_type') is not None: | ||||
| artifact_data = {'data_type': provenance['data_type'], | ||||
| 'artifact_data': artifact_data} | ||||
|
|
||||
| sql = """UPDATE qiita.processing_job_validator | ||||
| SET artifact_info = %s | ||||
| WHERE validator_id = %s""" | ||||
| qdb.sql_connection.TRN.add( | ||||
| sql, [dumps(artifact_data), self.id]) | ||||
| qdb.sql_connection.TRN.execute() | ||||
| # Can't create the artifact until all validators are completed | ||||
| self._set_status('waiting') | ||||
| if ('direct_creation' in provenance and | ||||
| provenance['direct_creation']): | ||||
| original_job = ProcessingJob(provenance['job']) | ||||
| qdb.artifact.Artifact.create( | ||||
| filepaths, atype, | ||||
| parents=original_job.input_artifacts, | ||||
| processing_parameters=original_job.parameters, | ||||
| analysis=job_params['analysis'], | ||||
| # data_type=data_type, | ||||
|
||||
| # data_type=data_type, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.