Skip to content
Snippets Groups Projects
Unverified Commit 63050aca authored by Chilja Gossow's avatar Chilja Gossow Committed by GitHub
Browse files

Warning package download & scheduling (EXPOSUREAPP-5695,EXPOSUREAPP-5696) (#2707)


* download and repo

* download warning packages

* download warning packages

* TraceTimeWarning Download, Draft2

* TraceTimeWarning Download, Draft3

* Offer only new warning packages via API.

* Remove duplicate test menu entry.

* TraceTimeWarning Download, Draft5

* Adapt CheckInWarningMatcher to mark processed packages.

* Fix failing unit tests.

* Unit Test Skeletons

* Back BackgroundScheduler non-static and injected.

* Refactored and combined diagnosis and tracing periodic workers.

* Fix unit test.

* LINTs

* Adapt marking packages as processed to upstream CheckInWarningMatcher changes.

* Copy .await() from worker library to project due to being scope restricted.

* unit tests

* klint

* klint

* add TODO for matching comparison

* refactor combination of results

* rename

* add test for combine

* revert unnecessary changes

* change initial result to failed

* using low risk as default for lastCalculated to maintain the old behavior when no results are available

* klint

* Resolve merge regressions.

* Fix fake check-in generation.

* Handle worker refactoring gracefully, catch ClassNotFoundException.

* Refactoring packages.

* Refactor CheckInWarningMatcher.kt and PresenceTracingWarningTask.kt
Move repository/database update calls to task, let the matcher only be responsible for matching.

* Adjust test fragment to allow retriggering the download + matching task.

* Fix refactoring regression.

* Fix flaky time label test.

* Fix package import.

* Fix another timezone based flaky test.

* Reduce nesting level to make the linter happy.

* Update ROOM schema files.

* Update ROOM schema files.

* Refactoring.

* Small naming fixes

* Shorten worker IDs.

* Collect BerndStylePoints™

* Set tableName explicitly.

* * Adjust id comparison within CheckInWarningMatcher.kt
* Add tests for traceLocationIdHash calculation.
* Calculate traceLocationIdHash on-demand, don't store it.

* Improve trace warning task test menu output.

* Remove spammy log output.

* Remove unused function

* Add additional TraceLocation test cases that match mock server.

* Improve check-in matching log messages.

* Fix duplicate overlaps and check for overlap distinctness.

* Add test for config timeout value.

* Remove unused test.

* Use time measuring function.

* Simplify error case handling for revoked metadata packages.

* Turn createMatchingLaunchers into runMatchingLaunchers

* Use TimeUnit.MINUTES

* Remove extra deletion call.
If there are no CheckIns, the SyncTool will have deleted all matches already.

* Use flatMap instead of flatten.

* Use more specific names (toCheckInWarningOverlap/toTraceTimeIntervalMatchEntity)

* Revert "Remove extra deletion call. If there are no CheckIns, the SyncTool will have deleted all matches already."

This reverts commit 3b0acf3d

* Fix merge conflict regressions.

Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
Co-authored-by: default avatarAlexander Alferov <a.alferov@sap.com>
parent 10e5352d
No related branches found
No related tags found
Loading
Showing
with 253 additions and 262 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment