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

PPA Collect exposure windows (EXPOSUREAPP-4819) #2387

Merged
merged 37 commits into from
Feb 24, 2021

Conversation

chiljamgossow
Copy link
Contributor

@chiljamgossow chiljamgossow commented Feb 17, 2021

Tech spec: https://github.com/corona-warn-app/cwa-app-tech-spec/blob/40e00dfd0e4544bdf05a2ae83fa7123af86b9438/docs/spec/data-donation-client-ppa.md#new-exposure-windows

New exposure windows are stored on a new database. Primary key is a sha256Hash calculated on the string generated by the corresponding data class. For reported exposure windows only the hash value is stored.

A db rollback is performed in case the submission fails.

Stale data is being deleted on each donation.

How to test with test menu:

  • fake exposure windows via ENF v2 calculation
  • create current analysis via Data Donation

# Conflicts:
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/datadonation/analytics/modules/exposurewindows/NewExposureWindowsDonor.kt
@chiljamgossow chiljamgossow added the maintainers Tag pull requests created by maintainers label Feb 17, 2021
@chiljamgossow chiljamgossow added this to the 1.14.0 milestone Feb 17, 2021
@chiljamgossow chiljamgossow requested review from a team February 17, 2021 08:40
@chiljamgossow chiljamgossow marked this pull request as draft February 17, 2021 08:41
@harambasicluka harambasicluka changed the title Feature/4819 exposure window Collect exposure windows (EXPOSUREAPP-4819) Feb 17, 2021
@chiljamgossow chiljamgossow changed the title Collect exposure windows (EXPOSUREAPP-4819) PPA Collect exposure windows (EXPOSUREAPP-4819) Feb 17, 2021
@chiljamgossow chiljamgossow marked this pull request as ready for review February 18, 2021 16:25
kolyaopahle
kolyaopahle previously approved these changes Feb 24, 2021
Copy link
Contributor

@kolyaopahle kolyaopahle left a comment

Choose a reason for hiding this comment

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

Works on my machine, LGTM 👍

@mtwalli mtwalli self-assigned this Feb 24, 2021
@mtwalli
Copy link
Contributor

mtwalli commented Feb 24, 2021

Tested it on Samsung S8 , data is collected and submitted

mtwalli
mtwalli previously approved these changes Feb 24, 2021
Copy link
Contributor

@mtwalli mtwalli left a comment

Choose a reason for hiding this comment

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

👍🏼

@ralfgehrer ralfgehrer added the prio PRs to review first. label Feb 24, 2021
d4rken
d4rken previously approved these changes Feb 24, 2021
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 👍

@d4rken d4rken added the author merge PR to be merged by author label Feb 24, 2021
kolyaopahle
kolyaopahle previously approved these changes Feb 24, 2021
@sonarcloud
Copy link

sonarcloud bot commented Feb 24, 2021

Kudos, SonarCloud Quality Gate passed!

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

70.4% 70.4% Coverage
0.0% 0.0% Duplication

@chiljamgossow chiljamgossow removed the author merge PR to be merged by author label Feb 24, 2021
@ralfgehrer ralfgehrer merged commit 8d866ed into release/1.14.x Feb 24, 2021
@ralfgehrer ralfgehrer deleted the feature/4819-exposure-window branch February 24, 2021 16:41
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 prio PRs to review first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants