-
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
[HOLD for payment 2024-04-09] [Simplified Collect][Distance rates] - Distance rates disappear when changing default workspace currency offline #38928
Comments
Triggered auto assignment to @kadiealexander ( |
We think that this bug might be related to #wave-control. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance rates disappear when changing default workspace currency offline What is the root cause of that problem?when changing the currency, we set the optimistic value of the default rate value only, we dont set the rest App/src/libs/actions/Policy.ts Lines 1338 to 1367 in 250baa9
What changes do you think we should make in order to solve the problem?we need to update all available rates .. not only the default one: const distanceRates = distanceUnit?.rates ?? {};
Object.keys(distanceRates).forEach((id) => {
distanceRates[id] = {
...distanceRates[id],
currency,
};
}); and change the optimistic value here to: ...(distanceUnit?.customUnitID
? {
customUnits: {
[distanceUnit?.customUnitID]: {
...distanceUnit,
rates: distanceRates,
},
},
}
: {}), also we need to change the failure value here to the original rates object: customUnits: distanceUnit?.rates, POCScreen.Recording.2024-03-25.at.4.31.46.PM.mov |
Job added to Upwork: https://www.upwork.com/jobs/~010ef3b0c77b5b3ce7 |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @alitoshmatov ( |
I am Michał from Callstack - expert contributor group. I’d like to work on this job. |
hi! Could you confirm if this job is related ? I think it might be? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.58-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-04-09. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
@kadiealexander I think #36680 is its own thing. |
@alitoshmatov please complete the checklist and apply here so we can get you paid and close this one. |
Payment Summary
BugZero Checklist (@kadiealexander)
|
Bumped @alitoshmatov here. |
|
@alitoshmatov I've sent an Upwork contract, please accept! |
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: 1.4.56-2
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Precondition:
Expected Result:
All the available distance rates will still be present after changing workspace default currency offline.
Actual Result:
Only one distance rate is present after changing workspace default currency offline. The rest reappears after returning online.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6425812_1711365129588.20240325_190626.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alitoshmatovThe text was updated successfully, but these errors were encountered: