-
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
[HOLD for payment 2023-10-10] [HOLD for payment 2023-10-09] [$1000] Web - Request money - Request confirmation link automatically changes request money currency to USD #24393
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Upon refreshing the Request Money confirmation link, the displayed currency defaults to What is the root cause of that problem?The default currency for IOUs is What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
I'd choose URL storage for IOU urls as the preferred solution as it seems to present no drawbacks while others could due to the way the app is configured Other areas facing this issue, could also use a similar approach |
I think we can simplify the reproduction steps a bit:
|
Job added to Upwork: https://www.upwork.com/jobs/~01aad4c8cddaf2f5c5 |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
@thesahindia is OOO and will be back on 19th. I can jump in here if needed. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Request money - Request confirmation link automatically changes request money currency to USD What is the root cause of that problem?When users click on Unfortunately, in this case after users login successfully, we don't have the login to set currency, so the default currency(USD) is returned What changes do you think we should make in order to solve the problem?We should't listen the currentUserPersonalDetails change in That why I suggest we should fix this problem in In this file we already listen currentUserPersonalDetails change, so we just need to init iou currency after users login successfully. We can detect users login by using
Note: This approach may need some times to load the personalDetails so the ResultScreen.Recording.2023-08-15.at.12.23.21.mov |
@tienifr nicely elaborates the third point I mentioned However, the issue with this approach is that we still see the 2023-08-15.13-00-05.mp4 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@allroundexperts, feel free to review the proposals. I am not at my 100% |
Thanks for your proposal @ygshbht. I don't think your 4th solution would work because a user might not add the currency as a query parameter to the url. In that case, we should default to the users default currency which again would be undefined for some time. @tienifr Your proposal has all the necessary implementation details. I think we should show a loader until the currency loads. @tienifr's proposal looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@sonialiap Can you please assign this to me as @thesahindia un-assigned themselves? |
That's a very wise decision indeed. I'd like to add some clarifications.
User manually editing the URL is not specific to this issue. They can do that for any URL at their own risk. However, if they navigate using the URL provided by the app, they won't face the isssue. We can only fix what's in our control.
Yes, it is missing the implementation details. I said we need to "invoke the resetMoneyRequestInfo/ currency change function at a higher-level component that mounts when the user logs in and once the currentUserPersonalDetails have been received" and @tienifr provided the code for it. If @tienifr 's proposal is selected because he focused on one solution and provided the code for it and my other solution of URL editing, even though better for end user, increases code complexity by making changes to several files, the decision won't be wrong indeed. |
@ygshbht You don't need to include every tiny detail but at the same time, you shouldn't propose an alternate solution this abstract. I'd leave the final call to @cristipaval! |
Thanks! |
@allroundexperts review, no bonus because of regression = $500 - please request in NewDot |
@allroundexperts please complete the checklist :) |
Triggered auto assignment to @anmurali ( |
I'm OOO Oct 16-23. Adding leave buddy Status: waiting for Sibtain to complete the checklist |
@sonialiap I think it should be $500 for me and @tienifr. We pay no bonus + 50% penalty for regressions. |
Checklist
Regression test steps
Do we 👍 or 👎 ? |
Back from OOO Thanks for completing the checklist! Ah, you're right. I tried looking up regression policy in the SO but either I was looking at an old post or missed this bit. I'll check with the team on what to do in this case since I've already made the payments in Upwork (idk the status of the ND payment). |
I've submitted a refund request to @tienifr and updated the amounts in comment #24393 (comment) |
@allroundexperts please make a request in ND for $500 |
All done @sonialiap! |
$500 payment approved for @allroundexperts based on comment above. |
@anmurali, @sonialiap, @cristipaval, @allroundexperts, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Are we good to close this one, @sonialiap? |
The last remaining step is following up on the refund. But I can sort that out with the issue being closed. Closing |
@sonialiap I've refunded, thanks! |
Thanks, @tienifr 🙇 |
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:
Precondition: Your default currency should not be USD when you click on request money
Expected Result:
App should display default currency of user in request money when we open confirmation link on login
Actual Result:
App displays USD as currency in request money when we open confirmation link on login
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.53-1
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
currency.changes.to.USD.in.confirmation.link.mp4
Recording.1164.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691057407426539
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: