- Nov 18, 2020
-
-
chris-cwa authored
-
chris-cwa authored
-
chris-cwa authored
-
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
-
Kolya Opahle authored
-
Ralf Gehrer authored
-
Matthias Urhahn authored
Fix config default values not being used if protobuf is missing the data structures (EXPOSUREAPP-3856) (#1649) * Improve logging. * Fix exposure detection config not using default values if protobuf structures are null. * Fix key download config not using default values if protobuf structures are null. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
-
BMItter authored
* Added numberOfDaysWithHighRisk and numberOfDaysWithLowRisk according to new tech spec * Transformed minimumDistinctEncountersForRisk and mostRecentDateForRisk into extension fun * typealias for ProtobufRiskLevels Signed-off-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
Kolya Opahle <k.opahle@sap.com>
-
- Nov 17, 2020
-
-
janetback authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
janetback authored
* Update privacy_de.html * Update privacy_de.html Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
janetback authored
-
Matthias Urhahn authored
due to use of `sendBlocking`. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
Refactor app config to source, check validity and improve edgecase handling (EXPOSUREAPP-3774,EXPOSUREAPP-3771) (#1623) * Refactor app config in to source: remote, local and default. Check validity on local config before requesting one from remote. * Handle JSON/GSON related edge-case behavior. * Set local time offset for the default config to 0. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Ralf Gehrer authored
* Don't limit the DownloadDiagnosisKeysTask to once a day (EXPOSUREAPP-3771) * Start DownloadDiagnosisKeysTask only once every hour (EXPOSUREAPP-3771) * Fix initial state after fresh install (EXPOSUREAPP-3771) * please ktlint and small fix * Remove debug notification * Use task state instead of a dedicated retrieving status indicator * remove empty line Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
BMItter authored
* Adjusted tests accordingly - removed deprecated provideDiagnosisKeys * satisfy detekt
-
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.
-
Matthias Urhahn authored
-
Matthias Urhahn authored
* Make config sharing behavior `SharingStarted.Lazily`. (start once, never release) Otherwise classes that are just interested in the current config, if there is no other subscriber active, would launch the `startValueProvider` and pull a config each time. The ExposureDetectionTracker is such a candidate that would like to use the latest config every ~3min. While this already no longer happens since "Track config changes" (4d1ecb54), because there is no a class that is permanently subscribed to `currentConfig`, we should not rely on side-effects, so let's make the sharing behavior explicit. * Fix test regression. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
* Fix HotDataFlow behavior. * Prevent re-execution of past submissions when the observable goes cold. * Guard internal value updates with a mutex in case the value update is not as thread-safe as we think it is. * Fix problematic testcases.
-
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>
-
Oliver Zimmerman authored
* Update RiskLevelRepository.kt * Removed comment Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
BMItter authored
* Implemented the opportunity to use ExposureDetectionTracker without identifier * Old provideDiagnosisKeys = NO-OP * clean * maxLength clean * refactoring and extension function * adjusted wording * Throw UnsupportedOperationException in ENFClient in case * ktlint clean * fix tests for now * commented out Exception temporarily * adjusted enfTest -wip, throw unsupportedOperationException
-
Matthias Urhahn authored
* Flush the json data after writing it, otherwise if the app process dies, we end up with an empty file. GSON deserializes this into a null object that looks like a non-null object until it is evaluated some time later. Force an evaluation via `require(it.size >= 0)` and delete the corrupt data file when catching the exception. * Show a visible error dialog if we fail to save data. * Used buffered versions of readers and writer.
-
Ralf Gehrer authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- 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>
-
SAP LX Lab Service Account authored
Change-Id: I64e8b3a17346d3e14e3c7306c89100633afc104e Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
janetback authored
-
chris-cwa authored
* + config changed detector * tests * ConfigChangeDetector.kt improvements. * Fix config collecting scoping * Move the identifier update into the RiskLevelTask * Add test coverage * Logs NO-OPs too. * Filter emissions early if the value didn't change. * extracted constant Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Roman Elizarov authored
There is a number of place in the app with the following code pattern: try { // do some suspending operation } catch(e: Exception) { e.report(ExceptionCategory.EXPOSURENOTIFICATION) // or similar } In all such place if the corresponding suspending gets cancelled for any reason, the resulting CancellationException will get reported as an application crash. This fix prevents it from happening, since a cancellation exception is a part of a normal operation, not a failure that should be reported.
-
- Nov 12, 2020
-
-
Matthias Urhahn authored
* Don't rename the APK on `device` flavor builds. It breaks internal pipelines. * Better log output.
-
BMItter authored
* Implemented exposure window provider, adjusted ENF Client * Implemented new provideDiagnosisKeys to activate ExposureWindow mode, deprecated old diagnosis related content * Adjusted ENFClientTest * conflict fix - wip * test fix
-
AlexanderAlferov authored
* Split and hide the protobuf config behind interfaces with individual mappers responsible for creating the desired formats. * Merge branch 'release/1.7.x' into feature/3455-more-frequent-riskscore-updates-configs # Conflicts: # Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/test/risklevel/ui/TestRiskLevelCalculationFragmentCWAViewModel.kt # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/transaction/RiskLevelTransaction.kt # Corona-Warn-App/src/test/java/de/rki/coronawarnapp/transaction/RiskLevelTransactionTest.kt * Make the AppConfig observable. Provide the server time offset. Offer a lastUpdatedAt timestamp. Add an app config specific test screen. Clean up test screens a bit and move debug options out of API test options. * Fix test regression due to refactoring (moved code around). * Store the server timestamp and offset at retrieval. Switch to config storage via json to be able to store additional meta data fields (i.e. time). * KLint and Me have a hate relationship based on both mutual admiration. * Fix time offset parsing being locale dependent. * Fix broken unit tests. * Improve offset accuracy, move before unzipping. * Fix overly long livedata subscription to results (viewmodel scope vs observer scope) * Add mapping for the new protobuf configs + tests. * For cached (retrofit) response, we need to check the cacheResponse and its timestamps to determine an accurate time offset. * Exposure a boolean property to tell us when a fallback config is being used. * Hide the observable flow<ConfigData> behind a method that can automatically triggers refreshes. * Use a common mapper interface. * set old risklevelcalculation deprecated * Created skeleton for new risk calculation and aggregation * Initial * Implementing steps to aggregate results form exposure windows - wip * Address PR comments and KLints. * Fix refactoring regression. * ktlint * Json parsing * Added ExposureWindowRiskLevelConfig and ExposureWindowRiskLevelConfigMapper for new config api (not yet introduced) Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Added first Implementation of exposure window based calculateRisk function Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Added generics to Range.inRange Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Added Ugly Hack to RiskLevelTransaction to allow for compilation during testing Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Linting and injecting RiskLevelCalculation into TestRiskLevelCalculationFragmentCWAViewModel, currently wont build because ExposureWindowRiskLevelConfig has no Provider Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Linting extravaganza Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Lint Wars Episode VI: Return of the trailing Comma * Improve config unzipping code. * Add flag to forward exception thrown during HotDataFlow.kt initialization. * Don't specify a default context via singleton. * Move download and fallback logic into it's own class just responsible for sourcing the config: "AppConfigSource". "AppConfigProvider" is now only responsible for making it available. * Check test cases * Simplify current concepts for making the app config observable until we have a default configuration. * Implementing steps to aggregate results form exposure windows * cleaned todo * Adjusted default values * Improve app config test screen, delete options, better feedback. Show toast instead of crash on errors. * Fixed GSON serialization not encoding/decoding the byte array correctly. Added specific type adapters for instant and duration to get cleaner json. * Remove type adapters from base gson due to conflict with CalculationTrackerStorage. * refactored Windows aggregation * We want to default to forced serialization of instant by our converters, instead of using the default serialization which will differ between Java8.Instant and JodaTime.Instant, to prevent future headaches there, register explicit converters by default, and overwrite them if necessary (currently only needed for CalculationTrackerStorage.kt). * Improve AppConfigServer code readability by moving code into extensions. * Fix merge conflicts * removed example value * Added missing import to WorkerBinderTest * fixed unit tests * Removed auto formatting on unrelated files (revert + cherry pick in other commit) Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Implementing steps to aggregate results form exposure windows * Renamed ExposureWindowRiskLevelConfig to ExposureWindowRiskCalculationConfig * adjusted & refactored Windows aggregation * removed example Values * satisfy lint * make Aggregation work with Instant now * Use long while calculation * Added normalizedTimePerDayToRiskLevelMappingList to AppConfig * normalizedTimePerDayToRiskLevelMappingList from AppConfig * satisfy lint * Get AppConfig on init and listen for updates * exposureData to aggregatedRiskPerDateResult * Corrected name in ConfigParserTest * use instant for specific aggregation logs * satisfy CI * satisfy detekt * Mock exposure windows * Full test process * Fix gitignore * Improved logging * Correct test cases dates handling * Config fix and logs * Small clean up * fixed some naming and conversion issues with json test case parsing Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * TRL Encodings in config did not match TRL Encodings used in js example * Removing a return that broke the calculation * Actual tests and formatting * Formatting Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
BMItter <Berndus@gmx.de> Co-authored-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
-
Matthias Urhahn authored
-
- Nov 11, 2020
-
-
CWA Technical User authored
* Update from https://github.com/corona-warn-app/cwa-protocol-buffers/commit/fb60eddacb048b9c0cd8a3c67ab728a9878611ed * Include new default app config for v2. Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-