-
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
[$1000] Inconsistency bug - App does not dynamically translate 'No activity yet' in search (works fine after revisit and dynamically updates in LHN) #21537
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Inconsistency bug - App does not dynamically translate 'No activity yet' in search What is the root cause of that problem?For the SearchPage we are not updating options when the preferredLocale gets updated and that is the reason for this issue. Lines 72 to 75 in 820fa93
What changes do you think we should make in order to solve the problem?Add preferredLocale condition here in Lines 72 to 75 in 820fa93
OR
|
Hm, this sounds like a similar root cause as this one and this one. @abdulrahuman5196 can you offer an opinion on that? |
@trjExpensify. No, It seems both are different actually for this case atleast. Here we are having the data but not translating properly. Other bugs are kind of case where the text shown itself is wrong regardless of the language choosen. For eg: We only show this 'No activity yet' in search page for money requests. There can be cases where 'No activiy yet' is shown wrongly instead of a user text message which is a different issue. But this issue is only concerned about translation. While checking on this bug I also ended up reviewing this proposal by @Pujan92 to check on cause #21537 (comment), the proposal is working and make sense for this issue. |
Okay got it, thanks for confirming and explaining that. Assigning you as the C+. If you're happy with @Pujan92's proposal green light it and someone from our side will get assigned for a secondary. 👍 |
Job added to Upwork: https://www.upwork.com/jobs/~01c556dc52d6e81d71 |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
Current assignee @abdulrahuman5196 is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.App does not dynamically update 'No activity yet' in search to Spanish on language change What is the root cause of that problem?It's here Line 75 in 52a1891
updateOptions if the preferredLocale change.
What changes do you think we should make in order to solve the problem?I've seen this kind of issues many times, let's see how the current flow for such messages is designed:
We can see that the calculation step is now concerned with what languages the user is using (since it will return different result). Also when the language changes, we're doing all the calculations again, even though the result ('No activity yet') is the same, the only difference is the language. And in this case the calculation ( So the thing to note here is that we're conflating "calculation of message" and "display of message", which will lead to many similar issues in the future if we continue this way. So I propose a new design:
It's not a big change, but will help us avoid such issues in the future, and also improve the performance a bit since calculation doesn't need to be rerun. The implementation details are mentioned below here and here What alternative solutions did you explore? (Optional)NA |
@tienifr Thank you for the proposal, but I don't think i would be aligning with the proposal here since, it is not just |
@Pujan92 's proposal here #21537 (comment) looks good and works well. 🎀👀🎀 🎀 👀 🎀 C+ reviewed cc: @trjExpensify |
Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@youssef-lr Just for reference. The C+ reviewed comment is here - #21537 (comment) |
@abdulrahuman5196 can you share some examples of the text messages that might show in this case? I don't find any in the @abdulrahuman5196 if there's no such case of user-generated text messages, do you agree that my approach is better both in terms of code design and performance? @abdulrahuman5196 there's another similar case where we're conflating the text message and the system message in the chat here, for which it's also universally agreed to use the cc @youssef-lr |
Screen.Recording.2023-06-29.at.1.06.31.PM.mov
Even still I would question this. I don't think we are optimizing some super intensive task into a super light weight solution. The functionality is already light weight and the accepted proposal is also not going to increase it to super intensive task.
I don't think both are similar. Even in the PR of the linked issue, you are actually translating with the translationKey and providing the translated value to the UI to render, it is not like render place is translating. The same is currently working in this case already, only issue here is its not re-rendering on locale change from other device. So I would still go with the current accepted solution. |
@abdulrahuman5196 I think the above you shared is not the header message (or Expensify-defined message) that we're addressing 😅, in that case no translation will take place.
The Line 58 in 562a838
Yup would love to hear what @youssef-lr thinks as well, thanks! |
@youssef-lr thoughts on this one, please? Let's keep it moving! :) |
Hey @abdulrahuman5196 - will this job resolve the issue reported here #22051 |
@youssef-lr, @trjExpensify, @abdulrahuman5196, @tienifr 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@youssef-lr is back tomorrow! |
@youssef-lr, @trjExpensify, @abdulrahuman5196, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@youssef-lr, @trjExpensify, @abdulrahuman5196, @tienifr 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@tienifr there are a bunch of conflicts in the PR to fix. What's the ETA on getting to them? Thanks! |
@youssef-lr, @trjExpensify, @abdulrahuman5196, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@youssef-lr, @trjExpensify, @abdulrahuman5196, @tienifr Eep! 4 days overdue now. Issues have feelings too... |
@youssef-lr, @trjExpensify, @abdulrahuman5196, @tienifr 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
@youssef-lr, @trjExpensify, @abdulrahuman5196, @tienifr 10 days overdue. Is anyone even seeing these? Hello? |
@youssef-lr, @trjExpensify, @abdulrahuman5196, @tienifr 12 days overdue. Walking. Toward. The. Light... |
This issue has not been updated in over 14 days. @youssef-lr, @trjExpensify, @abdulrahuman5196, @tienifr eroding to Weekly issue. |
Hey @tienifr @youssef-lr what's going on here? The PR has been open since July, we now have conflicts again. Thanks! |
I'm trying to resolve the conflicts |
As discussed in the open-source thread, we're going to close this issue. We've hit an impasse with the PR not going anywhere, and overall this is pretty minor. |
@trjExpensify Should I and @abdulrahuman5196 get paid? We spent a lot of time to create/review the PR. Thanks |
+1 on this. |
@trjExpensify Wdyt? |
Oh, sorry guys. This fell into the abyss after the close. Let me reopen as we discuss.
I think the months of inactivity on this issue isn't a great showing, and we should be mindful to approach the issues we take on with #urgency and #focus. We've closed "abandoned" PRs for inactivity of way less time than this one historically, so I'm curious what you both as tenured members of the community think is fair compensation and a reflection of the timeline on this issue? |
Hi, @trjExpensify . I think this issue is one off cases, since it was created and had PR movements before the latest shift in focus. And both the contributor task and C+ approval was done on the PR and was waiting on internal review for some time. Anyways this is all IMO, do kindly take in your best judgement on this case. |
Cool, thanks for your input. I'm happy to pay out $250 (50% the current rate) for the work so far.
I will add on this that I don't think it was transferred elsewhere due to internal drivers, but the focus on this issue likely dropped off for other things. So let's just be careful to address that going forward all round. Sound good? |
Hi @trjExpensify , Sorry I missed this. Yes. I am fine the callout. |
Cool, offers have been sent to you both. |
Thank you @trjExpensify . Accepted the offer. |
@abdulrahuman5196 paid! |
@tienifr paid, closing! |
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:
Expected Result:
App should dynamically update 'No activity yet' in search to Spanish on language change
Actual Result:
App does not dynamically update 'No activity yet' in search to Spanish on language change
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.29-2
Reproducible in staging?: y
Reproducible in production?: y
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
Not.updated.dynamically.to.spanish.no.activity.yet.1.mp4
Recording.5133.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687199616837069
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: