Chemical-Curation / chemcurator_django

Backend services for chemical curation
https://api.chemreg.epa.gov
MIT License
1 stars 0 forks source link

200 compound indexing #316

Closed michael-barbour closed 3 years ago

michael-barbour commented 3 years ago

closes #200

This should handle the active and passive sync between chemcurator_django and resolver.

Active sync:

To test this run manage.py sync. This will delete all records then add all substances and any solo compounds into resolver.

Passive Sync:

There are a stupidly high number of cases for this one. Broken down into rules, it should look something like this:

Constraint:

Saving a compound or substance with an already used sid/cid will result in an error. This validation only runs on create and not on update.