cds-snc / covid-alert-server

Exposure Notification: Diagnosis Server implementation / Notification d’exposition : Mise en œuvre du serveur de diagnostic
Apache License 2.0
298 stars 31 forks source link

feat: add initial support for EN V2 #400

Closed CalvinRodo closed 3 years ago

CalvinRodo commented 3 years ago

Add new fields for ReportType and DaysSinceOnsetOfSymptoms to the TemporaryExposureKey message. Adds the ReportType enum Defaults new fields in TEK downloads to be CONFIRMED_TEST and 0 repsectively. Add tests covering new v2 feature Add a service end point to print out feature flags on current server

Supposedly these changes should be 100% backwards compatible. https://developers.google.com/android/exposure-notifications/exposure-key-file-format#compat

Related to #394

In support of the following:

CalvinRodo commented 3 years ago

Agreed I would have loved to have the v2 feature flag but the work needed for it meant a total duplication of most of the server.