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-06-29] [HOLD for payment 2023-06-28] [$1000] Search - Group chat displays blank in Search results #21127

Closed
2 of 6 tasks
kbecciv opened this issue Jun 20, 2023 · 49 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jun 20, 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 staging.new.expensify.com
  2. Log in with HT account or any account where you have a lot of group conversation
  3. Click on magnify glass and scroll the page

Expected Result:

Group chat displays without issue

Actual Result:

Group chat displays blank in Search result

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.29-6

Reproducible in staging?: yes

Reproducible in production?: no

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

Recording.3170.mp4
Recording.5060.mp4

image (73)

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/~01541118f633ad9ca1
  • Upwork Job ID: 1671222841055092736
  • Last Price Increase: 2023-06-20
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Jun 20, 2023
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Jun 20, 2023

Triggered auto assignment to @amyevans (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@kbecciv kbecciv changed the title Web - Search - Group chat displays blank in Search results Search - Group chat displays blank in Search results Jun 20, 2023
@Beamanator
Copy link
Contributor

Looks still reproducible in staging & main

@Beamanator
Copy link
Contributor

(@amyevans I'm not planning to look into the fix for now, let me know if you need me to)

@amyevans
Copy link
Contributor

Thanks, I can repro on main too, taking a closer look

@jeet-dhandha
Copy link
Contributor

Screenshot 2023-06-20 at 10 23 51 PM

Its a basic change. We had to pass participantsList when we have a list of participants.

@jeet-dhandha
Copy link
Contributor

Before:

Screenshot 2023-06-20 at 10 25 27 PM

After:

Screenshot 2023-06-20 at 10 25 04 PM

@amyevans
Copy link
Contributor

@jeet-dhandha Your fix isn't working in my local tests
Screenshot 2023-06-20 at 1 18 42 PM
(this.props.option.accountID is 0)

@Beamanator
Copy link
Contributor

@amyevans just checking which account has option.accountID of 0? It should almost never be 0 ideally 😬

@Pujan92
Copy link
Contributor

Pujan92 commented Jun 20, 2023

(this.props.option.participantsList || this.props.option.accountID ? [this.props.option] : []).slice(0, 10),

I think this condition should be(if participants not available then only check the accountID)

(this.props.option.participantsList || (this.props.option.accountID ? [this.props.option] : [])).slice(0, 10),

@amyevans
Copy link
Contributor

@Beamanator this is the data (I'm not clear yet where that data flows from, so can't say more than that at the moment - maybe it's just bad local data somehow?):
Screenshot 2023-06-20 at 1 38 27 PM

@Pujan92 that condition worked for me 👍 , how does it look to you @Beamanator? (cc @luacmartins)

@Beamanator
Copy link
Contributor

Ooh @Pujan92 that could be correct 🙃

Sadly I'm able to see this bug @amyevans but am investigating another bug, let me know if you need me to help with this one, but seems we may be on track for the fix already 🙏

@amyevans
Copy link
Contributor

@Pujan92 do you have capacity/interest in putting together a PR for this fix quickly?

If not, I will handle once I'm out of a meeting in about 30-40 min.

@Pujan92
Copy link
Contributor

Pujan92 commented Jun 20, 2023

Yes @amyevans , I can raise a PR now for the fix.

@luacmartins
Copy link
Contributor

luacmartins commented Jun 20, 2023

So the accountID is 0 because we default it to 0 here, but we only set it if the report doesn't have multiple participants here. Is that the expected behavior @Beamanator?

@Beamanator
Copy link
Contributor

Aah interesting @luacmartins - I believe I only default to 0 cuz I thought that made sense, but seeing that everything else starts out as null maybe the accountID should NOT start as 0 - good find

@luacmartins
Copy link
Contributor

I think it's fine to initialize with 0 or null, but what do we want to store for group chats?

@Beamanator
Copy link
Contributor

I guess we'd use result.participantsList for group chats?

@luacmartins
Copy link
Contributor

Yea, that's what @Pujan92's solution is doing.

@Pujan92
Copy link
Contributor

Pujan92 commented Jun 20, 2023

Yes, currently due to this condition (this.props.option.participantsList || this.props.option.accountID ? [this.props.option] : []).slice(0, 10),
It always pass either this.props.option or [], so wrapping with () the second condition solves the issue and pass this.props.option.participantsList when it is available.

@luacmartins
Copy link
Contributor

@Pujan92 feel free to tag me as a reviewer too

@luacmartins
Copy link
Contributor

Thank you!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jun 21, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Search - Group chat displays blank in Search results [HOLD for payment 2023-06-28] [$1000] Search - Group chat displays blank in Search results Jun 21, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.29-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-06-28. 🎊

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

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 Jun 21, 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:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@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:
  • [@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:
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@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.
  • [@joekaufmanexpensify] 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 Jun 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 22, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.30-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-29. 🎊

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

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 melvin-bot bot changed the title [HOLD for payment 2023-06-28] [$1000] Search - Group chat displays blank in Search results [HOLD for payment 2023-06-29] [HOLD for payment 2023-06-28] [$1000] Search - Group chat displays blank in Search results Jun 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 22, 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:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR: Add tooltips and nav to bill details #20746
  • [@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: 685169c#r120008049
  • [@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: think a Slack discussion is not needed because this seemed to have been a side-effect of another change which was not caught during the testing.
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@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.
  • [@joekaufmanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: N/A

@joekaufmanexpensify
Copy link
Contributor

This qualifies for a speed bonus, so we need to issue the following payments here:

  • @Pujan92 - $1,500 ($1,000 for PR, and $500 speed bonus).
  • @allroundexperts - $1,500 ($1,000 for review, and $500 speed bonus).
  • No reporting bonus here.

@joekaufmanexpensify
Copy link
Contributor

@Pujan92 offer sent for $1,000 ($500 will be issued as bonus)

@joekaufmanexpensify
Copy link
Contributor

@allroundexperts offer sent for $1,000 ($500 will be issued as bonus)

@joekaufmanexpensify
Copy link
Contributor

@allroundexperts Could you please complete your portion of the BZ checklist when you have a chance? Thanks!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 27, 2023
@joekaufmanexpensify
Copy link
Contributor

All set to issue payment soon once the BZ checklist is complete.

@allroundexperts
Copy link
Contributor

  1. The PR that introduced the bug has been identified. Link to the PR: Add tooltips and nav to bill details #20746
  2. 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: 685169c#r120008049
  3. I think a Slack discussion is not needed because this seemed to have been a side-effect of another change which was not caught during the testing.
  4. Regression test would be helpful.

Regression Test Proposal

  1. Login and click on search icon
  2. Verify in the search list that Group chats display text isn't empty

Do we agree 👍 or 👎

@amyevans
Copy link
Contributor

I don't think we need a regression test specific to this case, Group Chat flows have plenty of regression tests already and blank text would be very obvious to the testers already without calling it out as a separate item.

@joekaufmanexpensify
Copy link
Contributor

BZ checklist is complete! All set to issue payment.

@joekaufmanexpensify
Copy link
Contributor

@Pujan92 $1,500 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

@allroundexperts $1,500 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

Upwork job closed.

@joekaufmanexpensify
Copy link
Contributor

Bug is fixed, BZ checklist complete, and all payment issued. Closing as this is all set. Thanks everyone!

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants