-
Notifications
You must be signed in to change notification settings - Fork 335
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
Align internal and external notification expiry #6822
Align internal and external notification expiry #6822
Conversation
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.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
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.
Reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @kl)
android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/accountexpiry/AccountExpiryNotificationProvider.kt
line 62 at r1 (raw file):
companion object { private val REMAINING_TIME_FOR_REMINDERS = Duration.standardDays(3)
I think that we either should reference the other constant or use the same since otherwise it is quite easy to forget that they should be the same.
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Pururun)
android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/accountexpiry/AccountExpiryNotificationProvider.kt
line 62 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
I think that we either should reference the other constant or use the same since otherwise it is quite easy to forget that they should be the same.
I agree but ACCOUNT\_EXPIRY\_CLOSE\_TO\_EXPIRY\_THRESHOLD
is defined in the main module file AccountExpiryConstant.kt
and REMAINING_TIME_FOR_REMINDERS
is defined in the service module. So we cannot use the ACCOUNT\_EXPIRY\_CLOSE\_TO\_EXPIRY\_THRESHOLD
constant in the AccountExpiryNotificationProvider
file. Should we move the AccountExpiryConstant.kt
file to the service module and have the use case reference the constants from there?
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @kl)
android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/accountexpiry/AccountExpiryNotificationProvider.kt
line 62 at r1 (raw file):
Previously, kl (Kalle Lindström) wrote…
I agree but
ACCOUNT\_EXPIRY\_CLOSE\_TO\_EXPIRY\_THRESHOLD
is defined in the main module fileAccountExpiryConstant.kt
andREMAINING_TIME_FOR_REMINDERS
is defined in the service module. So we cannot use theACCOUNT\_EXPIRY\_CLOSE\_TO\_EXPIRY\_THRESHOLD
constant in theAccountExpiryNotificationProvider
file. Should we move theAccountExpiryConstant.kt
file to the service module and have the use case reference the constants from there?
I think that is fine. Ideally we should have some common constant module similar to the model module, but that is beyond the scope of this PR.
e52d569
to
60f44df
Compare
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.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @Pururun and @Rawa)
android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/accountexpiry/AccountExpiryNotificationProvider.kt
line 62 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
I think that is fine. Ideally we should have some common constant module similar to the model module, but that is beyond the scope of this PR.
Done.
60f44df
to
d798035
Compare
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.
Reviewed 5 of 5 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
d798035
to
808d6c9
Compare
808d6c9
to
cc357be
Compare
This change is