-
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
[HOLD for payment 2024-12-05] [$125] Xero - Selected Xero bank account is not highlighted with a green checkmark #52699
Comments
Triggered auto assignment to @sakluger ( |
Edited by proposal-police: This proposal was edited at 2024-11-18 12:44:16 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Xero - Selected Xero bank account is not highlighted with a green checkmark What is the root cause of that problem?We are setting the selected bank account to
but we didn't give the same backup in the account select page here
What changes do you think we should make in order to solve the problem?We should give the same fallback value in.XeroBankAccountSelectPage.tsx, i.e.
What alternative solutions did you explore? (Optional) |
This one feels like a super easy change so I'm going to set the price to $125. If there are additional fields where this is happening, or if it is actually more complex than I realize, let me know and we can consider increasing the price. |
Job added to Upwork: https://www.upwork.com/jobs/~021858554918265952310 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 ( |
Upwork job price has been updated to $125 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Default selected bank account isn't highlighted with a green checkmark What is the root cause of that problem?In
Thus there is no green checkmark What changes do you think we should make in order to solve the problem?We should use a const {bankAccounts} = policy?.connections?.xero?.data ?? {};
const xeroSelectorOptions = useMemo<SelectorType[]>(
() => getXeroBankAccounts(policy ?? undefined, config?.export?.nonReimbursableAccount || bankAccounts?.[0]?.id),
[config?.export?.nonReimbursableAccount, policy], Note that we cannot use What alternative solutions did you explore? (Optional) |
reviewing today |
This comment was marked as resolved.
This comment was marked as resolved.
@twilight2294's proposal LGTM! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @justinpersaud, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@ahmedGaber93 Can u please take a look again? The problem doesn't have anything related with using
This is because the selectedAccount either doesn't exist or it is non-empty string and we should also be consistent with it. You are being mislead by the contributor into applying unnecessary safety. The bug is only related to not giving the first bank account as a fallback here
The default bank account is visible in the menu item because we give the first bank account as a fallback here (note: using ?? )
But when the user opens the page we haven't given the same first bank account as fallback in XeroBankAccountSelectPage so it is not selected. So we should give the same fallback in both cases in the same way. The selectedAccount?.name cannot just be an empty string we know we set it to some non-empty string value or it is not set in which case we give a fallback.The selected proposal even has a wrong RCA
If the case is having an empty string then in the configuration page we will give an empty string to the menu here
and we wouldn't see the first bank account displayed in the menu item as shown in the OP Please re-review. Thx! |
@FitseTLT Thanks for the feedback, I tested your proposal well, and it doesn't fix the issue. see the test video here20241122131049586.mp4there is a different between type of App/src/pages/workspace/accounting/xero/export/XeroExportConfigurationPage.tsx Lines 25 to 26 in 63c8dd2
Another point I was thinking about it before choose the second proposal, is this small different between two proposal is worth to choose the second proposal over the first proposal that have the first root cause? I think here it is a small different, but it is important, and it should be worth If we take into consideration the issue is a straight forward with simple RCA, and the Actual Result in OP line 2 can easily lead to what the fix should be. |
@ahmedGaber93 Got it! Thx 👍 |
📣 @ahmedGaber93 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @twilight2294 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
I will raise the PR today |
PR ready for review @ahmedGaber93 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.67-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-12-05. 🎊 For reference, here are some details about the assignees on this issue:
|
@ahmedGaber93 @sakluger @ahmedGaber93 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@ahmedGaber93 please complete the BZ checklist so I can complete payment. |
Summarizing payment on this issue: Contributor: @twilight2294 $125, paid via Upwork |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
This is a minor change, and I think no regression test required. |
@sakluger Checklist have been completed, and I will get paid via NewDot. |
@ahmedGaber93 thanks! Also, thanks for clarifying that you're paid now via NewDot. I withdrew the Upwork offer and updated the payment summary above. FYI, you should no longer get automated Upwork offers sent to you - if that continues to happen, please let us know so we can make sure you're set up correctly in our system. |
Requested in ND |
$125 approved for @ahmedGaber93 |
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: 9.0.63-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5220818
Email or phone of affected tester (no customers): https://expensify.testrail.io/index.php?/tests/view/5220818
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The selected Xero bank account should be highlighted with a green checkmark.
Actual Result:
The selected Xero bank account is not highlighted with a green checkmark.
It is only highlighted after manually selecting it.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6668343_1731931675725.bandicam_2024-11-18_20-03-24-662.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @saklugerThe text was updated successfully, but these errors were encountered: