8000 Use appScope (14703) by mtwalli · Pull Request #5837 · corona-warn-app/cwa-app-android · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Use appScope (14703) #5837

Merged
merged 1 commit into from
Feb 10, 2023
Merged

Use appScope (14703) #5837

merged 1 commit into from
Feb 10, 2023

Conversation

mtwalli
Copy link
Contributor
@mtwalli mtwalli commented Feb 10, 2023

Report flag in appScope , vm scope was cancelled after navigating from screen 🤷‍♂️

Ticket

https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-14703

@mtwalli mtwalli added bug Something isn't working maintainers Tag pull requests created by maintainers labels Feb 10, 2023
@mtwalli mtwalli added this to the 3.1.x milestone Feb 10, 2023
@mtwalli mtwalli requested a review from a team February 10, 2023 05:39
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@@ -89,7 +89,7 @@ class SubmissionSymptomCalendarViewModel @AssistedInject constructor(
)
}
performSubmission {
launch {
appScope.launch {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this also lead to problems elsewhere? vm scope is often used after navigation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the navigation still performed from vm scope. the issue here is that reporting the flag was also done from vm scope and we navigate immediately which cancels vm scope as we leave the screen and there was no chance to update the flag

@mtwalli mtwalli merged commit f93ebfe into release/3.1.x Feb 10, 2023
@mtwalli mtwalli deleted the fix/14703-ppa-race branch February 10, 2023 08:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working maintainers 4A3C Tag pull requests created by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0