Skip to content
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

Merged
merged 13 commits into from
Mar 31, 2023

Conversation

kathaypacific
Copy link
Collaborator

Description

When odis v1 is EOL'ed, we will no longer be able to get the phone hash using ODIS. This means we should:

  • do not try to fetch on-chain phone numbers during the phone number lookup in the send flow
  • do not try to background migrate to CPV
  • remove option to revoke on-chain mapping in the debug settings menu

Test plan

n/a

Related issues

Backwards compatibility

Y

Copy link
Member

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

@@ -100,6 +101,7 @@ interface StateProps {
supportedBiometryType: BIOMETRY_TYPE | null
shouldShowRecoveryPhraseInSettings: boolean
hapticFeedbackEnabled: boolean
odisV1EOL: boolean
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: seems simpler, no?

Suggested change
odisV1EOL: boolean
odisV1Enabled: boolean

Copy link
Collaborator Author

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

Copy link
Member

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 😅

Copy link
Collaborator Author

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

src/app/saga.ts Outdated
@@ -384,8 +386,9 @@ export function* handleSetAppState(action: SetAppState) {
}

export function* runCentralPhoneVerificationMigration() {
const odisV1EOL = yield select(odisV1EOLSelector)
const shouldRunVerificationMigration = yield select(shouldRunVerificationMigrationSelector)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We should update shouldRunVerificationMigrationSelector instead and add the new condition there?
Otherwise this selector name becomes a bit misleading.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah oops, yes you're right. updated!

@kathaypacific kathaypacific enabled auto-merge (squash) March 30, 2023 11:51
@kathaypacific kathaypacific changed the title chore: add remote config variable to handle when odis v1 is EOL'ed chore: add remote config variable for decentralised phone verification paths Mar 30, 2023
@kathaypacific kathaypacific enabled auto-merge (squash) March 30, 2023 13:51
@kathaypacific kathaypacific enabled auto-merge (squash) March 31, 2023 07:00
@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Merging #3603 (3d4b9a7) into main (c095207) will increase coverage by 0.00%.
The diff coverage is 80.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3603   +/-   ##
=======================================
  Coverage   81.57%   81.57%           
=======================================
  Files         691      691           
  Lines       24011    24018    +7     
  Branches     4261     4263    +2     
=======================================
+ Hits        19586    19593    +7     
  Misses       4368     4368           
  Partials       57       57           
Impacted Files Coverage Δ
src/app/reducers.ts 23.18% <ø> (ø)
src/app/saga.ts 60.23% <ø> (ø)
src/firebase/firebase.ts 29.48% <ø> (ø)
src/firebase/remoteConfigValuesDefaults.ts 100.00% <ø> (ø)
src/redux/store.ts 84.21% <ø> (ø)
src/app/selectors.ts 90.56% <33.33%> (+0.18%) ⬆️
src/account/Settings.tsx 67.92% <100.00%> (+0.40%) ⬆️
src/identity/contactMapping.ts 89.69% <100.00%> (+0.12%) ⬆️
src/redux/migrations.ts 98.50% <100.00%> (+<0.01%) ⬆️
test/schemas.ts 97.88% <100.00%> (+0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c095207...3d4b9a7. Read the comment docs.

@kathaypacific kathaypacific merged commit 797121d into main Mar 31, 2023
@kathaypacific kathaypacific deleted the kathy/odis-eol branch March 31, 2023 07:29
MuckT pushed a commit that referenced this pull request Sep 15, 2023
### Description

This was a bug from #3603 :( 

### Test plan

manually tested

### Related issues

n/a

### Backwards compatibility

Y
silasbw pushed a commit that referenced this pull request Sep 18, 2023
### Description

This was a bug from #3603 :( 

### Test plan

manually tested

### Related issues

n/a

### Backwards compatibility

Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants