Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ABW-3490] Security problems refresh bug #1207

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

matiasbzurovski
Copy link
Contributor

@matiasbzurovski matiasbzurovski commented Jul 10, 2024

Jira ticket: ABW-3490

Description

Solves the UI glitch caused by problem5 showing up and disappearing during an instant.

Notes

To reproduce the case easily, you can lower the retry backup interval to something like 5-10 seconds. Then, place the device in airplane mode and you will easily see the issue on any account at Home screen.

After doing so and adding some logs for the problems detected by the SecurityCenterClient, I could see the following 3 logs almost immediately every time the cloud backup was attempted:

[]
[]
[.problem5]

As you may see, the client is indicating two times there is no problem, before correctly indicating at last that wallet has problem5.

The first empty result shows because when app tries to perform a new backup after a failing one, it deletes the existing one on UserDefaults storage. Then, the SecurityCenterClient was considering this not a problem, when the fact is that if iCloud sync is enabled and there is no cloud backup, then we should consider we have a problem. This was fixed here.

The second empty result comes because after failing to backup, while we attempt to perform a backup we set User Defaults to have a result BackupResult.Result.started. Until now, this wasn't considered a failing state. However it must also be considered a failing state to avoid the glitch while the operation takes place. It makes logical sense to be considered a failure state since we don't have a backup at such moment. This was fixed here

@GhenadieVP GhenadieVP merged commit fcc96a4 into main Jul 18, 2024
6 checks passed
@GhenadieVP GhenadieVP deleted the ABW-3490-security-refresh-bug branch July 18, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants