Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Homescreen Notifications, even though keys were submitted (EXPOSUREAPP-3181, EXPOSUREAPP-3182) #1418

Merged

Conversation

kolyaopahle
Copy link
Contributor

@kolyaopahle kolyaopahle commented Oct 16, 2020

Description

This PR adds a few additional checks to the test result fetching and risk level calculation tasks to check for prior test submission and stops the notification when tests have been submitted already.

…eck for finished submission

Signed-off-by: Kolya Opahle <k.opahle@sap.com>
@kolyaopahle kolyaopahle added backend Issues related to internal work not directly correlated to UI interaction maintainers Tag pull requests created by maintainers labels Oct 16, 2020
@kolyaopahle kolyaopahle added this to the 1.6.0 milestone Oct 16, 2020
@harambasicluka harambasicluka changed the title Homescreen Notifications, even though keys were submitted (EXPOSUREAPP-3181/3182) Homescreen Notifications, even though keys were submitted (EXPOSUREAPP-3181, EXPOSUREAPP-3182) Oct 22, 2020
@harambasicluka harambasicluka added the prio PRs to review first. label Oct 26, 2020
@kolyaopahle kolyaopahle marked this pull request as ready for review October 26, 2020 15:41
@kolyaopahle kolyaopahle requested a review from a team October 26, 2020 15:41
@@ -89,13 +89,18 @@ class DiagnosisTestResultRetrievalPeriodicWorker(
* @see TestResult
*/
private fun initiateNotification(testResult: TestResult) {
if (LocalData.isTestResultNotificationSent() || LocalData.submissionWasSuccessful()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return if ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afaik this is not possible as return if always requires an else branch

Signed-off-by: Kolya Opahle <k.opahle@sap.com>
Copy link
Member

@d4rken d4rken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sonarcloud
Copy link

sonarcloud bot commented Oct 27, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

25.0% 25.0% Coverage
0.0% 0.0% Duplication

@harambasicluka harambasicluka merged commit 65cbb84 into release/1.6.x Oct 27, 2020
@harambasicluka harambasicluka deleted the fix/3182-3181-notifications-in-invalid-states branch October 27, 2020 16:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backend Issues related to internal work not directly correlated to UI interaction maintainers Tag pull requests created by maintainers prio PRs to review first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants