-
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-06-13] [$1000] Insert emoji before a colon text after is replaced by "1" string #19289
Comments
Triggered auto assignment to @muttmuure ( |
Bug0 Triage Checklist (Main S/O)
|
Proposal by @dukenv0307 ProposalPlease re-state the problem that we are trying to solve in this issue.Insert emoji before a colon text after is replaced by "1" string What is the root cause of that problem?
But actually CONST.SPACE is "1" instead of space.Line 1255 in 811c0f3
What changes do you think we should make in order to solve the problem?We shoud change Line 1255 in 811c0f3
What alternative solutions did you explore? (Optional)We could remove replace function to remain the text after selection to same as Slack now. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Insert emoji before a colon text after is replaced by "1" string What is the root cause of that problem?We're using logic in here to calculate the logic when inserting an emoji: App/src/pages/home/report/ReportActionCompose.js Lines 591 to 594 in 811c0f3
At line 594, we're using EMOJI_REPLACER regex to remove all the matched words with CONST.SPACE which equal 1 .
What changes do you think we should make in order to solve the problem?Here's the evidence how slack handle the emoji in this case: Screen.Recording.2023-05-21.at.23.28.24.movAs we can see, slack doesn't remove the text after the selected emoji, and I think we can also do it in our case, instead of remove entire string, we should only remove unnecessary character after the selected emoji, in this case, that will be the semi colon, so we need to update the condition of let commentAfterColonWithEmojiNameRemoved;
if (this.state.value.slice(this.state.selection.end).match(CONST.REGEX.EMOJI_REPLACER)) {
// we can remove the semi colon right after the selection end, in case it matched our regex
commentAfterColonWithEmojiNameRemoved = this.state.value.slice(this.state.selection.end + 1);
} else {
commentAfterColonWithEmojiNameRemoved = this.state.value.slice(this.state.selection.end)
}; What alternative solutions did you explore? (Optional)Do it like slack, we can also keep the semi colon: commentAfterColonWithEmojiNameRemoved = this.state.value.slice(this.state.selection.end) Result:Screen.Recording.2023-05-21.at.23.36.40.mov |
@muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Out of office this week, picking it up when I'm back. |
@muttmuure Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I can't update the above proposal so I create a new comment to make clear my alternative solution
This is the current behavior Screen.Recording.2023-05-27.at.22.42.36.movSlack: Screen.Recording.2023-05-27.at.22.43.27.movThe difference is when inserting an emoji before semicolon, Slack will remain semicolon with the text after that If we come up with this approach, We need to remove replace function here
|
@muttmuure Still overdue 6 days?! Let's take care of this! |
Job added to Upwork: https://www.upwork.com/jobs/~01f4ab1937aacf2d66 |
Reproduced |
Current assignee @muttmuure is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Triggered auto assignment to @chiragsalian ( |
@dukenv0307 Thanks for the proposal. Your RCA is correct. The alternative solution looks good to me i.e not to replace the text after the colon. It seems to work fine but not sure if it may break something else so I asked here #14686 (comment). In case this didn't work we will go with the first solution. 🎀 👀 🎀 C+ reviewed |
@hungvu193 Thanks for the proposal but I think it's the same as @dukenv0307's proposal. |
@chiragsalian @s77rt @muttmuure this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 @dukenv0307 You have been assigned to this job by @chiragsalian! |
@s77rt The PR is ready for review. But we still need to wait #14686 (comment) is resolved |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.24-5 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-06-13. 🎊 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.
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:
|
|
I've invited @s77rt to apply but my message had some old text in it about bug reporting by mistake. Sorry for the confusion! |
@muttmuure No problem! I have accepted the offer. By the way @dukenv0307 should also be invited for both contributor role and bug reporter |
@dukenv0307 not sure what name you go by in Upwork, please could you apply for the job? https://www.upwork.com/ab/applicants/1664302246693322752/job-details |
@s77rt paid |
@muttmuure I've applied, my Upwork profile: https://www.upwork.com/freelancers/~01f5cbe690701118a2. Thanks. |
@dukenv0307 invited |
Everyone has been paid @dukenv0307 - $1750 for reporting and 3 day merge |
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 text after emoji is replace by a space
Actual Result:
The text after emoji is replace by "1" string
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.16-5
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
Screencast from 17-05-2023 12_25_02.webm
Recording.654.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dukenv0307
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684301189498089
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: