-
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
[$500] Workspace -Incorrect currency message flashes for second in the workspace where the Bank account is added #36376
Comments
Job added to Upwork: https://www.upwork.com/jobs/~015575d1ff4376d09e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
Triggered auto assignment to @Christinadobrzyn ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.All expenses will be converted to this currency appear when Bank account is added What is the root cause of that problem?We currently check if the currency page has VBA:
This check is not performed on initial page load but is done when we change between chat and settings What changes do you think we should make in order to solve the problem?Update the code to perform this check on the first load itself We need to define the following check: const achState = lodashGet(reimbursementAccount, 'achData.state', '');
const hasVBA = achState === BankAccount.STATE.OPEN; What alternative solutions did you explore? (Optional)N/A |
Hi @m-natarajan so sorry, I don't understand the reproduction steps in the OP. Is the issue that the currency messaging on the workspace Bank Account page doesn't match the Profile page? Asking QA for some guidance - https://expensify.slack.com/archives/C9YU7BX5M/p1707775399734399 2024-02-12_14-59-21.mp4 |
Should have the same root cause as #34919 |
oh nice -thanks @bernhardoj! Reached out in #34919 to see if we can consolidate or if we should hold this until #34919 is fixed. |
Okay, we're going to put this on hold for #34919 (comment) |
hold for #34919 (comment) |
hold for #34919 (comment) |
Hold for - #34919 (comment) |
hold for - #34919 |
📣 @fedirjh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @fedirjh |
@yuwenmemon There's discussion ongoing on a regression by the selected proposal, could we pause assignment here for a moment while we sort it out? Thanks! |
@bernhardoj It happens after applying your change so I believe it is. Do you agree it only starts happening after your change? |
I can't follow your repro steps as I can't seem to add a bank account from the new dot, so I add it from the old dot. You are saying that to solve the regression from my proposal, we should clear the plaid when unmounting.
So, please explain which part of my proposal caused the regression that requires us to apply the code above instead of just saying that my proposal caused the regression. |
I think I finally understand the issue you mean. It's specifically this change. When the plaid event is not cleared, App/src/pages/ReimbursementAccount/ReimbursementAccountPage.js Lines 436 to 438 in f150229
On With or without my solution, the plaid event is never cleared. So, yeah, it's still an existing issue on the |
@fedirjh Oh, I didn't know OpenReimbursementAccountPage clears the plaid data, but it's ONYXKEYS.PLAID_CURRENT_EVENT specifically that still exists. |
Yes @fedirjh,
@bernhardoj Your proposal reveals the issue (still a regression I think, although it doesn't introduce the root cause), so I still think we need to fix it here. The UX issue wasn't reproducible in @fedirjh What do you think? (I'd be happy to collaborate with @bernhardoj if we decide to fix this) |
My proposal reveals the issue specifically to your steps, but the loading issue already happens even without my change. You can see here even on Screen.Recording.2024-04-09.at.22.43.15.movScreen.Recording.2024-04-09.at.22.51.43.movCompared to when the plaid event is empty. Screen.Recording.2024-04-09.at.22.45.11.movIf we really want to clear the plaid event, then I would prefer to clear it when mounted just like I did here since unmount logic won't be called if you close the app. Even better is setting |
This issue has not been updated in over 15 days. @yuwenmemon, @fedirjh, @bernhardoj, @Christinadobrzyn eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Hi @bernhardoj @fedirjh - can you provide an update on this? |
@Christinadobrzyn hi, the PR is already deployed to prod a week ago |
yikes! let's pay this out! I need to step away for an appt but I'll write up a payment summary so we can pay this out. |
Payouts due:
Upwork job is here. @bernhardoj or @fedirjh do we need a regression test? |
nudge @bernhardoj or @fedirjh do we need a regression test? |
I think it's good to have a regression test. We can take the test step from the PR Prerequisite: have a connected workspace bank account
|
Regression test - https://github.com/Expensify/Expensify/issues/394581 Closing this out, let me know if I'm missing anything! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.40-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
Action Performed:
Precondition:
Fully verified bank account has been successfully added
Steps:
Expected Result:
"The default currency can't be changed because this Workspace is linked to USD bank account" message should be present under Currency section
Actual Result:
"All expenses on this workspace will be converted to this currency" flashes for a moment when Bank account is added
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6377233_1707771199654.Recording__2240.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: