-
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
cleanup from import automation testing on prod #333
Comments
We ended up with several different issues including used queries:run delete and queries:run update to clean up these records. |
This is complete, @eecavanna ran refscan yesterday to confirm that there were no more referential integrity errors and confirmed by the following mongo aggregation query db.getCollection('data_generation_set').aggregate(
[
{
$match: {
associated_studies:
'nmdc:sty-11-28tm5d36',
analyte_category: 'metagenome',
processing_institution: 'JGI'
}
},
{
$lookup: {
from: 'data_object_set',
localField: 'has_output',
foreignField: 'id',
as: 'data_object_set'
}
},
{
$lookup: {
from: 'workflow_execution_set',
localField: 'id',
foreignField: 'was_informed_by',
as: 'workflow_execution_set'
}
},
{
$lookup: {
from: 'data_object_set',
localField:
'workflow_execution_set.has_output',
foreignField: 'id',
as: 'workflow_output'
}
}
],
{ maxTimeMS: 60000, allowDiskUse: true }
); |
That is true, other than the 33 that we expect to be there (unrelated to this cleanup). |
WorkflowExeuction records which decend from the following data_generation_set records have duplicate records which need to be fixed:
nmdc:omprc-12-hgksne68
nmdc:omprc-12-c06jgr44
nmdc:omprc-12-scg48547
nmdc:omprc-12-qhne3f15
nmdc:omprc-12-bcd5ve19
nmdc:omprc-12-bk872674
nmdc:omprc-12-h5aayv46
The text was updated successfully, but these errors were encountered: