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

Add comment to prevent accidentally breaking the fix for EXPOSUREAPP-4484 (DEV) #2648

Merged
merged 3 commits into from
Mar 22, 2021

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Mar 19, 2021

No description provided.

@d4rken d4rken added the maintainers Tag pull requests created by maintainers label Mar 19, 2021
@d4rken d4rken added this to the 2.0.0 milestone Mar 19, 2021
@d4rken d4rken requested a review from a team March 19, 2021 09:11
@LukasLechnerDev LukasLechnerDev self-assigned this Mar 19, 2021
@chris-cwa chris-cwa self-requested a review March 19, 2021 15:51
@chris-cwa chris-cwa self-assigned this Mar 19, 2021
Comment on lines +129 to +135
// START - Fix for EXPOSUREAPP-4484 relies on this call order
submissionSettings.registrationToken.update {
registrationData.registrationToken
}
updateTestResult(registrationData.testResult)
submissionSettings.devicePairingSuccessfulAt = timeStamper.nowUTC
// END
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// START - Fix for EXPOSUREAPP-4484 relies on this call order
submissionSettings.registrationToken.update {
registrationData.registrationToken
}
updateTestResult(registrationData.testResult)
submissionSettings.devicePairingSuccessfulAt = timeStamper.nowUTC
// END
// region Fix for EXPOSUREAPP-4484 relies on this call order
submissionSettings.registrationToken.update {
registrationData.registrationToken
}
updateTestResult(registrationData.testResult)
submissionSettings.devicePairingSuccessfulAt = timeStamper.nowUTC
// endregion

Comment on lines +144 to +150
// START - Fix for EXPOSUREAPP-4484 relies on this call order
submissionSettings.registrationToken.update {
registrationData.registrationToken
}
updateTestResult(registrationData.testResult)
submissionSettings.devicePairingSuccessfulAt = timeStamper.nowUTC
// END
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// START - Fix for EXPOSUREAPP-4484 relies on this call order
submissionSettings.registrationToken.update {
registrationData.registrationToken
}
updateTestResult(registrationData.testResult)
submissionSettings.devicePairingSuccessfulAt = timeStamper.nowUTC
// END
// region Fix for EXPOSUREAPP-4484 relies on this call order
submissionSettings.registrationToken.update {
registrationData.registrationToken
}
updateTestResult(registrationData.testResult)
submissionSettings.devicePairingSuccessfulAt = timeStamper.nowUTC
// endregion

@chris-cwa
Copy link
Contributor

chris-cwa commented Mar 19, 2021

you could also extract the calls into a method and then unit test, that calls are made in this order.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@d4rken d4rken merged commit 54d012b into release/2.0.x Mar 22, 2021
@d4rken d4rken deleted the fix/DEV-add-comment-for-EA4484 branch March 22, 2021 10:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintainers Tag pull requests created by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants