- May 12, 2021
-
-
Mohamed authored
* Bump Kotlin version * Lint * Fix test * Fix case * lint * jacoco * robolectric * Cleanup tests * Lint ,Happy now?
Co-authored-by:Lukas Lechner <lukas.lechner@sap.com>
-
- Apr 28, 2021
-
-
Chilja Gossow authored
* provide data * fix test * klint * make sure only last 14 days are counted * fix test Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Apr 13, 2021
-
-
Matthias Urhahn authored
* Improve logging. * Refactoring. Move related functions and default values into new RiskCombinator.kt class. * Initial risk results have RiskState.LOW_RISK. * Fix manual refresh not running the PresenceTracingRiskTask. * Adjust failing test. * Update logtag. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
BMItter <46747780+BMItter@users.noreply.github.com>
-
- Apr 07, 2021
-
-
Chilja Gossow authored
* 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:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Alexander Alferov <a.alferov@sap.com>
-
- Apr 01, 2021
-
-
Chilja Gossow authored
* risk calculation * risk calculation * risk calculation * refactoring * mapping tests * move risk calculation to different change list * detekt * klint * correct name * rename to presence tracing * add test * refactoring * repo * db * compare byte array * refactor guidHash * merge 2.0.x * clean up * improve performance * klint * provide risk result * add tests * detekt and klint * detekt and klint * failing checks * merge 2.0.x * adapt tests * adapt tests * adapt tests * revert unintended change * remove db * clean up * more tests * klint * db json * change package * klint * change package * change package * add tests * fix import * clean up naming * clean up naming, moe package, more tests * klint * parallel matching * parallel matching * matching * comments * comments * klint * logging * limit parallel processing to max of 4 * merge * move into one file * comments * klint * change visibility * change visibility * update test menu output * klint * fix test * renaming, refactoring * add column info change warningPackageId type to string * fix test * fix test * db * db * db move * fix refactoring * refactor date * fix tests * fix tests * klint * detekt * fix test * clean up * clean up
-
- Mar 31, 2021
-
-
Chilja Gossow authored
* risk calculation * risk calculation * risk calculation * refactoring * mapping tests * move risk calculation to different change list * detekt * klint * correct name * rename to presence tracing * add test * refactoring * repo * db * compare byte array * refactor guidHash * merge 2.0.x * clean up * improve performance * klint * provide risk result * add tests * detekt and klint * detekt and klint * failing checks * merge 2.0.x * adapt tests * adapt tests * adapt tests * revert unintended change * remove db * clean up * more tests * klint * db json * change package * klint * change package * change package * add tests * fix import * clean up naming * clean up naming, moe package, more tests * klint * parallel matching * parallel matching * matching * comments * comments * klint * logging * limit parallel processing to max of 4 * merge * move into one file * comments * klint * change visibility * change visibility * update test menu output * klint * fix test * add column info change warningPackageId type to string * fix test * fix test Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Mar 08, 2021
-
-
chris-cwa authored
* - database, active tracing time * fixed unit test * fixed unit test * fixed instrumented tests * fixed unit test * - unused test case * removed more unused code * fixed unit test * ktlint * removed optional parameter Co-authored-by:
Alex Paulescu <alex.paulescu@gmail.com>
-
- Feb 23, 2021
-
-
Matthias Urhahn authored
* Cleanup clearAllMocks() and unmockAll() usage. * If we call `MockKAnnotations.init(this)`, in "Before" then we don't need to clear the mocks in each "After" call, as the mocks will be replaced by new ones. * Fix textreplace error. * Split up BaseTest class for unit and instrumentation tests. * Move BaseTest and BaseTestInstrumentation to the right packages * Update BaseTestInstrumentation.kt * Move it back Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
Mohamed Metwalli <Mohamed.Metwalli@sap.com>
-
- Dec 23, 2020
-
-
Matthias Urhahn authored
* Don't log all exposure windows on `RiskLevelTaskResult.toString()` due to performance impact when logging. * Add RiskLevelResult flow optimized for just getting the latest two results. * Share risk level result subscriptions. The delay when switching from Home to RiskDetails fragment will be bridged and no re-loading necessary. * Fix test regressions * Remove test code. * Introduce specific query for "latestAndLastSuccessful". Add unit tests for SQL queries. * Fix test regressions due to missing mocking. * Address merge conflicts. * Fix instrumentation tests not building. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 07, 2020
-
-
chris-cwa authored
* fixed: fields without values are visible; + logs * detect version update, force recalc on 1.7 -> 1.8 * detect version update in diagnosis keys task only * no connection type ignoring * Add test to ensure that parsing old configs from 1.7.x fails and the default fallback for 1.8.x is used. * Fix logging typo. * no wasLastDetectionPerformedRecently abort on app update * Fix lint issues * fixed condition * used shared settings * get last encounter at from enf v1 to display second line after app update while risk level calc is not finished * fixed di * fixed tests * fixed tests * fixed tests * Add unit tests for DownloadDiagnosisKeysTask.kt * fixed tests * Add tests for DownloadDiagnosisKeysSettingsTest Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Nov 25, 2020
-
-
Alex Paulescu authored
* Removed traces of grey risk card. * Removed UNKNOWN_RISK_INITIAL constant. * Removed unused method. * Removed old comments. * Introduce risklevel calculation failure state to get consistent card states. * Cleaned up the risk card states. Refactored "RiskLevel" to be calculated based on either result or failure reasons. Added the new "no internet" error card. * Updated color states. * Fixed card color issues. * Fixed detekt issues. * Remove test for deleted file. * Fix test regressions. * Fixed tests and LINTs. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Matthias Urhahn authored
Persist ExposureWindow based risk level calculation results and update the UI (EXPOSUREAPP-3910,EXPOSUREAPP-3855) (#1705) * First draft to refactor `RiskRepository` away and persist risk level results produced by ExposureWindow calculations. TODO: Tests, Legacy data migration, Persist ExposureWindow's in tester builds. * Unit tests for refactored classes. * LINTs * First draft for legacy risk data migration. TODO: Tests. * Store exposure windows on device for tester builds and perform clean on them too after risk result deletions. Split RiskResultStorage such that the exposure window storage code is only available in deviceForTesters flavor builds. * simplification * no preference should return no value * Remove TODOs, singletons are refactored away ;) * Simplify RiskLevelTask interface * Split risk level storage implementations to let production (device flavor) have a NOOP for storing/deleting exposure windows. * Remove unused storage function. Add test skeletons. * unit test * unit test * Update risk card to show new window mode based information. * Fix test regressions. * Address PR comments. * LINTs * Everybody get's LINT for XMAS. * Finish unit tests and remove unused classes. Co-authored-by:
chris-cwa <chris.cwa.sap@gmail.com>
-
- Nov 24, 2020
-
-
Matthias Urhahn authored
-