-
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] The updated amount is not copied to clipboard. #26664
Comments
Triggered auto assignment to @zanyrenney ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The modified request amount is not copied to the clipboard. What is the root cause of that problem?On updating the money request, we only update the Line 982 in 4304851
The message on the original
What changes do you think we should make in order to solve the problem?
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${iouReport.reportID}`,
value: {
[parentReportAction.reportActionID]: {
message: ReportUtils.getIOUReportActionMessage(
parentReportAction.originalMessage.IOUReportID,
parentReportAction.originalMessage.type,
updatedTransaction.modifiedAmount,
updatedTransaction.comment.comment,
updatedTransaction.modifiedCurrency,
),
},
},
}, This will update the Note: This apparently requires updating the What alternative solutions did you explore? (Optional) |
This is BE issue. Because when we send the As I see @paultsimura 's opinion for root cause is correct but his solution isn't enough. |
My proposal fixes the clipboard issue, right what is described in the ticket. However, I'd like to understand what is the "all necessary details" - from my understanding, the details like
|
Yep, this is reproducible, adding the external label. |
Job added to Upwork: https://www.upwork.com/jobs/~012d2ba9ac8db0e8b1 |
Current assignee @zanyrenney is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Being discussed on Slack. https://expensify.slack.com/archives/C01GTK53T8Q/p1693927193607219 |
So it seems that it should have been fixed in #24630. |
Hi @parasharrajat thank you for investigating. |
OK, I see that it is different from #24569. Both proposals are wrong. you are looking at the old reportaction but we are forgetting that it is an action that won't change. Instead, we add more modified actions for details being updated. So if we want to copy the exact message as previewed, then the message needs to be formatted from data instead of using static values from actions. @mountiny because you worked on it earlier. What do you think about this issue? |
@parasharrajat thats correct the MoneyRequestAction component is basically just a view for the Transaction which is assocaited with ti and the link is in the message.IOUTransactionID field, this way you can pull the transaction object and get the data you want |
@BhuvaneshPatil Thanks for the proposal. There are a few types of IOU in the App.
Now, the function needs to give a properly formatted string. Can you please lay out the logic of the function on how will you create the message? Hint: Try creating all types of requests and observe them, modify your function to fit in. Then edit these requests and observe again. You will be able to get the messages used from original message strings for all types. Normally, the same is used in LHN as the last message text. |
sure @parasharrajat
We can add another check in the context menu action. if(isIOU && !isSplitBill){
//
} |
Thanks, I am discussing this issue as a possible regression. |
Updated proposal |
@parasharrajat, @zanyrenney Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I am going to close this issue because it's basically the same root cause as #26571 and this was created after. |
@pecanoro This issue is about money request and the other one is about task and the solution is totally different |
@BhuvaneshPatil It's a regression for the same PR, so we need to solve it in a single PR. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The updated amount should appear.
Actual Result:
The updated amount does not appear.
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.62-4
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
2023-08-25_20-57-31.mp4
bandicam.2023-09-04.20-08-17-147.mp4
Expensify/Expensify Issue URL:
Issue reported by: @oleksandr-pantsyr
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692986644530329
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: