-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor Import Automation #353
base: main
Are you sure you want to change the base?
Conversation
…/github.com/microbiomedata/nmdc_automation into 332-issues-with-rerunning-import-automation
if object_type in ids: | ||
return ids[object_type] | ||
else: | ||
workflow_obj_id = self.runtime_api.minter(object_type) + ".1" |
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.
this is missing logic check if should mint an new ID + .1 versus increment an existing ID
proj['apType'] in ["Metagenome Analysis", "Metatranscriptome Analysis"]] | ||
else: | ||
ap_type_gold_analysis_data = [] |
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.
consider making this an error @mflynn-lanl
data_generation_update_query['updates'].append(update) | ||
|
||
# Already has nmdc output | ||
elif dg_output and dg_output[0].startswith('nmdc:dobj'): |
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.
This would be more robust if there was join on the data_object set record, making sure the 'name' of the data_object_set record matches what is in the import directory.
a data object is output by either a workflow execution or datq generation ID, both of with are planned processes
This PR address the issues described in #332
providing a re-write of the import automation code.
The changes in project import behavior include:
json:validate
endpointThe legacy activity_mapper package is replaced by a simplified import_mapper consisting of
The
import_projects
command has been re-written to separate file mapping / file linking / and NMDC Database update operations.Additional Changes
tests/import_project_dir
import_mapper
Additional changes - not directly related to import