Migrate to use new private_lastPaymentMethod#56210
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-03.at.4.13.10.in.the.afternoon.movAndroid: mWeb ChromeScreen.Recording.2025-02-03.at.4.03.01.in.the.afternoon.moviOS: NativeScreen.Recording.2025-02-04.at.7.52.40.in.the.evening.moviOS: mWeb SafariScreen.Recording.2025-02-03.at.3.58.38.in.the.afternoon.movMacOS: Chrome / SafariScreen.Recording.2025-02-03.at.3.28.39.in.the.afternoon.movMacOS: DesktopScreen.Recording.2025-02-04.at.8.14.43.in.the.evening.mov |
|
@hungvu193 we have one more page to update SearchPageHeader and tests are failing. |
|
Tests are failing on main too. We already had an issue for it |
|
Lint is being fixed here: #56229 |
getusha
left a comment
There was a problem hiding this comment.
We have lint failing @hungvu193
Cool. Addressed |
|
Conflicts 😄 |
|
@getusha can you take a quick look before I merge |
deetergp
left a comment
There was a problem hiding this comment.
Looks like you've got a merge conflict @hungvu193
|
That's weird 😄 , I merged main and didn't see any conflicts. Nevermind, I've just updated |
On it |
Co-authored-by: Getabalew <75031127+getusha@users.noreply.github.com>
|
@deetergp wanna do a final pass here? |
|
@hungvu193 It looks like you got another conflict and need to update the |
Done 😄 |
deetergp
left a comment
There was a problem hiding this comment.
Thanks @hungvu193! I'm going to go ahead and merge since we've had prior approval and this PR seems to collect merge conflicts like the were Pokémon.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/deetergp in version: 9.1.4-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.4-4 🚀
|
Explanation of Change
Due to the change in the structure of private_lastPaymentMethod.policyID, we will need to make this backward-compatible for existing logic in the app that references this key.
Specifically:
• Currently, private_lastPaymentMethod.policyID may hold a string value. Going forward, it will be updated to an object.
• We will check the type of private_lastPaymentMethod.policyID wherever it is referenced in the code:
• If it is a string, it will be treated as the existing format.
• If it is an object, it will be handled as the new format.
Reference: Google Docs
Fixed Issues
$ #55873
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Uploading Screen Recording 2025-02-02 at 13.53.14.mov…
Android: mWeb Chrome
Screen.Recording.2025-02-02.at.13.53.14.mov
iOS: Native
Screen.Recording.2025-02-02.at.12.53.16.mov
iOS: mWeb Safari
Screen.Recording.2025-02-02.at.12.49.14.mov
MacOS: Chrome / Safari
Screen.Recording.2025-02-02.at.12.36.40.mov
MacOS: Desktop
Screen.Recording.2025-02-02.at.12.36.40.mov