-
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-05-20] [$125] Workspace - Impossible to change workspace currency #39435
Comments
Triggered auto assignment to @marcochavezf ( |
Triggered auto assignment to @kadiealexander ( |
👋 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:
|
@kadiealexander I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think this issue might be related to the #collect project. |
I think its related to this issue: |
Seems this can be fixed externally |
Job added to Upwork: https://www.upwork.com/jobs/~01d779d698f27e25f6 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
i am no longer able to reproduce it on main .. is it still reproducible? |
Agree with @abzokhattab, cannot reproduce on latest main: Screen.Recording.2024-04-03.at.5.28.52.AM.mov |
Issue is reproducible on latest main. Screen.Recording.2024-04-03.at.10.06.47.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.User is unable to change workspace currency while the policy distance rate is not loaded What is the root cause of that problem?The currency of the workspace cannot be changed because in the App/src/libs/actions/Policy.ts Line 1510 in 3ca25ee
Consequently, if the user attempts to change the workspace currency without having opened this page, the issue arises. What changes do you think we should make in order to solve the problem?we can remove the if (!policy) then to fix the typescript error in the optimistic, success and failure data we need to make sure that the
...(customUnitID && {
customUnits: {
[customUnitID]: {
...distanceUnit,
rates: optimisticRates,
},
},
}),
...(customUnitID && {
customUnits: {
[customUnitID]: {
rates: finallyRates,
},
},
}),
...(customUnitID && {
customUnits: {
[customUnitID]: {
rates: failureRates,
},
},
}), This way we will always be able to update the currency even when the distance rates are not available. FYI: If the user is offline and the distance rates are unavailable, and they change the currency, we do not update the distance rate according to the change mentioned above. This is acceptable because, when the user goes online and retrieves all the distance rates, they will be having the updated currency from the backend in this case. |
@hungvu193 Correct. The issue occurs with workspaces that don't have the distance rates data loaded. |
Updated the RCA in my proposal, the solution is the same though. |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
This seems to be regression from this PR @MrMuzyk could you please address this issue? Thank you 🙇 If we end up using solution from the proposals, lets pay $125 for their help. Assigning @alitoshmatov as reviewer on the offending PR |
This issue has not been updated in over 15 days. @mountiny, @kadiealexander, @alitoshmatov eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This was fixed in follow up PR. We can close this |
Kind reminder on this |
$125 to @abzokhattab for their help cc @kadiealexander |
Upwork job price has been updated to $125 |
Payouts due:
Upwork job is here. |
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: v1.4.59-0
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: User is logged in ND. We should try to change name of already existing workspaces only.
Expected Result:
Workspace currency is changed to newly selected.
Actual Result:
Workspace currency is not changed to newly selected.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6434244_1711976790758.ws_currency_change.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kadiealexanderThe text was updated successfully, but these errors were encountered: