- Dec 14, 2020
-
-
Matthias Urhahn authored
* Fix crash when trying to update TEK history without tracing enabled. Refactor tracing permission requests and then re-use the tracing permission requests within the TEK updater logic. * Fix test regressions. * Implement additional unit tests for TEKHistoryUpdater.kt * Additional unit tests for ENF related permission requests. * Additional tests for TEKHistory Updater/TracingPermission callbacks. * Additional tests for TracingPermissionHelper.kt handleActivityResult calls.
-
- Dec 10, 2020
-
-
Matthias Urhahn authored
* Fix TEK Storage item sorting. * Remove legacy test fragment, add necessary features to other fragments. * LINTs Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 08, 2020
-
-
Matthias Urhahn authored
* Add email share feature to submission test menu. * LINTs * Fix duplicate TEK history calls. * LINTs * Fix TEKStorage live update and adjust export format. * Fix LINT
-
- 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>
-
- Dec 03, 2020
-
-
Matthias Urhahn authored
* Submission upload, first draft. Storing Symptoms and TEKs. TODO: * Change upload task to use stored data. * Blocking upload task * Tests * Update symptoms on each screen. Integrate permission request and automatic TEK history update. TODO: * Cancel dialog * Blocking upload task * Tests * Add submission on cancel behavior. * LINTs and unit tests. * Hooking up navigation and first break through on TAN based submission. * Hook up navigation for QR Code to test result without consent. * Fix positive result consent given submission: Abort to Main Screen * Restore default environment. * Adjust notification target fragment. * Address LINTs * Clean up symptoms introduction nav actions. * Fix tests
-
- Dec 02, 2020
-
-
Rituraj Sambherao authored
* Andere Warnen screen added * Merge conflict resolve and screen stability improvement * string text header added to ensure translation * using submitTaskState instead of API request state * onDataPrivacyClick() function added in the relevant viewModel * long strings divided * legal strings updated * added navigation to mainfragment removed unnecessary cases fixed colors for under16 layout fixed country list in layout added onDataPrivacyClick method in own ViewModel refactored color value * minor changes in navigation
-
- Dec 01, 2020
-
-
Matthias Urhahn authored
* Remove "lastTimeDiagnosisKeysFromServerFetch" and replace it with less missleading data. While it was called "lastTimeDiagnosisKeysFromServerFetch" it was actually "last time we submitted keys to google". * To decide whether to refresh in "onResume", we now use "has there been any submission to the ENF?" * To display a timestamp on the risk card, we take the last successful submission to the ENF as the risk card displays the calculation results based on the latest submission. While we could use the last calculated risk level result timestamp, we currently also trigger risk calculations if there are no new submissions to the ENF, which would mean the timestamp is updated even though the result is not based on new data. I've also fixed the test fragment button behavior and added descriptions, the "Reset risk level" button surfaced the initial issue because it behaved like a "do a 75% data reset" button. * Tests and LINTs Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Nov 30, 2020
-
-
Matthias Urhahn authored
* Fix displayed details in tracing inactive states. * Simplified UI states. Replaced RiskLevel and RiskLevelConstants with RiskState { LOW; HIGH, FAILED }. * Fix low risk card missing the encounters if there have been more than 0. * Fix missing card divider/border on error cards in light mode. * Fix merge regression. * LINTs * Fix progress card colors on white card background color. * Fix progress card colors on white card background color. * Don't allow negative active tracing days. * Revert sync behavior (extra PR) * Address PR comments. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Nov 27, 2020
-
-
BMItter authored
* Use lastRiskResult from DB * use correct format for windows and timestamp * klint * Reduce RiskLevelResult Storage API and fill exposure windows in risk result if available. * Default exposure windows to null while mapping * Don't add empty exposure windows list to risk results * fix broken tests * Added tests for exposure windows Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Nov 26, 2020
-
-
Kolya Opahle authored
* Converted ExposureWindows to their json wrapper counterparts before exporting to give the json fields proper names instead of the obfuscated enf ones Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Added timestamp to exposure window export * Switched to a more file name compatible DateTimeFormat Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * ktlint says these are redundant, i don't like it but the overlords forced me to do it. Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * changed filename suffix to json Co-authored-by:
BMItter <berndus@gmx.de>
-
- 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>
-
Kolya Opahle authored
Risk Calculation does not work because DiagnosisKeysDataMapping is not applied (EXPOSUREAPP-3895) (#1690) * We now check for the DiagnosisKeyDataMapping and apply it to the ENFClient if changed Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Moved diagnosisKeysDataMapping to windowProvider Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Renaming and linting Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Moved app config fetch to key provide task, added error handling, added logging to config replace Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Fixed old unit tests and implemented tests for config comparison, TestForAPIFragment is currently broken Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Linting * Added more unit testing for DefaultDiagnosisKeysDataMapper and fixed TestForAPIFragment Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Update default app config to latest version This includes a change for the default for reportTypeWhenMissing from 0 to 1, as 0 is not accepted by setDiagnosisKeysDataMapping. https://github.com/corona-warn-app/cwa-app-tech-spec/pull/10/commits/090801921f4a8581543a9f716fd0572c12901c71 https://github.com/corona-warn-app/cwa-protocol-buffers/commit/38a641e2a808c41d225e9fd09d27ec7959551412 * Fixed Unittests Co-authored-by:
Maximilian Lenkeit <maximilian.lenkeit@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
BMItter authored
* preparation share exposureWindows via email etc. - wip * Exposure Windows can be shared if data is availabe * Manifest and provider path deviceForTesters only * fixed strange conflicts * klint * Pretty exposure window export * removed testlog * removed relicts
-
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
-
Matthias Urhahn authored
-
Matthias Urhahn authored
-
- Nov 23, 2020
-
-
chilja authored
-
- Nov 20, 2020
-
-
BMItter authored
Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
chris-cwa authored
* updated test api fragment to display exposure windows * do not show dummy text on device * removed it
- Nov 19, 2020
-
-
Matthias Urhahn authored
-
BMItter authored
* Show aggregated risk result in testmenu riskCalculationFragment * Use extention fun to build string for aggregated result * Show exposure window count and exposure windows as json + fixed a layoutbug with cut off * satisfy lint * Use real values * Connected ExposureResultStore * ENF v2 Calculation adjusted Testmenu Entry for v2 * Adjusted to ExposureResultStore changes * Added logs * Removed and adjusted some old stuff * Made backend parameters a little bit better readable * its better this way * Created additional risk calc info * Refactoring * sourcecheck clean
-
chris-cwa authored
* inject enf client and exposure result store * Fix klint. Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Kolya Opahle authored
-
- Nov 18, 2020
-
-
chris-cwa authored
-
Matthias Urhahn authored
Fix RiskLevelCalculationTask not being executed if no new match was found (EXPOSUREAPP-3849) (#1657) * Execute risk calculation even if no match. * Pass an "originTag" with each started task to support debugging efforts. Fix unit test regression. * Re-add missing download task arguments. * Fix misleading log statement.
-
chris-cwa authored
* activate WindowExposure mode * extirpated tokens! * detekt, ktlint * fixed tests * - v1 methods * - get v1 exposure summary * - fixme * updated exposure summary repo * Adding mock dependencies that are required to instantiate the worker factories in our binding test. * Added numberOfDaysWithHighRisk and numberOfDaysWithLowRisk according to new tech spec * Transformed minimumDistinctEncountersForRisk and mostRecentDateForRisk into extension fun * make sure list of windows and aggregated result belong together * sending values for current UI * fixed ktlint * renamed ExposureResultStore * fixed tests Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
BMItter <berndus@gmx.de>
-
Kolya Opahle authored
Signed-off-by:
Kolya Opahle <k.opahle@sap.com>
-
- Nov 17, 2020
-
-
Matthias Urhahn authored
Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Nov 16, 2020
-
-
Kolya Opahle authored
Cannot delete tests older than 21 days - DE: Tests die älter als 21 Tage sind, können nicht gelöscht werden (EXPOSUREAPP-2398) (#1586) * 1. Replaced redundant uiStateState during test result fetch with a NetworkRequestWrapper that is able to represent multiple states. This allows for better request state handling throughout the app 2. Completely removed the SubmissionViewModel 3. Failure to fetch the test should now always display the invalid test card on the home screen Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Keep displaying fetching card on server errors as this usually does not indicate any problems with the test itself Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Fixing unit tests (mostly just syntax, one test case changed due to new card) Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Promoted unknown host exception to server exception Co-authored-by:
chris-cwa <69595386+chris-cwa@users.noreply.github.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
Co-authored-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
* Enable logfile for tester builds by default. * Fix test regression.
-
Kolya Opahle authored
* Initial switch to new app config version (no tests/lint) * Fixed some unit tests, not all are working yet * Fixed ConfigParserTest * ktlint fixes * ktlint * ExposureWindows to map is now beautiful Signed-off-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
BMItter <Berndus@gmx.de>
-
- Nov 13, 2020
-
-
Matthias Urhahn authored
* Catch cancellation exceptions for coroutines launched on the viewModelScope. * Use the viewmodel provided launch method to use common handling. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
chris-cwa <69595386+chris-cwa@users.noreply.github.com>
-
- Nov 11, 2020
-
-
Matthias Urhahn authored
* Show more specific error message when quota limit is reached and remove "Update ever 24h text". * Show custom title in error dialog and make stack trace selectable. * LINTs * Add a log statement so that in all cases the the base error reporting is made visible. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
* Replaced KeyFileDownloader.kt in favor of KeyFileSyncTool.kt. Supports new logic for more frequent downloads First draft. * Change "country" to location, which is more fitting. * Split sync success tracking into days and hours, track them separately. * Fix stale location data not being cleaned up. * Test fragment, first drafts. Remove 24 hour mode options, no longer used. * Implemented metered connection check for hourly key download. * Provide timeout values for download transaction and individual downloads via app config. * Add clear+download actions, and current network state display to the key download test fragment. * Complete unit tests for KeyDownloadTool.kt * Complete unit tests for FlowPreference and DownloadConfigMapper- * Unit tests for day and hour sync tool. * Complete tests for KeyPackageSyncTool.kt * klint & detekt <3 * Fix tags and commented out code (the deletion behavior is covered by `getting completed keys` * Fix text typo. * Sync tools need to tell what (if) new packages have been downloaded. * Interval checks for exposure detection. * Use the ENFClient, avoid direct access to the calculation tracker. * Remove defensive check "wanted countries"/"available countries" to reduce server hits. * CalculationTracker's timeout should come from the AppConfig (androidExposureDetectionParameters.overallTimeoutInSeconds) * Add test to confirm that we delete stale locations. * Finished key packages test screen. Introduced some boilerplate code to make async diffutils easier to use (will help us with the homefragment later on). * Remove ETag fallback behavior, missing ETag is such an edge case that we should throw. * Check valid max and min config values. * Fix linting issues. * Address PR comments. * EXPECT_NEW_*_PACKAGES should be based on the package time data, not the download creation timestamp. The downloads creation timestamp can be subject to race conditions. * Fix overflow due to time addition with Long.MAX_VALUE * Clean up tests * Don't crash the task if we can't get today's hour index. (Makes timetravel testing difficult, and a real abort reason would be a crash on the day index) * Display errors (don't crash) when running manual keysync from the test menu. * Fix last day/hour sync result success state not being updated. * Change Key download task collision mode from ENQUEUE to SKIP_IF_SIBLING_RUNNING. * Rename CalculationTracker to ExposureDetectionTracker * Rename `forceSync` to `forceIndexLookup`. * Remove outdated comments. * Spell out viewholder. * Move `maxExposureDetectionsPerUTCDay == 0` into it's own check. * Change test menu metered connection button behavior. It's now a button 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. * Change test menu metered connection button behavior. It's now a button 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. * Dry sync/error logging call. * Improve parameter naming, it's target locations, not available locations. The app config alone determines which locations we try to sync. Co-authored-by:
BMItter <46747780+BMItter@users.noreply.github.com>
-
- Nov 10, 2020
-
-
Matthias Urhahn authored
* Add default app config as last resort fallback. * Change config type names and improve logging for HotDataFlow.kt * Run the app config retrieval on the app scope, otherwise UI unsubscription could cancel the app config retrieval. * Offer "identifier" property that can identify app configs such that subscribers know when it is considered changed. * Behavior change AppConfigProvider.kt, there is no caching/replay grace period, once the last subscription is gone, it's last value is cleared. * Klint ;) * Add a unit test specifically for checking the default configs checkum and parsability. * Fix test breaking on CI. * Don't check the checksum for the config loaded from assets. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Nov 09, 2020
-
-
Matthias Urhahn authored
-