-
Notifications
You must be signed in to change notification settings - Fork 86
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
chore: add remote config variable for decentralised phone verification paths #3603
Changes from 4 commits
71bbb67
46c4087
12fb94a
a5eb092
7b8eaeb
312f7f1
4bd1fd9
f861d5e
f5c460a
6bbd55c
bbb3110
7c09558
3d4b9a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ import { | |
googleMobileServicesAvailableSelector, | ||
huaweiMobileServicesAvailableSelector, | ||
inviterAddressSelector, | ||
odisV1EOLSelector, | ||
sentryNetworkErrorsSelector, | ||
shouldRunVerificationMigrationSelector, | ||
} from 'src/app/selectors' | ||
|
@@ -212,6 +213,7 @@ export interface RemoteConfigValues { | |
dappsFilterEnabled: boolean | ||
dappsSearchEnabled: boolean | ||
requireCPV: boolean | ||
odisV1EOL: boolean | ||
} | ||
|
||
export function* appRemoteFeatureFlagSaga() { | ||
|
@@ -384,8 +386,9 @@ export function* handleSetAppState(action: SetAppState) { | |
} | ||
|
||
export function* runCentralPhoneVerificationMigration() { | ||
const odisV1EOL = yield select(odisV1EOLSelector) | ||
const shouldRunVerificationMigration = yield select(shouldRunVerificationMigrationSelector) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: We should update There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah oops, yes you're right. updated! |
||
if (!shouldRunVerificationMigration) { | ||
if (odisV1EOL || !shouldRunVerificationMigration) { | ||
return | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1097,4 +1097,5 @@ export const migrations = { | |
}, | ||
}), | ||
119: (state: any) => state, | ||
120: (state: any) => state, | ||
} |
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.
nit: seems simpler, no?
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.
lol, yes this is better. i updated
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.
lol sorry, even more 2nd thoughts:
decentralizedVerificationEnabled
instead?super nit 😅
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.
lol, i'm also fine with that. updated