-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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][$250] IOU - App crashes when admin pay elsewhere #47542
Comments
Triggered auto assignment to @johncschuster ( |
We think that this bug might be related to #wave-collect - Release 1 |
@johncschuster FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crash when employee submit request and then the admin open the expense report. What is the root cause of that problem?The error comes from
Inside the function, we map over the tag array, and the map callback destructuring the tag by taking the App/src/libs/OptionsListUtils.ts Lines 1366 to 1367 in cf897a0
The tag array (policyTagList) normally looks like this:
The array is constructed from the tag object by taking the object values. Lines 274 to 279 in cf897a0
But in our case, the tag list looks like this: Each object in the array structure is totally different from the normal structure above and doesn't have a The reason of that is because, when the admin receives the pusher data of the new money request, the transaction thread report contains a very minimal information which doesn't include App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 692 to 694 in cf897a0
So, when we get the tag object values, we get What changes do you think we should make in order to solve the problem?We need to default to -1 here so it won't fetch the whole collection of tag. If it's -1, then the App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 692 to 694 in cf897a0
We can default to -1 for other onyx data in the file too. App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 686 to 697 in cf897a0
|
@johncschuster Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01374ae222703cc250 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
@bernhardoj's proposal looks good! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @chiragsalian, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Proposal LGTM. Feel free to create the PR @bernhardoj. |
PR is ready cc: @thesahindia |
Payment Summary:Contributor: @bernhardoj owed $250 via NewDot |
@bernhardoj / @thesahindia do do we need regression test steps? If so, can you provide them? |
Yes! We should add a test case. Here are the steps:-
|
Thanks for those steps! Please request payment from NewDot! |
Requested in ND. |
$250 approved for @bernhardoj |
$250 approved for @thesahindia |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.21-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue was found when executing this PR #47398
Email or phone of affected tester (no customers): applausetester+gm103030@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
App should not crash
Actual Result:
App crashes when admin pay elsewhere
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6573451_1723765657184.Recording__3745.2.mp4
1608_1.txt
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @thesahindiaThe text was updated successfully, but these errors were encountered: