Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.53k stars 2.88k forks source link

[$500] [HOLD for payment 2023-12-20] IOU - Currency is reverted to the original currency after switching between tabs #32838

Closed kbecciv closed 10 months ago

kbecciv commented 11 months ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v1.4.11-1 Reproducible in staging?: y Reproducible in production?: n 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com.
  2. Click FAB > Request money > Manual.
  3. Select a different currency and change the amount.
  4. Go to Scan tab.
  5. Go to Manual tab. The currency is not preserved.

Expected Result:

The currency and amount will be preserved.

Actual Result:

The currency is reverted to the original currency.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/93399543/b88f50f4-88a9-4bae-8f27-8976aa3da796

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e1265bf119a76d4b
  • Upwork Job ID: 1734989360105709568
  • Last Price Increase: 2023-12-13
  • Automatic offers:
    • 0xmiroslav | Contributor | 28066539
github-actions[bot] commented 11 months ago

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.
melvin-bot[bot] commented 11 months ago

Triggered auto assignment to @neil-marcellini (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

luacmartins commented 11 months ago

It seems that the issue comes from resetting the transaction here. It doesn't happen for the amount because we render the local state instead of the transaction in Onyx - https://github.com/Expensify/App/blob/e1d334a706312e2242cc64cbcd959f1c2c52028c/src/pages/iou/steps/MoneyRequestAmountForm.js#L81

neil-marcellini commented 11 months ago

Thanks Carlos. Sorry for the delay. I'm working 75% and am focusing on the web deploy for now. I'll see if I can take a look after.

luacmartins commented 11 months ago

I have a fix up

Julesssss commented 11 months ago

PR merged and is being CP'd

Julesssss commented 11 months ago

@luacmartins this still seems to occur πŸ˜•

Screenshot 2023-12-12 at 17 36 48

https://github.com/Expensify/App/assets/10736861/cee716f2-c0e1-4c58-a1c9-7894cdc6d685

0xmiros commented 11 months ago

@Julesssss it's new expected behavior

luacmartins commented 11 months ago

Correct. We changed the behavior and both amount and currency should be reset.

melvin-bot[bot] commented 11 months ago

Triggered auto assignment to @michaelhaxhiu (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

melvin-bot[bot] commented 11 months ago

Bug0 Triage Checklist (Main S/O)

Julesssss commented 11 months ago

Oh my bad, I need to stop working. Thank you

Julesssss commented 11 months ago

Ah, thank you

melvin-bot[bot] commented 11 months ago

Reviewing label has been removed, please complete the "BugZero Checklist".

melvin-bot[bot] commented 11 months ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.11-25 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-12-20. :confetti_ball:

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

For reference, here are some details about the assignees on this issue:

melvin-bot[bot] commented 11 months ago

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

michaelhaxhiu commented 11 months ago

Ok looks like we owe C+ payment here:

@0xmiroslav requires payment (Needs manual offer from BZ)

melvin-bot[bot] commented 11 months ago

Job added to Upwork: https://www.upwork.com/jobs/~01e1265bf119a76d4b

melvin-bot[bot] commented 11 months ago

Current assignee @0xmiroslav is eligible for the External assigner, not assigning anyone new.

michaelhaxhiu commented 11 months ago

Payment due 12-20, so waiting

But here's the job - https://www.upwork.com/jobs/~01e1265bf119a76d4b

@0xmiroslav

luacmartins commented 10 months ago

Just pending payment

melvin-bot[bot] commented 10 months ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 (External)

melvin-bot[bot] commented 10 months ago

πŸ“£ @0xmiroslav πŸŽ‰ An offer has been automatically sent to your Upwork account for the Contributor role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Keep in mind: Code of Conduct | Contributing πŸ“–

michaelhaxhiu commented 10 months ago

Waiting for job offer to be accepted

michaelhaxhiu commented 10 months ago

paid.