-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2023-09-18] [$1000] Both English & Spanish Emoji are present while making default language spanish #25735
Comments
Triggered auto assignment to @CortneyOfstad ( |
Bug0 Triage Checklist (Main S/O)
|
Proposal UpdatedPlease re-state the problem that we are trying to solve in this issue.When in Spanish language, we get suggestion for English emojis too. What is the root cause of that problem?The root cause of the problem is on On line 22, we have: (@jjcoffee As you can see here, if the , which adds both the spanish name and the english name on the list. Basically, we add an English Trie node with the suggestion's name in English, which won't match the equivalent Spanish emoji, so it gets added as a separate match What changes do you think we should make in order to solve the problem?We still want users to be able to use the english names of emojis, as they are universally preferred. This way, the english name of the emoji will reference the Spanish one. An important notice is that when we are in Spanish and search for example In order to achieve that, instead of keeping both names in a variable, we should keep the separately, and add to our trie only the preferred language names:
After doing that, we will include the keyword suggestions of both languages in our trie (already doing that). Finally, after checking that the user is not using English, we will proceed to add the English names as reference to the Spanish ones:
As you can see here: Another important thing is that we want a valid emoji code to be immediately replaced when the user has set Spanish as the preferred language and types the emoji in English (e.x For that reason, we should add the below code on
Video of Solution: Screen.Recording.2023-08-23.at.4.56.35.AM.mov |
Job added to Upwork: https://www.upwork.com/jobs/~0192922d7d2b8409c8 |
Current assignee @CortneyOfstad is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
What's the expected result on English language @m-natarajan @CortneyOfstad ? Will it show both English Emoji & Spanish or only English? Thanks |
@studentofcoding the expected result is that if English is set as the default, then the emojis would be listed in English (Spanish = Spanish), not having both available when one language is set as the preference over the other 👍 |
This is an intentional behavior. Please check #16086 (comment) cc @0xmiroslav @stitesExpensify @iwiznia |
@CortneyOfstad This is a feature, not a bug 😄 It was intentionally added in this PR as @s-alves10 points out. |
@jjcoffee @CortneyOfstad @s-alves10 I do agree that users should be able to use the english words to search for emojis, but showing all emojis in both versions is kinda strange. In my 2nd solution on my proposal, a Spanish user can search for :fire , and he will see the :fuego: emoji, which I believe is a better approach on that, not to have duplicate emojis on the suggestions. |
@Thanos30 exactly, i also felt the same |
@Thanos30 Hmm can you show an example where duplicate emojis show? That would be more of an issue if that's the case. |
@jjcoffee Sure, a small example would be here:
|
@Thanos30 Thanks! That does seem like unexpected behaviour. Any chance you have a couple more examples? I might need to field some opinions on Slack for expected behaviour here, as I'm not sure searching in English and displaying the Spanish result will always feel intuitive. @m-natarajan Could you update the issue results section to the following: Expected Result:When the language is set to Spanish, searching in English should not result in duplicate emoji listings Actual Result:When the language is set to Spanish, searching in English results in duplicate emoji listings |
@jjcoffee I do understand, indeed this won't be that visible in most cases. But, as per my proposal, we could still keep the ability to search using english names, but display only the default language results. I personally think it's the smoothest approach, but let me know what you think! Thanks! |
Asked on Slack. |
Okay, pretty strong response on Slack all in favour of @Thanos30 As a rule we normally don't accept code diffs in proposals. Could you add some more detail to your proposal about your approach for the alt solution (what you're changing (links to files/line refs help) and why). Thanks! |
Sure @jjcoffee , give me one moment please |
@jjcoffee Updated my proposal to focus only on the crucial parts of the change, also added an extra change I noticed. Thank you for your patience 🙏 |
@Thanos30 Thanks for the update and good catch with the immediate replacement! Looking at your proposal again, I'm not sure if your RCA covers the behaviour we're now looking at (with language set to Spanish, searching in English can result in duplicate emoji listings). So we're still missing out on the "why" this issue is happening. Do you think you could clarify that section? |
@jjcoffee Of course, let me update the proposal for that part! |
@jjcoffee edited the proposal and tagged you on the part that explains how both language names are suggested. |
@Thanos30 Thanks, and no worries - Android is giving everyone trouble these days 😅 I'll review the PR as a priority tomorrow! |
I think we can go with the old payments system since this was started beforehand |
@jjcoffee just checking to see if there was an update on the PR review? TIA! |
@CortneyOfstad Just waiting for the internal engineer to review the PR! |
I thought this was deliberately postponed due to the PR freeze mentioned in Slack, that's why I didn't bump anyone. This was ready and approved in less than 3 days too 😁 |
@jjcoffee Ay, I know, thanks 🙏 |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
@jjcoffee PR got merged without any further change requests after all. Since we had it complete within the 3 days period, are we eligible for the bonus if everything goes well? Thank you all 🙏 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.67-3 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 2023-09-18. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
|
@Thanos30 this is not eligible for the bonus at this time, but standard payment is being made now 👍 |
Payments are completed. Closing! |
Okay @CortneyOfstad , Thank you 🙏 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Case 1:While making English as default language
1.login to app
2.go to settings
3. click on Preferences
4. choose language English
5. go to any chat composer
6. Type :fuego and clear
7. type :fire
8. In this case, you don't see any result while searching with spanish emoji name
Case 2:While making Spanish as default language
1.login to app
2.go to settings
3. click on Preferences
4. choose language Spanish
5. go to any chat composer
6. Type :fuego and clear
7. type :fire
8. In this case, you see result while searching with spanish emoji as well as english emoji
Expected Result:
While making spanish as a default language, english emoji should be hidden
Actual Result:
While making spanish as a default language, both spanish & english emoji should are shown
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.56-14
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Screen.Recording.2023-08-14.at.5.00.00.PM.1.mov
Recording.389.mp4
Expensify/Expensify Issue URL:
Issue reported by: @lincolnb17
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692012294848209
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: