-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2025-01-30] [$250] Workspace not translated when choose recipient #55246
Comments
Triggered auto assignment to @Christinadobrzyn ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace not translated when choose recipient What is the root cause of that problem?In Lines 4345 to 4347 in 7b8bb55
it will not re-render when we change the app language What changes do you think we should make in order to solve the problem?We should use
App/src/libs/OptionsListUtils.ts Line 894 in 7b8bb55
App/src/libs/OptionsListUtils.ts Lines 628 to 634 in 7b8bb55
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Job added to Upwork: https://www.upwork.com/jobs/~021879298486790010202 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-01-16 08:38:40 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace not translated when choose recipient What is the root cause of that problem?Report options wont change when What changes do you think we should make in order to solve the problem?Add
App/src/components/OptionListContextProvider.tsx Lines 65 to 75 in 7b9e55e
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Add unit test to make sure options are workspace in Spanish when language changes next to App/tests/unit/OptionsListUtilsTest.ts Lines 395 to 401 in 5133090
What alternative solutions did you explore? (Optional)N/A |
I believe, that passing down the translate function is extraneous dependency to the util functions. So just forcing the component to recalculate when locale changes would be good enough for this issue which can be done by adding dependency to the effect. @drminh2807 Did you check if the compiler does not remove the extra dependency on runtime? |
Ok, then it is great. I believe we can go with @drminh2807's solution. It seems like a clever way of rendering when language changes and because language change is not a frequent action, it will not create performance overhead. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@drminh2807 Let's add a unit test to make sure options are rendered in Spanish when language changes. |
@parasharrajat sure, I just update my proposal to add a unit test |
📣 @drminh2807 You have been assigned to this job! |
I applied Upwork job, Please check |
@drminh2807 can you please send me a link to your Upwork profile? TY! |
@Christinadobrzyn here is my upwork profile https://www.upwork.com/freelancers/~0147ffcb350b578b95 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.88-7 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 2025-01-30. 🎊 For reference, here are some details about the assignees on this issue:
|
@parasharrajat @Christinadobrzyn @parasharrajat The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Payment is later this week @parasharrajat do we need a regression test for this? I don't think @dukenv0307 worked on this right, it was just @parasharrajat and @drminh2807? |
Nope, we don't need the steps here. Yes, @dukenv0307 didn't work on this? |
Thanks @parasharrajat! Payment is coming up - The payment summary is here - #55246 (comment) |
Payment Summary
BugZero Checklist (@Christinadobrzyn)
|
Payment day - no regression test for this - payment summary here - #55246 (comment) @parasharrajat please make sure to request payment in ND. Closing this out! |
Payment requested as per #55246 (comment) |
$250 approved for @parasharrajat |
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: 9.0.85-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @dukenv0307
Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Expected Result:
'workspace' is displayed in English
Actual Result:
'workspace' has not been translated, it is still in Spanish
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.889.mp4
bug-resize.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ChristinadobrzynThe text was updated successfully, but these errors were encountered: