Skip to content
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 28358][$500] Edited currency Changes back to the previous currency #28605

Closed
6 tasks done
kavimuru opened this issue Oct 2, 2023 · 14 comments
Closed
6 tasks done
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Oct 2, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Request money within Distance
  2. Go to the IOU report page > Edit page
  3. Click on the amount
  4. Change currency and click save
  5. Go back to the IOU report page then again to the Edit page

Expected Result:

Edited currency does not Change back to the previous currency

Actual Result:

Edited currency Changes back to the previous currency

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.75-8
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
Notes/Photos/Videos: Any additional supporting documentation

T153.Currency-1.mp4
T153mac.Currency-1.mp4
Recording.1613.mp4

Expensify/Expensify Issue URL:
Issue reported by: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696209699900619

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0111b151ad3cf8d7ec
  • Upwork Job ID: 1708815265481723904
  • Last Price Increase: 2023-10-02
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Oct 2, 2023
@OSBotify
Copy link
Contributor

OSBotify commented Oct 2, 2023

👋 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
Copy link

melvin-bot bot commented Oct 2, 2023

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

@kavimuru kavimuru added the External Added to denote the issue can be worked on by a contributor label Oct 2, 2023
@melvin-bot melvin-bot bot changed the title Edited currency Changes back to the previous currency [$500] Edited currency Changes back to the previous currency Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0111b151ad3cf8d7ec

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

@BhuvaneshPatil
Copy link
Contributor

BhuvaneshPatil commented Oct 2, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Edited currency changes back to previous currency

What is the root cause of that problem?

When we update the currency for distance money request,

// Temporarily disabling currency editing and it will be enabled as a quick follow up
editMoneyRequest({
amount,
currency: defaultCurrency,
});

We are passing default currency here.
But there is comment involving the current behaviour.

What changes do you think we should make in order to solve the problem?

We shall pass the currency from transactionChanges.

What alternative solutions did you explore? (Optional)

@shubham1206agra
Copy link
Contributor

This is a deploy blocker so I think you need to link offending PR too

@mountiny
Copy link
Contributor

mountiny commented Oct 2, 2023

But there is comment involving the current behaviour.

The comment is obsolete and should be removed, I forgot to remove it. The currency normally works fine and we get the currency from the route as we return back to the edit request page with currency in the url param

const defaultCurrency = lodashGet(route, 'params.currency', '') || transactionCurrency;

@mountiny mountiny added Daily KSv2 Internal Requires API changes or must be handled by Expensify staff and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

Current assignee @rushatgabhane is eligible for the Internal assigner, not assigning anyone new.

@mountiny mountiny removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Oct 2, 2023
@mountiny
Copy link
Contributor

mountiny commented Oct 2, 2023

This is not a deploy blocker as its a new feature. I have also confirmed the UpdateDistanceRequest API endpoint does not accept currency key: https://github.com/Expensify/Web-Expensify/blob/7cfa639d6459a9b100c179be98d8215ec0d12bbb/api.php#L3022-L3034

@arosiclair @neil-marcellini @jasperhuangg @tgolen Is this expected? I think there is a bit more logic involved when changing the amount as we also need to update the per mile instructions so its possible this is intentional but we should probs handle this better in the App, could you please take care of this? Adding this to the wave 5 project with no status, up to you

@alexpensify
Copy link
Contributor

Thanks for sharing these feeedback points @mountiny!

@tgolen
Copy link
Contributor

tgolen commented Oct 2, 2023

I'm going to unassign everyone from this. There is a lot of cleanup happening for distance requests and this should be covered as part of them. Primarily, #28358 is going to be splitting out the mega EditDistanceRequest API into an API for each field so that it matches the UX and a true 1:1:1 pattern. We'll need to revisit how the currency change will work along with that.

@neil-marcellini neil-marcellini changed the title [$500] Edited currency Changes back to the previous currency [HOLD 28358][$500] Edited currency Changes back to the previous currency Oct 3, 2023
@neil-marcellini neil-marcellini added Weekly KSv2 and removed Daily KSv2 labels Oct 3, 2023
@neil-marcellini
Copy link
Contributor

Closing as explained here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants