-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix: After deleting the payment method in Wallet, it is displayed in the WS settings #54235
Conversation
@ishpaul777 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@@ -276,6 +286,32 @@ function deletePaymentBankAccount(bankAccountID: number) { | |||
], | |||
}; | |||
|
|||
Object.values(allPolicies ?? {}).forEach((policy) => { |
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.
here is how it works in offline mode @ishpaul777 @marcochavezf :
Screen.Recording.2024-12-17.at.1.47.05.PM.mov
@marcochavezf Should i send allpolicies
with the api parameters or will you take care of that in the BE?
Let me know if we need to update the offline behavior
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.
bump @marcochavezf @ishpaul777
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.
Also is this current behavior correct ?
i'll review this today 🙇 |
reminder @ishpaul777 😄 |
sorry for delay @twilight2294 i have been busy with other tasks I'll try to priortize review this week in comig days 🙇 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@twilight2294 please complete checkist and add unit tests, and raise the changes you expect in BE in slack channel and tag us so we can have more eyes from other internal engineers. Thanks! |
Sorry i am yet to be added to slack, can you please discuss it on my behalf ? or we can discuss on the linked issue |
@twilight2294 we have discussed this issue in slack @nkuoch will be working on a Backend fix for this we might not need this PR for now. Please close this PR |
Even if this is fixed in the |
so solution we are discussing is, we should remove the bankaccount only if the bank account only belongs to the user who set it up and has no sharees since you don't have other policy members bank account data you cant set the optimistic data for such case cc @nkuoch please correct me if i got this wrong |
yeah even this would require a offline case fix |
@twilight2294 can you add [hold] in PR title please |
@ishpaul777 now that BE is done, can you please continue reviewing this PR? |
@twilight2294 as explained here i dont think current changes are accurate given the expected behaviour and we need this PR now if the issue is fixed on BE side |
sure @ishpaul777 |
Explanation of Change
Fixed Issues
$ #53575
PROPOSAL: #53575 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop