-
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-16809] Fix remind me later date #4526
[PM-16809] Fix remind me later date #4526
Conversation
New Issues
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release/2024.12-rc13 #4526 +/- ##
=======================================================
Coverage ? 88.88%
=======================================================
Files ? 460
Lines ? 39916
Branches ? 5686
=======================================================
Hits ? 35479
Misses ? 2459
Partials ? 1978 ☔ View full report in Codecov by Sentry. |
@@ -79,7 +80,7 @@ class NewDeviceNoticeTwoFactorViewModel @Inject constructor( | |||
authRepository.setNewDeviceNoticeState( | |||
NewDeviceNoticeState( | |||
displayStatus = NewDeviceNoticeDisplayStatus.HAS_SEEN, | |||
lastSeenDate = null, | |||
lastSeenDate = ZonedDateTime.now(), |
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 use the clock for this, we should always be using the clock for time in the app.
Do we have any tests that need to be updated?
@@ -60,7 +59,7 @@ class NewDeviceNoticeEmailAccessViewModel @Inject constructor( | |||
authRepository.setNewDeviceNoticeState( | |||
NewDeviceNoticeState( | |||
displayStatus = displayStatus, | |||
lastSeenDate = ZonedDateTime.now(), | |||
lastSeenDate = null, |
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.
Shouldn't there be a test for this?
@@ -79,7 +82,7 @@ class NewDeviceNoticeTwoFactorViewModel @Inject constructor( | |||
authRepository.setNewDeviceNoticeState( | |||
NewDeviceNoticeState( | |||
displayStatus = NewDeviceNoticeDisplayStatus.HAS_SEEN, | |||
lastSeenDate = null, | |||
lastSeenDate = ZonedDateTime.now(clock), |
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.
👍
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-16809
📔 Objective
Fix bug introduced during PR when the remind me later date wasn't being set properly.
⏰ 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