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

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Nov 6, 2020

Use a hybrid approach of day and hour key packages to provide risk score updates as often as the quota allows.

  • Change the download mechanisms to the new download & sync behavior.
  • Smarter timeout behavior that times out individual downloads to allow proceeding with subsets before the global timeout hits.
  • Allow cache invalidation via protobuf config.
  • Allow custom timeouts via protobuf config.
  • Download day packages on any type of connection, hourly packages only on metered.
  • New test fragment

TODO

Out of scope

  • New error card for the home screen that shows (EXPOSUREAPP-3411)

Testing

  • Smoke test & Check logs
  • Check unit tests for edge cases (package de.rki.coronawarnapp.diagnosiskeys)
  • Compare against requirements

@d4rken d4rken added enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers labels Nov 6, 2020
@d4rken d4rken added this to the 1.7.0 milestone Nov 6, 2020
@harambasicluka harambasicluka added the prio PRs to review first. label Nov 9, 2020
@BMItr BMItr self-requested a review November 9, 2020 16:41
…xposureDetectionParameters.overallTimeoutInSeconds)
@d4rken
Copy link
Member Author

d4rken commented Nov 10, 2020

Everytime I open the the client, it sends a request to /version/v1/diagnosis-keys/country/EUR/date although the the most recent Day Package has already been downloaded.

Fixed with f3f548f

Looks like something is scheduled twice.

Fixed with 42807e5

Copy link
Contributor

@chiljamgossow chiljamgossow left a comment

Choose a reason for hiding this comment

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

It looks fine to me (with my limited knowledge of the project).

d4rken and others added 6 commits November 10, 2020 12:49
…n that "fakes" the connection status to metered.

It's now also part of the `TestSettings` and the connection state is faked for the `NetworkStateProvider` class which may be reused.
…n that "fakes" the connection status to metered.

It's now also part of the `TestSettings` and the connection state is faked for the `NetworkStateProvider` class which may be reused.
…ons.

The app config alone determines which locations we try to sync.
…core-updates-download-and-submission-v2' into feature/3455-more-frequent-riskscore-updates-download-and-submission-v2
Copy link
Member

@mlenkeit mlenkeit left a comment

Choose a reason for hiding this comment

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

I think we can leave it as-is for now to build the first RC and to the necessary minor changes in a follow-up PR for the next RC

@harambasicluka
Copy link
Contributor

Would appreciate more than 2 approvals on such a large PR.

@sonarqubecloud
Copy link

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

72.9% 72.9% Coverage
0.0% 0.0% Duplication

@d4rken d4rken merged commit 3e6e7b2 into release/1.7.x Nov 11, 2020
@d4rken d4rken deleted the feature/3455-more-frequent-riskscore-updates-download-and-submission-v2 branch November 11, 2020 09:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Improvement of an existing feature 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.

7 participants