Skip to content
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 2024-03-07] [$500] Chat - The selected 2nd contact is shown in first line #37250

Closed
6 tasks done
lanitochka17 opened this issue Feb 27, 2024 · 23 comments
Closed
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 27, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.44
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4346886
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Launch app
  2. Tap on a report
  3. Enter @
  4. Select here from user suggestions
  5. Tap enter key and go to next line
  6. Enter @ and select any contact from user suggestion
  7. Note, the selected 2nd contact is shown in first line
  8. Send the message
  9. Note here message is not highlighted

Expected Result:

Selecting user suggestions here and then another contact, must show 2nd contact at second line in compose box and after sending message, here must be highlighted

Actual Result:

Selecting user suggestions here and then another contact, showing 2nd contact at first in compose box and after sending message, here is not highlighted

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6393498_1708997911772.scl.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0104f679d006807363
  • Upwork Job ID: 1762301377508782080
  • Last Price Increase: 2024-02-27
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor labels Feb 27, 2024
@melvin-bot melvin-bot bot changed the title Chat - The selected 2nd contact is shown in first line [$500] Chat - The selected 2nd contact is shown in first line Feb 27, 2024
Copy link

melvin-bot bot commented Feb 27, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0104f679d006807363

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 27, 2024
Copy link

melvin-bot bot commented Feb 27, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mkhutornyi (External)

@melvin-bot melvin-bot bot added the Daily KSv2 label Feb 27, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 27, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Feb 27, 2024

Auto-assign attempt failed, all eligible assignees are OOO.

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp
CC @quinthar

@youssef-lr
Copy link
Contributor

youssef-lr commented Feb 27, 2024

Looks like this is caused by #36792, cc @dukenv0307, reverting your PR fixed it for me locally

Screen.Recording.2024-02-27.at.05.42.36.mov

@youssef-lr
Copy link
Contributor

@abdulrahuman5196 @dukenv0307 can you guys take a look please?

@dukenv0307
Copy link
Contributor

I'm checking it now.

@abdulrahuman5196
Copy link
Contributor

Do ping me if we have a solution.

@dukenv0307
Copy link
Contributor

@abdulrahuman5196 I tried this proposal's alternative and didn't get the regression as above. What do you think about this solution?

@abdulrahuman5196
Copy link
Contributor

@abdulrahuman5196 I tried this proposal's alternative and didn't get the regression as above. What do you think about this solution?

@dukenv0307 Did we find the root cause of this issue? What is causing this?

@dukenv0307
Copy link
Contributor

@abdulrahuman5196
In the first solution, we calculated leftString based on newLineIndex and every time we break a line, newLineIndex is recalculated, leading to wrong leftString and atSignIndex.

@abdulrahuman5196
Copy link
Contributor

@abdulrahuman5196 I tried this proposal's alternative and didn't get the regression as above. What do you think about this solution?

@dukenv0307 If we need to implement the alternate solution, it would be better to do a straight revert of the offending PR to unblock staging and to avoid any new regressions from the alternate solution implementation. Since the alternate solution is a different implementation and would need to discuss on that.

@youssef-lr what do you think?

@dukenv0307
Copy link
Contributor

dukenv0307 commented Feb 27, 2024

leading to wrong leftString and atSignIndex.

@abdulrahuman5196 On second thought, I saw that atSignIndex is wrong because the left string is cut off from the last break line index meanwhile atSignIndex is the index based on the full string so with my main solution we need to update atSignIndex correctly by adding it with newLineIndex + 1. What do you think about this?

@abdulrahuman5196
Copy link
Contributor

leading to wrong leftString and atSignIndex.

@abdulrahuman5196 On second thought, I saw that atSignIndex is wrong because the left string is cut off from the last break line index meanwhile atSignIndex is the index based on the full string so with my main solution we need to update atSignIndex correctly by adding it with newLineIndex + 1. What do you think about this?

@dukenv0307
Got it. Seems to be good. Can we raise a quick PR on the same?
And do check if any other properties need to be updated?

@dukenv0307
Copy link
Contributor

Thanks, I will raise the PR after a few hours.

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Feb 27, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Hourly KSv2 labels Feb 27, 2024
@dukenv0307
Copy link
Contributor

@abdulrahuman5196 this PR is ready for review.

@puneetlath puneetlath removed the DeployBlockerCash This issue or pull request should block deployment label Feb 27, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 29, 2024
@melvin-bot melvin-bot bot changed the title [$500] Chat - The selected 2nd contact is shown in first line [HOLD for payment 2024-03-07] [$500] Chat - The selected 2nd contact is shown in first line Feb 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 29, 2024
Copy link

melvin-bot bot commented Feb 29, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Feb 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.45-6 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 2024-03-07. 🎊

For reference, here are some details about the assignees on this issue:

  • @mkhutornyi requires payment (Needs manual offer from BZ)

@abdulrahuman5196
Copy link
Contributor

No payment required here since it was a regression fix. @youssef-lr We can close this issue.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 7, 2024
Copy link

melvin-bot bot commented Mar 7, 2024

Issue is ready for payment but no BZ is assigned. @trjExpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

Copy link

melvin-bot bot commented Mar 7, 2024

Payment Summary

Upwork Job

BugZero Checklist (@trjExpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1762301377508782080/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@mkhutornyi mkhutornyi removed their assignment Mar 7, 2024
@abdulrahuman5196
Copy link
Contributor

No payment required here since it was a regression fix. youssef-lr We can close this issue.

cc: @trjExpensify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

7 participants