-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Workspace - Default workspace currency is changed to USD when changing a workspace name #53840
Comments
Triggered auto assignment to @trjExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Default currency is changed to USD if the policy is created from OD. What is the root cause of that problem?This has the same root cause as #52190. When we create a policy from OD and we view it in ND, the App/src/libs/actions/Policy/Policy.ts Line 1171 in 5a0c689
What changes do you think we should make in order to solve the problem?Since the API requires the currency param too, we can follow the same approach in #53132 by fallback to other values first before fallback to USD.
Or if we want a more complex approach, then the BE needs to update the API to accept undefined currency which indicates that we don't want to update the currency, so we don't need to fallback to USD and skip the currency optimistic data. Or, BE can separate the What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can merge a fake policy without |
So strange, I can repro this. 2024-12-10_13-03-22.mp4@MonilBhavsar as you worked on that change initially, can you take a look at this? If the user doesn't change the currency field, we don't want to update it to USD. |
Job added to Upwork: https://www.upwork.com/jobs/~021866457192804972214 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
I don't recall working on this 😅 but happy to take a look |
I think it was an update to the |
I think ND api response should include the outputCurrency data also for the respective policy. If it can't be and needs to be handled on the front-end side then we can proceed with @bernhardoj's proposal. |
@Pujan92, @trjExpensify, @MonilBhavsar Eep! 4 days overdue now. Issues have feelings too... |
@MonilBhavsar thoughts here? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Made this internal. Working partially this week. I should have an update by EOW |
@Pujan92, @trjExpensify, @MonilBhavsar 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Looking tomorrow |
Trying to reproduce this issue. I set the location manually other than USD, but still the workspace's default currency is set as USD. Can anyone please help to quickly reproduce this |
What steps are you taking? As you're outside of the US, just creating a workspace should set your workspace currency to IDR (or wherever you are right now!) on creation.
|
I think i got it. I was trying on dev and since we use US timezone by default, I was not able to reproduce 👍 |
@Pujan92 @trjExpensify @MonilBhavsar this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Pujan92, @trjExpensify, @MonilBhavsar Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Switched back to this |
Found the bug, working on a fix |
Got both PR's up |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.73-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Prerequisite
User's location is not US and default currency is not USD
Expected Result:
Default currency stays the same when editing the name of the workspace
Actual Result:
Default currency is automatically changed to USD when editing the name of the workspace
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6689882_1733826538548.2024-12-10_13_23_39.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MonilBhavsarThe text was updated successfully, but these errors were encountered: