-
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 2023-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] Web - Frequently used emojis is listed wrong #27464
Comments
Job added to Upwork: https://www.upwork.com/jobs/~013dbe1b2bb7790399 |
Triggered auto assignment to @joekaufmanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @stephanieelliott ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Proposal by: @ShogunFire ProposalPlease re-state the problem that we are trying to solve in this issue.The frequently used emojis list is in the wrong order What is the root cause of that problem?We are updating the frequently used emojis with the emojis we inserted here: App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js Lines 134 to 137 in 2163c54
And we are retrieving those emojis in updateComment here:
The emojis are extracted from the text in replaceAndExtractEmojis The problem with that method is that we are returning the emojis from the text even when they were already there before so at each character the user type we will add the same emojis which will make us think that we are using the emoji way more than what is actually happening What changes do you think we should make in order to solve the problem?We need to save the emojis that were in the text before in a variable called emojisPresentBefore and the insertedEmojis variable that we use to update the frequently used emoji will be filled with emojis that are in this text minus the emojis from emojisPresentBefore. What alternative solutions did you explore? (Optional) |
@ShogunFire It seems your solution will cause the regression, but I am not sure about that. To confirm could you help to detail your solution? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The frequently used emojis list is in the wrong order What is the root cause of that problem?We are updating the frequently used emojis with the emojis we inserted here: App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js Lines 134 to 137 in 2163c54
And we are retrieving those emojis in updateComment here:
The emojis are extracted from the text in replaceAndExtractEmojis The problem with that method is that we are returning the emojis from the text even when they were already there before so at each character the user type we will add the same emojis which will make us think that we are using the emoji way more than what is actually happening What changes do you think we should make in order to solve the problem?We need to save the emojis that were in the text before in a variable called emojisPresentBefore and the insertedEmojis variable that we use to update the frequently used emoji will be filled with emojis that are in this text minus the emojis from emojisPresentBefore.
And after that we also update emojisPresentBefore in every cases even if there is no emoji
The same behaviour is present in ReportActionItemMessageEdit so we need to do the same thing. This is just the primary version but here is my branch that is working fine for ComposerWithSuggestions: What alternative solutions did you explore? (Optional) |
@DylanDylann I couldn't edit the proposal but yes this was a little more complex than I thought, I hope the regression you were speaking about is not present with that version |
I think @ShogunFire's proposal will work. It looks a bit complex and we can try to simplify during the PR stage. For instance, @ShogunFire will this simplify your
🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @joelbettner, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mananjadhav Thanks, I don't think we can do that because if we have "🙂" before and "🙂🙂" after I think we need to update the count of the emoji so getAddedEmojis has to return 1 🙂. I will think of a better way to do that but it looks kind of hard to make it simple. |
This comment was marked as outdated.
This comment was marked as outdated.
Thanks @DylanDylann , I tried but wasn't able to find this ref earlier. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.83-11 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-10-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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 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-10-23. 🎊 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 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-10-23. 🎊 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:
|
@mananjadhav, @joelbettner, @ShogunFire, @stephanieelliott Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I'm so confused... It took me forever to get to this since I was working on other high-priority, time sensitive issues. But...it looks like the soltion for this has already been merged/deployed?? (cc: @mananjadhav @stephanieelliott @ShogunFire) |
Ya Melvin kirked out on this one, it's a single PR that triggered the automation multiple times. Everything is done here though, just needs to be paid out! Summarizing payment:
Upwork job is here, not eligible for bonus |
@ShogunFire I extended the offer to you in Upwork, can you please accept when you get a chance? Thanks! https://www.upwork.com/jobs/~01bec5d8c4497434db |
@stephanieelliott thanks , I did |
I've raised the request on NewDot. |
$500 payment approved for @mananjadhav based on summary above. |
All paid! |
Hello @stephanieelliott , sorry for the late request but could you please put the upwork mission as complete ? It still shows as in progress on my profile. Thanks |
Hey @ShogunFire no problem. I saw your email come through and have I closed this contract as well as the other 2 completed contracts that were still active on your profile (#20998, #19389) |
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:
The emoji you chose should be at the same position in step 4 and step 7 because you didn't used it more
Actual Result:
The emoji you used is in the top position of the frequently used emoji
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.70.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
2023-09-12.07-31-03.mp4
Recording.4477.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ShogunFire
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694526008852389
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: