-
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
Use IOU/Expense reportID for IOU actions #18604
Conversation
What is the progress on this? |
|
@eVoloshchak @amyevans One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
I'm not able to reproduce the delete error. What error are you getting back from the API? As for the IOUPReview, it should still be shown. |
Error 401 {
"jsonCode": 401,
"message": "401 Unauthorized report NVP.",
"onyxData": [
{
"onyxMethod": "merge",
"key": "reportActions_6792924156649370",
"value": {
"errors": {
"1684260166419151": "Auth DeleteMoneyRequest returned an error"
}
}
},
{
"onyxMethod": "merge",
"key": "reportActions_6792924156649370",
"value": {
"errors": {
"1684260166419151": "Auth DeleteMoneyRequest returned an error"
}
}
}
],
"requestID": "7c8588974f9c9a17-SJC"
} |
@s77rt that seems unrelated to the changes in this PR. We already have another internal issue to track that error. |
Reviewer Checklist
Screenshots/VideosWebweb.mp4Desktopdesktop.mp4iOSios.mp4 |
@luacmartins Checklist is ready. Just waiting for a confirmation for the reported bug if it's something we should fix in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
Thanks for the thorough review @s77rt |
…enseReports Use IOU/Expense reportID for IOU actions (cherry picked from commit d20142b)
…-18604 🍒 Cherry pick PR #18604 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 1.3.14-13 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.14-14 🚀
|
props.chatReportID, // Needs to be changed to iouReportID | ||
props.requestReportID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luacmartins Can you please explain why was this needed? We think this is causing this bug #19487
In case of a SPLIT action, the requestReportID
is '0'. Building optimistic thread will not work as expected as the parentReportID
will be '0'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not be building a thread when clicking the preview on a Split action. We instead show a split details page that is being worked on here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it has to be for other cases, we should probably consider treating this a bit differntly for the split case, need to explore more there.
There might be many PRs during the IOU actions to report transactions. I am not sure which one should be tagged but when these IOU reports were added, we should have also updated the LHN rendering logic to allow these reports to behave like normal chats causing this #19570 whose explanation is in #19570 (comment). |
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
createdReportActionID: isNewChat ? optimisticCreatedAction.reportActionID : 0, | ||
reportActionID: optimisticIOUAction.reportActionID, | ||
createdChatReportActionID: isNewChatReport ? optimisticCreatedActionForChat.reportActionID : 0, | ||
createdIOUReportActionID: isNewIOUReport ? optimisticCreatedActionForIOU.reportActionID : 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have added a similar logic for createdIOUReportActionID
to the getSendMoneyParams
function.
#38141
Add the IOU reportAction to the IOU/Expense report instead of the parent chatReport.
We are gonna start creating IOU reportActions directly in the IOU/Expense report and as part of the switch, we are temporarily skipping test so that Auth integration tests pass. The plan to make the switch is:
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/281893
Tests
In dev, pull these Auth and Web-E branches
Pre-requisites: 2 accounts you have access to
Request money
+ > Request money
Delete request
8. Tap on the request preview and delete the request
9. Verify that a
deleted the $X request
message is added to the IOU reportPay money request
10. In accountB, navigate to the IOU report with accountA
11. Tap on the pay button and settle elsewhere
12. Verify that a
settled up $X
message is added to the IOU reportWorkspace case
+ > New workspace
Offline tests
Covered above
QA Steps
Same as above.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
desktop.mov
iOS
Android