kristoferB / SP

Sequence Planner
MIT License
12 stars 5 forks source link

Converting historical ElvisLogger-data into EricaEvents #85

Open edvardlindelof opened 7 years ago

kristoferB commented 7 years ago

The code to copy is here: https://github.com/kristoferB/SP/blob/erica/spservices/gPubSubService/src/main/scala/elastic/DataAggregation.scala

edvardlindelof commented 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.

edvardlindelof commented 7 years ago

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?

edvardlindelof commented 7 years ago

^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.