-
Notifications
You must be signed in to change notification settings - Fork 847
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
[PM-16670] Force app to sync after 2FA notice #4525
Conversation
New Issues
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release/2024.12-rc13 #4525 +/- ##
=======================================================
Coverage ? 88.88%
=======================================================
Files ? 460
Lines ? 39920
Branches ? 5686
=======================================================
Hits ? 35483
Misses ? 2459
Partials ? 1978 ☔ View full report in Codecov by Sentry. |
@@ -172,6 +172,7 @@ class NewDeviceNoticeTwoFactorViewModelTest : BaseViewModelTest() { | |||
authRepository = authRepository, | |||
environmentRepository = environmentRepository, | |||
featureFlagManager = featureFlagManager, | |||
settingsRepository = mockk(relaxed = true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make a variable for this so we can test when the repo is called.
@@ -170,6 +170,7 @@ class AuthRepositoryTest { | |||
private val vaultRepository: VaultRepository = mockk { | |||
every { vaultUnlockDataStateFlow } returns mutableVaultUnlockDataStateFlow | |||
every { deleteVaultData(any()) } just runs | |||
every { syncIfNecessary() } just runs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also be verifying that syncIfNecessary
is being called in the correct spot.
# Conflicts: # app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/newdevicenotice/NewDeviceNoticeTwoFactorViewModel.kt # app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/newdevicenotice/NewDeviceNoticeTwoFactorViewModelTest.kt
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-16670
📔 Objective
We need the app to sync when the user leaves the app to setup a two factor method and comes back. This will void the grace period of 30 mins between vault syncs.
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes