Data Model
Sample Kafka Event
Mongo DB Update Logic
The following collections from the database ml-service will be updated in order to fully remove user PII data from mongoDB.
observations
surveySubmissions
observationSubmissions
projects
programUsers
solutions
Observations
The following table fields from the observation collection will be updated when createdBy key in observation collection is equal to the Kafka event userId.
surveySubmissions
The following table fields from the surveySubmissions collection will be updated when createdBy key in surveySubmissions collection is equal to the Kafka event userId.
projects
The following table fields from the projects collection will be updated when userId key in projects collection is equal to the Kafka event userId.
programUsers
The following table fields from the programUsers collection will be updated when userId key in programUsers collection is equal to the Kafka event userId.
Table fields
solutions
The following fields from the solutions collection will be updated when author key in solutions collection is equal to the Kafka event userId.
observationSubmissions
The following fields from the observationSubmissions collection will be updated when createdBy key in observation collection is equal to the Kafka event userId.
Last updated