-
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
Sync newly returned report objects from commands #3544
Conversation
I'm happy to review this as an additional reviewer, but we should always assign Pullerbear :) |
I was testing it with the Web-Expensify brach and I was getting this stacktrace error and the create report button was just spinning for very long time. Not sure what to do about it, seems like Jules pointed at some problem with returning information about the Report, which could be the reason why it keeps spinning. |
In my case, I didn't see the spinner. The request returned quickly, but it was missing the extra data 😕 |
To be fair, there is something wrong with my dev environment, it is a second day it does not work as it should. I will escalate this to #engineering-chat |
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.
Tested the branch with the relevant Web-E branch and it works well. I will approve since my comments are NAB, but consider implementing them and re-requesting the review. Good job with both of those PRs Jasper!
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Thanks for the suggestions @mountiny, requested another review! |
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.
Great @jasperhuangg!
This is unblocked now, testing. |
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 tests well, but I made a few suggestions.
Tested it too, works as expected 👏 |
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.
NAB: In addition to Jules' comments, just a small grammar details to keep the comments consistent.
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
src/libs/actions/IOU.js
Outdated
|
||
// Once we have successfully paid the IOU we will transfer the user to their platform of choice if they have | ||
// selected something other than a manual settlement or Expensify Wallet e.g. Venmo or PayPal.me | ||
if (paymentMethodType === CONST.IOU.PAYMENT_TYPE.PAYPAL_ME) { | ||
Linking.openURL(buildPayPalPaymentUrl(amount, submitterPayPalMeAddress, currency)); | ||
} else if (paymentMethodType === CONST.IOU.PAYMENT_TYPE.VENMO) { | ||
Linking.openURL(buildVenmoPaymentURL(amount, submitterPhoneNumber)); | ||
} |
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.
Was this supposed to be removed? Am I missing something, or was this a mistake? Wouldn't this break Venmo/Paypal?
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.
Changes look good, but I have one outstanding comment
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.
My comment was referring to a commit that isn't included. Good to merge once Web-Expensify/pull/31318
is deployed to prod 👍
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.
Great! Let's wait for the deploy before merging.
Looks like https://github.com/Expensify/Web-Expensify/pull/31318 has been deployed, so I'm gonna merge this! |
Unfortunately the deploy comments are not working right now. This was deployed to staging yesterday. |
Details
We were re-fetching the chat and IOU report objects once the payIOU, payWithWallet, and rejectTransaction commands completed, which was completely unnecessary. Now, since we're returning the updated IOU and Chat report objects from https://github.com/Expensify/Web-Expensify/pull/31190, we can directly update Onyx with them.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/165863
Tests
Make sure you have https://github.com/Expensify/Web-Expensify/pull/31318 either pulled or deployed.
4. Use A to request money from B. 5. In account B, decline the request. 6. Verify that the transaction was rejected correctly, and that the UI is updated to reflect it:
QA Steps
Same as the above tests
Tested On
Screenshots
android.mp4
desktop.mp4
ios.mp4
web.mp4