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-06-11] [HOLD for payment 2024-06-06] [$250] Chat - Display Name Appears Black and Members Not Ticked in Group Preview #42751

Closed
5 of 6 tasks
izarutskaya opened this issue May 29, 2024 · 24 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

@izarutskaya
Copy link

izarutskaya commented May 29, 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: v1.4.77-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): abebemiherat@gmail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

1, Navigate to FAB > Start Chat > Click on the "Add to Group" button associated with the email.
2, Notice that the display name appears black and the selected members are not ticked; the "Add to Group" button remains available.

Expected Result:

Upon creating a group and clicking the "Add to Group" button, the display name should not appear black, and the "Add to Group" button should change to a tick.

Actual Result:

Clicking the "Add to Group" button results in the display name appearing black, and the "Add to Group" button remains available without changing to a tick, contacts are hidden on the confirmation page and an error appears if you click Start group

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

Bug6494991_1716979766131.Screen_Recording_2024-05-29_at_3.38.36_AM.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e4959f53301769e3
  • Upwork Job ID: 1795854006851895296
  • Last Price Increase: 2024-05-29
  • Automatic offers:
    • abdulrahuman5196 | Reviewer | 102517509
    • Krishna2323 | Contributor | 102517511
Issue OwnerCurrent Issue Owner: @CortneyOfstad
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels May 29, 2024
Copy link

melvin-bot bot commented May 29, 2024

Triggered auto assignment to @Beamanator (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented May 29, 2024

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels May 29, 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.

@izarutskaya
Copy link
Author

@CortneyOfstad I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@izarutskaya
Copy link
Author

We think this issue might be related to the #vip-vsb.

@izarutskaya
Copy link
Author

Production

bandicam.2024-05-29.14-21-36-911.mp4

@luacmartins luacmartins removed the DeployBlocker Indicates it should block deploying the API label May 29, 2024
@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label May 29, 2024
@melvin-bot melvin-bot bot changed the title Chat - Display Name Appears Black and Members Not Ticked in Group Preview [$250] Chat - Display Name Appears Black and Members Not Ticked in Group Preview May 29, 2024
Copy link

melvin-bot bot commented May 29, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01e4959f53301769e3

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

melvin-bot bot commented May 29, 2024

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

@Krishna2323
Copy link
Contributor

Krishna2323 commented May 29, 2024

Proposal

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

Chat - Display Name Appears Black and Members Not Ticked in Group Preview

What is the root cause of that problem?

Offending PR: #42170

The rightHandSideComponent function is already called here so it isn't passes as a function to ListItem.

rightHandSideComponent={rightHandSideComponent && (typeof rightHandSideComponent === 'function' ? rightHandSideComponent({} as TItem) : rightHandSideComponent)}

const rightHandSideComponentRender = () => {
if (canSelectMultiple || !rightHandSideComponent) {
return null;
}
if (typeof rightHandSideComponent === 'function') {
return rightHandSideComponent(item);
}
return rightHandSideComponent;
};

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

We have two options:

  1. Pass the rightHandSideComponent as it is, without calling it and conditions.
rightHandSideComponent={rightHandSideComponent}
  1. When calling rightHandSideComponent in BaseSelectionList, pass the item (option).
rightHandSideComponent={rightHandSideComponent && (typeof rightHandSideComponent === 'function' ? rightHandSideComponent(item) : rightHandSideComponent)}

We need to also remove the comment which was added in the offending PR.

I have checked lint issue mentioned in the offending PR, we can safely switch back to rightHandSideComponent={rightHandSideComponent}

What alternative solutions did you explore? (Optional)

@Krishna2323
Copy link
Contributor

Proposal Updated

  • Comment added

@luacmartins
Copy link
Contributor

@Krishna2323 are you available to work on a fix?

@Krishna2323
Copy link
Contributor

@luacmartins, yep.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 29, 2024
@luacmartins luacmartins self-assigned this May 29, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels May 30, 2024
@puneetlath puneetlath removed the DeployBlockerCash This issue or pull request should block deployment label May 30, 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 May 30, 2024
@melvin-bot melvin-bot bot changed the title [$250] Chat - Display Name Appears Black and Members Not Ticked in Group Preview [HOLD for payment 2024-06-06] [$250] Chat - Display Name Appears Black and Members Not Ticked in Group Preview May 30, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 30, 2024
Copy link

melvin-bot bot commented May 30, 2024

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

Copy link

melvin-bot bot commented May 30, 2024

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

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

Copy link

melvin-bot bot commented May 30, 2024

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:

  • [@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
  • [@abdulrahuman5196] 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:
  • [@abdulrahuman5196] 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:
  • [@abdulrahuman5196] Determine if we should create a regression test for this bug.
  • [@abdulrahuman5196] 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.
  • [@CortneyOfstad] 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 4, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-06] [$250] Chat - Display Name Appears Black and Members Not Ticked in Group Preview [HOLD for payment 2024-06-11] [HOLD for payment 2024-06-06] [$250] Chat - Display Name Appears Black and Members Not Ticked in Group Preview Jun 4, 2024
Copy link

melvin-bot bot commented Jun 4, 2024

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

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

Copy link

melvin-bot bot commented Jun 4, 2024

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:

  • [@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
  • [@abdulrahuman5196] 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:
  • [@abdulrahuman5196] 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:
  • [@abdulrahuman5196] Determine if we should create a regression test for this bug.
  • [@abdulrahuman5196] 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.
  • [@CortneyOfstad] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: https://github.com/Expensify/Expensify/issues/403908

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jun 6, 2024
@CortneyOfstad
Copy link
Contributor

Not overdue!

@abdulrahuman5196 can you complete the checklist at your earliest convenience so there is not a delay in issuing payment? Thanks!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 7, 2024
@CortneyOfstad
Copy link
Contributor

Friendly bump @abdulrahuman5196 as payment is set for tomorrow. Thanks!

@abdulrahuman5196
Copy link
Contributor

The PR that introduced the bug has been identified. Link to the PR:
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:
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:

https://github.com/Expensify/App/pull/42170/files#r1633446096

Determine if we should create a regression test for this bug.

Yes.

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.

  1. Navigate to FAB > Start Chat > Click on the "Add to Group" button associated with the email.
  2. Verify that the display name appears correctly and the selected members are ticked.

@CortneyOfstad

@CortneyOfstad
Copy link
Contributor

Payment Summary

@abdulrahuman5196 — paid $250 via Upwork
@Krishna2323 — paid $250 via Upwork

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

7 participants