-
Notifications
You must be signed in to change notification settings - Fork 4
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
feature/7158-Binny-InAppReviewFeatureFlagForDetox #9342
feature/7158-Binny-InAppReviewFeatureFlagForDetox #9342
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.
Approving with a couple optional suggestions. Thanks for implementing this!
VAMobile/src/utils/inAppReviews.tsx
Outdated
const lastReviewVersion = await AsyncStorage.getItem(STORAGE_LAST_REVIEW_VERSION) | ||
|
||
if (days > IN_APP_REVIEW_INTERVAL_DAYS && lastReviewVersion !== versionName) { | ||
if (featureEnabled('inAppReview')) { |
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.
Instead of indenting all this under the conditional, consider doing
if (!featureEnabled('inAppReview')) return
at the top
@@ -402,6 +402,7 @@ export async function verifyNonUSorMilitaryAddresses(addressID: string, addressT | |||
}) | |||
} | |||
beforeAll(async () => { | |||
await toggleRemoteConfigFlag(CommonE2eIdConstants.IN_APP_REVIEW_TOGGLE_TEXT) |
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 toggle this globally for all E2E tests instead of toggling for individual sets of tests? And then remove all the calls to resetInAppReview in all E2E tests? It would really speed up the tests I think
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.
approved to merge
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.
approved to merge to develop
Description of Change
Screenshots/Video
Testing
Reviewer Validations
PR Checklist
Reviewer: Confirm the items below as you review
For QA
Run a build for this branch