Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Sep 25, 2020

Description

This adds submission logic for interop, adding consentToFederation and visistedCountries from the app config.

To successfully test our logic, additional refactoring was necessary to further rid ourselves of the singletons. This includes the verification, submission and playbook logic which are now separated and injected.

How to test

  • Perform the submission flow, and observe logcat.
  • Review refactored tests and code.

Draft TODO

…ies.

TODO: Unit tests, pull supportedCountries from AppConfig (waiting for #1213)
This would break daggers annotation processing as the class could not be resolved.
@d4rken d4rken added enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers 1.5.0 labels Sep 25, 2020
# Conflicts:
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/di/ApplicationComponent.kt
#	Corona-Warn-App/src/test/java/de/rki/coronawarnapp/service/applicationconfiguration/ApplicationConfigurationServiceTest.kt
…the submission transaction.

(Previously wasn't implemented yet, now it's merged)
# Conflicts:
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/http/ServiceFactory.kt
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/di/ApplicationComponent.kt
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/security/VerificationKeys.kt
@d4rken d4rken marked this pull request as ready for review September 29, 2020 18:48
@d4rken d4rken requested a review from a team September 29, 2020 18:48
The UI requires the list to be empty, if it is empty in the config.
I've moved the fallback country insertion into the transaction.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

77.4% 77.4% Coverage
0.0% 0.0% Duplication

@d4rken d4rken merged commit 96d9482 into release/1.5.x Sep 30, 2020
@d4rken d4rken deleted the feature/interop-keysubmission-logic branch September 30, 2020 11:45
@harambasicluka harambasicluka added this to the 1.5.0 milestone Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants