sibis-platform / ncanda-data-integration

This is the Data Integration, MRI, and Bioinformatics Component of the National Consortium on Alcohol and NeuroDevelopment in Adolescence (NCANDA), funded by the NIAAA.
https://www.nitrc.org/projects/ncanda-datacore
BSD 3-Clause "New" or "Revised" License
4 stars 10 forks source link

Update Import DAG based on Entry DAG #346

Open shippy opened 5 years ago

shippy commented 5 years ago

Issue: Import record DAG is assigned at upload (and re-upload) time, but Entry DAG changes due to subject site transfers.

Typically:

  1. we are certain the Entry DAG correct,
  2. if site A owns the Entry record, we want site A to be able to access the intermediate Import records.

I'm proposing a script that would:

  1. Look at all Import IDs referenced in the Entry record,
  2. Look at current Entry DAG,
  3. Assign all referenced Import IDs to the current Entry DAG.

As a bonus, this is also a functional safeguard against mistaken DAG assignment (#285) or re-assignment (most notoriously, the PASATs: sibis-platform/ncanda-operations/issues/7687).