-
Notifications
You must be signed in to change notification settings - Fork 487
Fix data donation key submission (EXPOSUREAPP-5814) #2626
Fix data donation key submission (EXPOSUREAPP-5814) #2626
Conversation
# Conflicts: # Corona-Warn-App/src/test/java/de/rki/coronawarnapp/datadonation/analytics/modules/keysubmission/AnalyticsKeySubmissionRepositoryTest.kt
...pp/src/test/java/de/rki/coronawarnapp/datadonation/analytics/common/PpaDataExtensionsTest.kt
Outdated
Show resolved
Hide resolved
|
I enabled data donation in the onboarding, and then scanned a positive test and submitted my keys. This is the analytics data: and this is stored in analytics_key_sumission_localdata.xml: |
kolyaopahle
left a comment
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.
one minor comment, nothing merge blocking, love the tests 🥇 👍
.../coronawarnapp/datadonation/analytics/modules/keysubmission/AnalyticsKeySubmissionStorage.kt
Show resolved
Hide resolved
9d3adbe
285a98c to
3a9af47
Compare
Please test again. The key_submission_metadata_set must be present if data donation is turned on before receiving a positive test result and keys are submitted. |
|
Kudos, SonarCloud Quality Gate passed! |
|
Tested it again: analytics_key_sumission_localdata.xml: AnalyticsData:
|
remove data only when new test registered to allow donation after removal (this may be a new requirement)
calculate data on registration as data may be overwritten by the time the contribution is being made
check for order of dates
check for missing data, occurs when data donation is enabled after test registration and before test result
Default values should be -1 if they cannot be calculated.