-
Notifications
You must be signed in to change notification settings - Fork 499
Conversation
# Conflicts: # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/CheckIn.kt # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/download/CheckInsPackage.kt
# Conflicts: # Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/test/eventregistration/ui/EventRegistrationTestFragmentViewModel.kt # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/riskcalculation/PresenceTracingRiskCalculator.kt # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/riskcalculation/PresenceTracingRiskMapper.kt # Corona-Warn-App/src/test/java/de/rki/coronawarnapp/eventregistration/checkins/riskcalculation/PresenceTracingRiskCalculatorTest.kt # Corona-Warn-App/src/test/java/de/rki/coronawarnapp/eventregistration/checkins/riskcalculation/PresenceTracingRiskMapperTest.kt
# Conflicts: # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/CheckIn.kt # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/CheckInRepository.kt # Corona-Warn-App/src/test/java/de/rki/coronawarnapp/eventregistration/checkins/CheckInRepositoryTest.kt
# Conflicts: # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/eventregistration/checkins/riskcalculation/Matching.kt
...App/src/main/java/de/rki/coronawarnapp/presencetracing/risk/PresenceTracingRiskRepository.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👌
one optional comment
96d30aa
to
edd3e31
Compare
val endTime = timeStamper.nowUTC.minus(Days.days(15).toStandardDuration()) | ||
traceTimeIntervalMatchDao.deleteOlderThan(endTime.millis) | ||
internal suspend fun markPackageProcessed(warningPackageId: String) { | ||
// TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when/where this will be implemented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Conflicts: # Corona-Warn-App/schemas/de.rki.coronawarnapp.eventregistration.storage.TraceLocationDatabase/1.json
Kudos, SonarCloud Quality Gate passed! |
I was thinking about error notifications, if either EW calculations or PT calculations for any reason (and there are some...) permanently fail in the future... |
Most changes are renaming only in order to differentiate between the risk results.
There are now two sets of risk results, one for exposure windows (ew) and one for presence tracing (pt). They are all available in the RiskLevelStorage interface.
The risk calculation for ew remains untouched. It is still the basis for all analytics and survey logic.
The two sets are combined to CombinedEwPtRisk, to be used for the home tracing card and details.
Changes in this combined risk should trigger the risk level change notification (see RiskLevelChangeDetector).
The home card will always show the highest risk that was calculated, that means if there is one high risk check-in or encounter, it will turn red. Calculation failed will only show if both calculations failed.
How to test: check whether the old risk calculation with exposure windows still works as before
Once the warning downloads are available, the risk from check-ins should also show up.
Missing: all unit tests -> follow up PR