Chemical-Curation / chemcurator_django

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

Remap records on update #238

Open cmgrulke opened 3 years ago

cmgrulke commented 3 years ago

As a user I want records that are updated (or have their associated identifiers updated) remapped to substance using the same method defined in issue #237 So that old mappings don't persist in the database

PATCH https://api.chemreg.epa.gov/records/{id} POST https://api.chemreg.epa.gov/recordIdentifiers PATCH https://api.chemreg.epa.gov/recordIdentifiers/{id}

Acceptance Criteria: when a record's "record identifiers" are updated or changed (either directly or via a change in its set of record identifiers)

  1. The curated "is_valid" flag on the record is set to false
  2. The record is remapped according to issue #237