-
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
[PAY 8/13] Request Money / Split Money Greater than or equal to 100,000,000 InDefinite Loading #4130
Comments
Triggered auto assignment to @bfitzexpensify ( |
Triggered auto assignment to @thienlnam ( |
In the video you put in the description, it looks like we're actually getting a response back of invalid amount so it seems like this is handled in the back-end but just needs some front-end handling for when we get that error message |
Luckily, my friends only owe me 99 million instead of 100 million |
If I request in Rupees ₹100,000,000, Request fails. But If request in pound £10,000,000, Request success. Now User Owes more than ₹1,000,000,000. 100 Million rupees is invalid if I ask in rupees. |
Interesting, are the responses the same on all the failed transactions? |
@thienlnam Following are responses for failed transactions Split Bill: |
Thanks @Santhosh-Sellavel, I think the most straightforward solution here is to catch those errors and show some kind of error message / cancel the transaction so the user doesn't sit on an infinite spinner |
@Santhosh-Sellavel You are going to be rich soon. 🤣 |
Hey @thienlnam,
In this method, Line 66 in ad77386
We can catch errors using Show_notification_without_dismissal.mp4Is this okay or we can dismiss the iou modal? |
Hey @Santhosh-Sellavel - great questions I'm going to loop in @shawnborton for design ideas regarding what an error would should look like in the IOU flow, and what the expected behavior would be. I would expect that if an amount is invalid we would just put them back at the amount screen.
We should probably clean up the message a bit, maybe just put 'Invalid Amount' instead of having the error code |
@thienlnam I'm a little out of the loop here, but I think if an invalid number is entered on the number screen, we should validate the field right there and not wait until the next step to throw an error. |
There are some amounts that are actual numbers but cause out backend to throw an error and I'm guessing it has to do with limits on integer constants that we have back there. That's actually probably a better way to handle it and we can just hardcode a limit of 99 million? (Only consideration here is that different currencies have different conversion values but 99 million has got to be a ton of money for any currency) |
@shawnborton Consider if request fails for any other reasons, we need do handling, because infinite loading occurs back again. So we need handling for that. @thienlnam |
@Santhosh-Sellavel |
@thienlnam Okay will do it here. For Request Money -
|
Those codes and messages are good, for anything else lets give a generic error like 'Unexpected error, please try again later'
Yup 👍 |
Added i18N file as discussed added following, (Let me know if any name correction) Added a method In both @thienlnam @shawnborton I'm waiting for inputs, thanks |
Hey @Santhosh-Sellavel, can you add me as a reviewer on the PR that you push up? I can comment on implementation specific details there. If possible, I think we should try to have them try to re-enter an amount |
Roger that |
@thienlnam I'm guessing this should be an |
Nice catch - Yes, please do @mallenexpensify I've just merged his PR |
Triggered auto assignment to @adelekennedy ( |
Sorry for the ping @adelekennedy! Letting @mallenexpensify wrap up the upwork posting |
https://www.upwork.com/jobs/~0186df8dda363f929c |
Done @mallenexpensify |
Hired @Santhosh-Sellavel in Upwork! |
PR is staging checklist, changes have been merged |
Per the PR, deployed to staging two days ago, I'll issue payment on Friday if there are no regressions |
Are there any regressions, can we close this? |
Paid @Santhosh-Sellavel with bonus for reporting the issue. Code has been on production for 5 days without a regression, closing now (not sure why it didn't auto-close before) |
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:
Case 1: If there is an upper Request limit, the user should be notified with an error message.
Case 2: No upper limit means the request should have been sent successfully.
Actual Result:
Indefinite loading
Request Money:
Screen.Recording.2021-07-17.at.8.22.30.PM.mov
Split:
Workaround:
Request amount less than 100,000,000. Even 99,999,999 works.
Platform:
Where is this issue occurring?
Proposal
Need inputs from the Expensify team, this might be a back-end issue if there is no upper limit.
But I propose proper error handling should be done for situations like this. If a request fails based on request type we need to show appropriate messages to the user.
Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: