-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2023-06-19] [$1000] Split Bill preview not showing correct description/currency #19870
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The description in the split bill details page gets reset to the latest value saved in Onyx. Note that the same issue also occurs for the currency code. What is the root cause of that problem?The reason for this is because we are not getting these details from the report but rather from Onyx as shown in the code below.
What changes do you think we should make in order to solve the problem?To fix this these values have to passed down as props ( ...
const splitAmount = parseInt(lodashGet(reportAction, 'originalMessage.amount', 0), 10);
const splitCurrencyCode = lodashGet(reportAction, 'originalMessage.currency');
const splitComment = lodashGet(reportAction, 'originalMessage.comment');
<MoneyRequestConfirmationList
...
iouAmount={splitAmount}
iouCurrencyCode={splitCurrencyCode}
iouComment={splitComment}
iouType={CONST.IOU.MONEY_REQUEST_TYPE.SPLIT}
isReadOnly
shouldShowFooter={false}
/> What alternative solutions did you explore? (Optional)None. |
Job added to Upwork: https://www.upwork.com/jobs/~012fa29a23a09e4f51 |
Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Current assignee @Julesssss is eligible for the External assigner, not assigning anyone new. |
original proposal here - #19855 (comment) ProposalPlease re-state the problem that we are trying to solve in this issue.in Split bill detail page, the description shown is not matching with original What is the root cause of that problem?For App/src/components/MoneyRequestConfirmationList.js Lines 361 to 372 in 0d1995a
App/src/pages/iou/MoneyRequestDescriptionPage.js Lines 53 to 56 in 0d1995a
What changes do you think we should make in order to solve the problem?Like we are passing the
Similarly we can add another prop for currency as well. Working SolutionSplit.Bill.Description.Issue.-.Made.with.Clipchamp.mp4What alternative solutions did you explore? (Optional)
|
ProposalPlease re-state the problem that we are trying to solve in this issue'Description' field displays blank content for split bill participants What is the root cause of that problem?The root cause is that we are using MoneyRequestConformationList component while creating the split bill as well as displaying details of the IOU reportAction. While creating bill, the App/src/components/MoneyRequestConfirmationList.js Lines 346 to 353 in d661708
What changes do you think we should make in order to solve the problem?App/src/pages/iou/SplitBillDetailsPage.js Lines 85 to 93 in d661708
While rendering the MoneyRequestConformationList in SplitBillDetailsPage, we are passing the amount as a prop but not the comment. So, we need to pass a prop called iouComment which should be equal to lodashGet(reportAction, 'originalMessage.comment', '') Just like we do for amount on line 71.Then in MoneyRequestConformationList we need to check if this.props.iouComment exists, then display that, otherwise display this.props.iou.comment like this: (in line 348, MoneyRequestConformationList.js)
title={this.props.iouComment || this.props.iou.comment} After Applying: Screen.Recording.2023-06-01.at.11.39.05.PM-1.mov |
Proposals of @therealsujitk and @BhuvaneshPatil will cause a regression because we are using Screen.Recording.2023-06-02.at.1.18.39.AM.mov |
Bumping for review @eVoloshchak |
All of the proposals are quite similar, I think we should proceed with the first proposal that correctly identified the root cause. 🎀👀🎀 C+ reviewed! |
📣 @BhuvaneshPatil You have been assigned to this job by @Julesssss! |
Hello, I have applied. PR will be ready by EOD. Thank you |
Hello, the PR is merged. What is next process? |
We're still waiting for it to be deployed to production. We often don't deploy on Fridays, but you should see an automated comment on this issue either today or Monday. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.26-4 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 2023-06-19. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
@eVoloshchak @Julesssss @flaviadefaria |
This one is ready to pay once the checklists above are filled by @flaviadefaria and @eVoloshchak 👍 |
Waiting for @eVoloshchak to complete the checklist so that I can issue the following payments: |
Hello @flaviadefaria , can you please share the timing of assignment and when the PR got merged, because there was a weekend in between. |
Cool, thanks for checking. So updated payments will be: I'll issue them as soon as @eVoloshchak completes the checklist above. |
|
Regression Test Proposal
Do we agree 👍 or 👎 |
@eVoloshchak sample.regression.test.-.Made.with.Clipchamp.1.mp4 |
Hey @flaviadefaria, based on your last question, I think we are good to pay out now? |
Yep, now we are. I'll handle the payment today. |
Thanks |
Offer sent! |
All done so closing this GH. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The currency and description should show the currency and description used when creating the request
Actual Result:
The currency and description dynamically changes every time we set a new value from money request flow
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.20-3
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
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-05-29.at.22.03.49.mov
Recording.818.mp4
Expensify/Expensify Issue URL:
Issue reported by: @bernhardoj
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685369261418519
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: