-
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 2023-09-20] [$1000] Web - Emoji - Few emojis does not appear on search in english (works fine in spanish) #25471
Comments
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Few emojis does not appear on search in english What is the root cause of that problem?We didn't add the For example when the language is Lines 1364 to 1366 in 08dd014
Lines 2321 to 2323 in 08dd014
But Lines 1367 to 1372 in 08dd014
This is the root cause. What changes do you think we should make in order to solve the problem?We Should add the necessary keywords here. What alternative solutions did you explore? (Optional)None. |
it looks related, this is the reverse issue #23429 |
Hi @ShogunFire, we don't have any definitive root cause on that issue. Till then calling it dupe is not ideal. Also currently that issue is focused only on flags in spanish and not a universal solution, this issue can help to influence the solution of that issue. |
I changed my dupe comment after 2 minutes after seeing that this was a reverse issue, I still think it's valuable to link the other issue. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Few emojis does not appear on search in english (works fine in spanish) What is the root cause of that problem?For searching emojis, we build a lookup index based on the name of the emoji as well as keywords. Line 26 in 03cf0b1
If an emoji is named man_juggling, searching for "juggling" does not yield results unless "juggling" is explicitly specified as a keyword. In this case keywords are lacking. However, the underlying problem is how this lookup index is created, it can only search for queries where the indexed string starts with the query. What changes do you think we should make in order to solve the problem?Instead of adding keywords for these specific emojis, I would propose a more general solution: Example: for man_juggling, we should also add "juggling" to the index for this emoji. Pseudocode: const nameParts = name.split('_').slice(1); // Remove the first part because we already index the full name
_.forEach(nameParts, (namePart) => {
const namePartNode = trie.search(namePart);
if (!namePartNode) {
trie.add(namePart, {code: item.code, types: item.types, name, suggestions: []});
} else {
trie.update(namePart, {
...namePartNode.metaData,
suggestions: [...namePartNode.metaData.suggestions, {code: item.code, types: item.types, name}],
});
}
}); Fixed result
chrome_0Wq2Ik9bp5.mp4What alternative solutions did you explore? (Optional)If we want full text search, a variation of my proposal would include indexing all substrings (of the entire name, or first splitting it into words), e.g.: man_juggling However, this may have an impact on initial load time and resource consumption. |
@bfitzexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~012d680d6ea285b4fb |
Triggered auto assignment to @maddylewis ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
Agreed that #23429, though it seems similar, is a separate issue @allroundexperts we have a couple of proposals ready for review here @maddylewis I'm ooo for a week, can pick this back up when I'm back if it's not resolved by then |
waiting for @allroundexperts to review the existing proposals |
Thanks for your proposal @alphaboss1104. I would agree here that a more general solution would be better here instead of just adding keywords to each name. I think @samh-nl's proposal is in the correct direction. Let's go with them. Before proceeding to the PR, I would like to confirm from the assigned internal engineer if we want a full text search or a a search which indexes based on splitting the emoji name by I think it should be fine doing a full text search. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @Li357, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@Li357 Please check this out before assigning! |
PR is ready for review: #26910 |
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 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.68-17 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-20. 🎊 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:
|
Payment summary (this job was posted under the previous pricing model) Reporting: @dhanashree-sawant - $250 to be paid via Upwork - offer sent |
Thanks @bfitzexpensify, I have accepted the offer |
@allroundexperts reminder to complete the BZ checklist when you get a chance - thanks! |
Requested payment. On to the checklist! |
Thanks! |
Bump on the checklist @allroundexperts - thank you! |
Reviewer Checklist
Regression Test
Do we 👍 or 👎 ? |
Looks good to me! OK, we're all good to close this out now. |
$1,500 payment approved for @allroundexperts based on BZ summary. |
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:
Expected Result:
App should display all possible emoji types for any search
Actual Result:
App does not display all possible emoji types for few emoji searches like 'jug' for juggling emojis and 'jud' for judges emoji in english (works fine in spanish)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: @dhanashree-sawant
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
emoji.search.issue.mov
Recording.5915.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691513077592469
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: