-
Notifications
You must be signed in to change notification settings - Fork 492
Adjust EW/PT riskresult combination (EXPOSUREAPP-6169) #2788
Conversation
…ed riskstate is also CALCULATION_FAILED and should show the white failure card on the home screen.
…velResult.matchedKeyCount for the CombinedEwPtRiskLevelResult to allow the UI show information for "low risk with encounters" situations.
…to fix/6169-risk-calc-polishing
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/tracing/TracingProgress.kt
Show resolved
Hide resolved
I think it not good to show the user a failed risk calculation if one of the two fails. He could have a high risk because of EW, but since the PT fails, he sees the failed Risk card instead of the high-risk card and so isn't aware that he has a high risk. |
@mlenkeit what do you think? |
I discussed this with Max ( /cc @mlenkeit ), I think both variants are valid, if desired we can change this back in a follow up PR on monday. |
Was originally discussed with POs. Matthias is right. |
Kudos, SonarCloud Quality Gate passed! |
…pp#2788) * Refactoring, move extensions closer to their use-case. * Adjust riskState combination, if either calculation fails, the combined riskstate is also CALCULATION_FAILED and should show the white failure card on the home screen. * Introduce ptRiskLevelResult.checkInOverlapCount as analog to ewRiskLevelResult.matchedKeyCount for the CombinedEwPtRiskLevelResult to allow the UI show information for "low risk with encounters" situations. * LINTs * Adjust unit tests to reflect the risk status combination priority (FAILED>HIGH>LOW). * Home screen download/calculation progress should include PresenceTracingWarningTask * LINTs Co-authored-by: Lukas Lechner <lukas.lechner@sap.com> Co-authored-by: harambasicluka <64483219+harambasicluka@users.noreply.github.com>
matchedKeyCount
to detect "low risk, despite encounters", which is used in the risk details screen to display an additional info box, and show a link to the FAQ. There is now a newmatchedRiskCount
which is the combination ofmatchedKeyCount
(EW) andcheckInOverlapCount
(PT).PresenceTracingWarningTask
.