Skip to content
Snippets Groups Projects
  1. May 12, 2021
  2. Apr 28, 2021
  3. Apr 13, 2021
  4. Apr 07, 2021
    • Chilja Gossow's avatar
      Warning package download & scheduling (EXPOSUREAPP-5695,EXPOSUREAPP-5696) (#2707) · 63050aca
      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: 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>
      Unverified
      63050aca
  5. Apr 01, 2021
    • Chilja Gossow's avatar
      Risk state (EXPOSUREAPP-5697) (#2728) · 3e5563ca
      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
      Unverified
      3e5563ca
  6. Mar 31, 2021
    • Chilja Gossow's avatar
      Risk calculation (EXPOSUREAPP-5698) (#2660) · 170f6054
      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: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      Unverified
      170f6054
  7. Mar 08, 2021
  8. Feb 23, 2021
  9. Dec 23, 2020
    • Matthias Urhahn's avatar
      Improve risklevel result data access performance (DEV) #1953 · 665b6f21
      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: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
      Unverified
      665b6f21
  10. Dec 07, 2020
    • chris-cwa's avatar
      Fixed: fields without values are visible (EXPOSUREAPP-3988) (#1808) · 20baacc9
      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: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      Unverified
      20baacc9
  11. Nov 25, 2020
    • Alex Paulescu's avatar
      Removed traces of grey risk card (EXPOSUREAPP-3051) (#1699) · 86b29f73
      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: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
    • Matthias Urhahn's avatar
      Persist ExposureWindow based risk level calculation results and update the UI... · 2547e10a
      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: default avatarchris-cwa <chris.cwa.sap@gmail.com>
      Unverified
      2547e10a
  12. Nov 24, 2020
Loading