microbiomedata / nmdc-schema

National Microbiome Data Collaborative (NMDC) unified data model
https://microbiomedata.github.io/nmdc-schema/
Creative Commons Zero v1.0 Universal
27 stars 8 forks source link

update code to delete unconnected workflow activity and data objects to same logging format as Michael's deletion function #1896

Closed aclum closed 3 months ago

aclum commented 5 months ago

There is code from https://github.com/microbiomedata/nmdc-schema/blob/28823618de2c17189934cdae0ca291d14fda0c08/nmdc_schema/connect_napa_mongo.py#L454 , lines 454 to 490, which based on a list of gold projects deletes workflow execution activities and data objects. These won't have a study ID b/c upstream records were never properly made. The deleted workflow records currently print to standard out but not in the same format the Michael is using and the data object deletions is not logged.

Please update to a more consistent logging to what is being done in PR https://github.com/microbiomedata/nmdc_automation/pull/83

mbthornton-lbl commented 3 months ago

Done in #1902