-
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 2024-08-19] [$250] Expense - Payment options displayed before submitting in thread created inside details page #41519
Comments
Triggered auto assignment to @sakluger ( |
We think this issue might be related to the #vip-vsb. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The wrong status on button What is the root cause of that problem?App/src/components/ReportActionItem/ReportPreview.tsx Lines 127 to 128 in 7eabae9
Line 5805 in 7eabae9
The bug occurred because What changes do you think we should make in order to solve the problem?Let's see the logic in the header App/src/components/MoneyReportHeader.tsx Line 95 in 7eabae9
App/src/components/MoneyReportHeader.tsx Line 114 in 7eabae9
In the
Line 5805 in 7eabae9
What alternative solutions did you explore? (Optional)If we prefer not to remove isPolicyExpenseChat in these places, we'll need to update it to use root parent report
Since the isPolicyExpenseChat function relies on the report.chatType field, which is only true when we use the root parent report Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
I'm OOO today and Monday - assigning another BZ team member to help triage. I can take back over on Tuesday. |
Triggered auto assignment to @miljakljajic ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Payment options displayed before submitting in thread created inside details page What is the root cause of that problem?The root cause stems from #34640 where ReportUtils.getAllAncestorReportActions was written. That function returns an array of ancestors. The problem is that each ancestor in the array contains the incorrect report. The report action is correct, but the report is not; it is the report created by the action, but it should be the report containing the action. ReportActionItemParentAction uses getAllAncestorReportActions to get ancestors.
ReportActionItemParentAction wraps ReportActionItem. ReportActionItem expects that its report prop is the same report which contains its action prop. App/src/pages/home/report/ReportActionItem.tsx Lines 112 to 113 in d38fb99
App/src/pages/home/report/ReportActionItem.tsx Lines 130 to 131 in d38fb99
ReportActionItem does not expect that its report prop is the report created by its action prop. If so, its action prop would be the parent report action of its report prop. But ReportActionItem already has a parentReportAction prop. App/src/pages/home/report/ReportActionItem.tsx Lines 122 to 123 in d38fb99
Currently, props are being passed to ReportActionItem from ReportActionItemParentAction which do not conform to the above prop definitions. What changes do you think we should make in order to solve the problem?Fix getAllAncestorReportActions so that each ancestor contains the correct report, the one that contains the report action. Below is the code which creates an ancestor. Lines 6171 to 6175 in 387ab0e
Change to: That way report will be the one which contains reportAction. This change fixes the issue. ReportActionItemParentAction is the only place where getAllAncestorReportActions is accessed. Afterwards check to see if other follow-up changes are needed. |
@sakluger Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~01140896862273d9dc |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Hey @thesahindia, could you please take a look at the proposals that have been posted so far? |
@sakluger, @thesahindia Huh... This is 4 days overdue. Who can take care of this? |
I'm going to re-assign another C+ to keep this one moving. |
@rushatgabhane on staging.expenisfy.com I can start booking a flight, but then I get this error. (I am using this card number: 4242424242424242, which I saw in #43081) |
okay that should be working and you're able to access the travel website |
I am able to move forward now. Thanks! |
Moving this conversation back to the PR. |
@puneetlath, @sakluger, @kmbcook, @rushatgabhane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
PR is being reviewed. |
@puneetlath, @sakluger, @kmbcook, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
PR is being reviewed. |
PR is still being reviewed. |
The PR was merged yesterday! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.18-10 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-08-19. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Summarizing payment on this issue: Contributor: @kmbcook $250, paid via Upwork @rushatgabhane please complete the BZ checklist. |
|
Thanks! I created the GH issue for new regression test steps. |
$250 approved for @rushatgabhane |
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.69-2
Reproducible in staging?: Y
Reproducible in production?: 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/4534255
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
The expense preview component inside the thread doesn't show options to pay the expense
Actual Result:
There are options to pay the expense on the expense preview component inside the thread and when clicked shows an RBR
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6468671_1714638988287.bandicam_2024-05-02_11-18-23-185.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sakluger / @sakluger / @lschurrIssue Owner
Current Issue Owner: @puneetlath / @sakluger / @lschurrIssue Owner
Current Issue Owner: @puneetlath / @saklugerThe text was updated successfully, but these errors were encountered: