Open edvardlindelof opened 7 years ago
On branch ElvisLogsToEricaEvents: ElvisLogger put in the cluster, EricaEventLogger receives the data, converts it to EricaEvents with DataAggregation and stores them in a PersistentActor. Still todo: change some details in DataAggregation e.g. what time to use instead of getNow.
In ericaBackend as of now we don't create e.g. LocationUpdate-Event if location is "None" and do create it if location is "" but in ElvisLogger-data there is no such thing as "None", only "". In commit above I turn "" from diff.updates.location into an event but not from new.patient.location. Not sure if this becomes correct?
^added proper handling of recovered snapshots to solve problem with never-removed patients etc. There is a small related problem left, some PatientDiff-information may appear twice in connection with a snapshot. Doesn't matter much tho.
The code to copy is here: https://github.com/kristoferB/SP/blob/erica/spservices/gPubSubService/src/main/scala/elastic/DataAggregation.scala