Open alxndrsn opened 9 years ago
When a contact is deleted, it remains associated with:
When a catchment area is deleted, it remains associated with:
When a health centre is deleted, it remains associated with:
When a district is deleted, it remains associated with:
Associated objects should probably be updated when a contact is deleted.
Simplest place to enforce this is surely validate_doc_update in the design doc.
validate_doc_update
Or perhaps not: https://stackoverflow.com/questions/6069324/can-i-query-views-from-a-couchdb-update-or-validate-doc-update-function
Observed behaviour
Contact
When a contact is deleted, it remains associated with:
Catchment Area
When a catchment area is deleted, it remains associated with:
Health Centre
When a health centre is deleted, it remains associated with:
District
When a district is deleted, it remains associated with:
Expected Behaviour
Associated objects should probably be updated when a contact is deleted.