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 2023-10-23] [HOLD for payment 2023-10-23] [$500] Chat - Entering @ in second line not showing 5 user suggestions #26480

Closed
1 of 6 tasks
lanitochka17 opened this issue Sep 1, 2023 · 43 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 1, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Tap on any report
  3. Enter @ in compose to note 5 user suggestions displayed
  4. Select any one
  5. Tap enter key
  6. In second line, enter @

Expected Result:

Entering @ in second line must show 5 user suggestions

Actual Result:

Entering @ in second line not showing 5 user suggestions

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.61-1

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

Bug6184879_5suggestions.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0107efd9d088b99c24
  • Upwork Job ID: 1707566811859394560
  • Last Price Increase: 2023-09-29
  • Automatic offers:
    • cubuspl42 | Reviewer | 26993154
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 1, 2023

Triggered auto assignment to @alexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Sep 1, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@allroundexperts
Copy link
Contributor

allroundexperts commented Sep 1, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Entering @ in second line not showing 5 user suggestions

What is the root cause of that problem?

The root cause of this issue is that we have an incorrect condition to calculate the suggestion size here.

What changes do you think we should make in order to solve the problem?

We should instead change this condition to be:

    const hasEnoughSpaceForLargeSuggestion = windowHeight - composerHeight - HEADER_HEIGHT >= SUGGESTION_MENU_HEIGHT;

We can save the HEADER_HEIGHT and SUGGESTION_MENU_HEIGHT as a constant (its value is 65 & AUTO_COMPLETE_SUGGESTER.SUGGESTION_ROW_HEIGHT * 5 respectively)

What alternative solutions did you explore? (Optional)

None

@melvin-bot melvin-bot bot added the Overdue label Sep 4, 2023
@alexpensify
Copy link
Contributor

I'm OOO today and will test soon.

@melvin-bot melvin-bot bot removed the Overdue label Sep 4, 2023
@alexpensify
Copy link
Contributor

Closing - this is a dupe of #26197

@allroundexperts - please share your proposal there for review. Thanks!

@allroundexperts
Copy link
Contributor

I don't think this is a duplicate of #26197.

@cubuspl42
Copy link
Contributor

@allroundexperts It looks like a dupe for me. Slightly different symptom of the same problem

@allroundexperts
Copy link
Contributor

@allroundexperts It looks like a dupe for me. Slightly different symptom of the same problem

Possibly. We can wait till the other is resolved and then try again.

@alexpensify alexpensify reopened this Sep 6, 2023
@alexpensify alexpensify changed the title Chat - Entering @ in second line not showing 5 user suggestions [HOLD #26197] Chat - Entering @ in second line not showing 5 user suggestions Sep 6, 2023
@alexpensify
Copy link
Contributor

Weekly Update: Putting this one on hold until #26197 hits production and we can confirm this is still an issue.

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@alexpensify alexpensify added Weekly KSv2 and removed Daily KSv2 labels Sep 11, 2023
@melvin-bot melvin-bot bot removed the Overdue label Sep 11, 2023
@alexpensify
Copy link
Contributor

Looks like I didn't edit the labels, this one should be a weekly.

@alexpensify
Copy link
Contributor

alexpensify commented Sep 20, 2023

Disregard

Weekly Update: PR is under review

@alexpensify
Copy link
Contributor

@allroundexperts could you help to confirm if we should move this one off HOLD since the other GH is in staging? Thanks!

@allroundexperts
Copy link
Contributor

@alexpensify This is still happening:

Screen.Recording.2023-09-29.at.5.55.01.AM.mov

@alexpensify alexpensify changed the title [HOLD #26197] Chat - Entering @ in second line not showing 5 user suggestions Chat - Entering @ in second line not showing 5 user suggestions Sep 29, 2023
@alexpensify alexpensify added the External Added to denote the issue can be worked on by a contributor label Sep 29, 2023
@melvin-bot melvin-bot bot changed the title Chat - Entering @ in second line not showing 5 user suggestions [$500] Chat - Entering @ in second line not showing 5 user suggestions Sep 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 29, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0107efd9d088b99c24

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 29, 2023
@allroundexperts
Copy link
Contributor

PR created #28927

@alexpensify
Copy link
Contributor

Weekly Update: It looks like the PR is moving forward!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 16, 2023
@melvin-bot melvin-bot bot changed the title [$500] Chat - Entering @ in second line not showing 5 user suggestions [HOLD for payment 2023-10-23] [$500] Chat - Entering @ in second line not showing 5 user suggestions Oct 16, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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:

  • [@cubuspl42 / @allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@cubuspl42 / @allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@cubuspl42 / @allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@cubuspl42 / @allroundexperts] Determine if we should create a regression test for this bug.
  • [@cubuspl42 / @allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@alexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 16, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-10-23] [$500] Chat - Entering @ in second line not showing 5 user suggestions [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] [$500] Chat - Entering @ in second line not showing 5 user suggestions Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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:

  • [@cubuspl42 / @allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@cubuspl42 / @allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@cubuspl42 / @allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@cubuspl42 / @allroundexperts] Determine if we should create a regression test for this bug.
  • [@cubuspl42 / @allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@alexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@alexpensify
Copy link
Contributor

@cubuspl42 - to prepare for the payment date, can you please complete the checklist? Thanks!

@cubuspl42
Copy link
Contributor

cubuspl42 commented Oct 23, 2023

  • The PR that introduced the bug has been identified. Link to the PR:
    • It seems that the bug was present in the relevant components since they were created
  • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
    • N/A
  • A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
    • No need for additional discussion
  • Determine if we should create a regression test for this bug.
    • Up to the QA team
  • If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
    • Sign in and open any report.
    • Move the cursor to the second line or any line after that in the composer.
    • Type "@".
    • Ensure that...
      • given enough space, a full suggestion menu appears, capable of displaying 5 suggestions.
      • in case of limited space, a smaller version of the suggestion menu appears.

@cubuspl42
Copy link
Contributor

@allroundexperts I modified the QA Steps from your PR to be more explicit, you can give it a quick look

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Daily KSv2 labels Oct 23, 2023
@JmillsExpensify
Copy link

Can I get a payment summary on this issue?

@alexpensify
Copy link
Contributor

alexpensify commented Oct 23, 2023

Here is the payment summary:

  • External issue reporter - N/A
  • Contributor that fixed the issue - @allroundexperts $500
  • Contributor+ that helped on the issue and/or PR - @cubuspl42 $500

Upwork Job: https://www.upwork.com/jobs/~0107efd9d088b99c24

*If applicable, the bonuses will be applied on the final payment

Extra Notes regarding payment: This solution took more than 6 business days, but I think the payment should include no penalty. The issue was fixed and took into account an edge case. I believe that we fixed this issue right and avoided regressions instead of rushing, so keeping the payment as is for this one.

@JmillsExpensify
Copy link

$500 payment approved for @allroundexperts based on summary above.

@alexpensify
Copy link
Contributor

Closing - I created the QA GH and everyone has been paid.

Copy link

melvin-bot bot commented Nov 8, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants