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-05-02] [$250] Group chat - Removed member can be clicked on when removed offline #40442

Closed
6 tasks done
m-natarajan opened this issue Apr 18, 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

@m-natarajan
Copy link

m-natarajan commented Apr 18, 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.63-0
Reproducible in staging?: y
Reproducible in production?: No newfeature
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
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. Go to staging.new.expensify.com
  2. Go to FAB > Start chat.
  3. Create a group chat.
  4. Click on the header > Members.
  5. Go offline.
  6. Remove a member.
  7. Click on the removed member.

Expected Result:

Removed member should not be accessible when removed offline.

Actual Result:

Removed member can be clicked on when removed offline.

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

Bug6453387_1713430802207.20240418_165708.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d0778275dfed7122
  • Upwork Job ID: 1782605006753902592
  • Last Price Increase: 2024-04-23
  • Automatic offers:
    • jjcoffee | Reviewer | 0
    • ZhenjaHorbach | Contributor | 0
Issue OwnerCurrent Issue Owner: @kevinksullivan
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

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

Copy link

melvin-bot bot commented Apr 18, 2024

Triggered auto assignment to @kevinksullivan (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 Apr 18, 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.

@m-natarajan
Copy link
Author

@kevinksullivan FYI 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.

@m-natarajan
Copy link
Author

We think this bug might be related to #vip-vsb

@marcaaron
Copy link
Contributor

Not a blocker IMO. I'll add this to the polish pile for Group Chats. @grgia let me know if you'd like me to take this off your hands.

@marcaaron marcaaron added Weekly KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Apr 18, 2024
@ZhenjaHorbach
Copy link
Contributor

Proposal

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

Group chat - Removed member can be clicked on when removed offline

What is the root cause of that problem?

The main problem with issue is that we don't pass param for disabling elements

result.push({
keyForList: `${accountID}`,
accountID,
isSelected,
isDisabledCheckbox: accountID === currentUserAccountID,
text: formatPhoneNumber(PersonalDetailsUtils.getDisplayNameOrDefault(details)),
alternateText: formatPhoneNumber(details?.login ?? ''),
rightElement: roleBadge,
pendingAction: pendingChatMember?.pendingAction,
icons: [
{
source: UserUtils.getAvatar(details?.avatar, accountID),
name: formatPhoneNumber(details?.login ?? ''),
type: CONST.ICON_TYPE_AVATAR,
id: accountID,
},
],
});

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

To fix this issue we can pass isDisabled param

const isDisabled = pendingChatMember?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE;

We use the same condition in other places

What alternative solutions did you explore? (Optional)

NA

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 18, 2024
@grgia
Copy link
Contributor

grgia commented Apr 19, 2024

@marcaaron thanks for offering, all yours!

@grgia grgia assigned marcaaron and unassigned grgia Apr 19, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 22, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

@kevinksullivan, @marcaaron Whoops! This issue is 2 days overdue. Let's get this updated quick!

@marcaaron
Copy link
Contributor

@ZhenjaHorbach I think the proposed solution makes sense so happy to roll with that. I can't imagine a situation where we'd want to give the user the ability to "cancel" the offline action. Or at least - it doesn't feel like a priority right now.

@melvin-bot melvin-bot bot removed the Overdue label Apr 23, 2024
@marcaaron marcaaron added the External Added to denote the issue can be worked on by a contributor label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

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

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 Weekly KSv2 labels Apr 23, 2024
@melvin-bot melvin-bot bot changed the title [$250] Group chat - Removed member can be clicked on when removed offline [HOLD for payment 2024-05-02] [$250] Group chat - Removed member can be clicked on when removed offline Apr 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

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

Copy link

melvin-bot bot commented Apr 25, 2024

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

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

Copy link

melvin-bot bot commented Apr 25, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels May 1, 2024
@kevinksullivan
Copy link
Contributor

all set on payments. @jjcoffee please complete the steps above. Thanks!

@jjcoffee
Copy link
Contributor

jjcoffee commented May 6, 2024

  • The PR that introduced the bug has been identified. Link to the PR: Update the Group Chat creation flow UI and Details page #39639
  • 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: https://github.com/Expensify/App/pull/39639/files#r1590702410
  • 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: N/A
  • 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.

Regression Test Proposal

  1. Go to FAB > Start chat
  2. Create a group chat
  3. Click on the chat header > Members
  4. Go offline
  5. Remove a member
  6. Verify that removed member is not clickable

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 6, 2024
@marcaaron
Copy link
Contributor

That sounds great to me @jjcoffee

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 9, 2024
@marcaaron
Copy link
Contributor

Looks like we maybe just need to create the regression test here?

Copy link

melvin-bot bot commented May 14, 2024

@kevinksullivan, @jjcoffee, @marcaaron, @ZhenjaHorbach Eep! 4 days overdue now. Issues have feelings too...

@marcaaron
Copy link
Contributor

Gonna create the issue now and close this one so it stops going overdue.

@melvin-bot melvin-bot bot removed the Overdue label May 15, 2024
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

6 participants