You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-04-25] [$250] Group chat - User can proceed without Start group button via CMD+Enter shortcut #39323
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Version Number: 1.4.58-4 Reproducible in staging?: Y Reproducible in production?: N
**If this was caught during regression testing, add the test name, ID and link from TestRail:**N/A Issue reported by: Applause - Internal Team
Action Performed:
Go to staging.new.expensify.com
Go to FAB > Start chat
Select two users
Click Next
Unselect all the users
Press CMD+Enter
Expected Result:
User will not be able to proceed with CMD+Enter
Actual Result:
User is able to proceed with CMD+Enter when there is no Start group button
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
@blimpich 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
Please re-state the problem that we are trying to solve in this issue.
User can proceed without Start group button via CMD+Enter shortcut
What is the root cause of that problem?
There's no check for minimum number of participants in createGroup method. We are removing the confirm button but shortcut can still be used to continue.
What changes do you think we should make in order to solve the problem?
Add the below check to ensure there are at least 2 users (though it's not technically a group with 2 users, it's a DM which is going to be handled by this proposal).
What changes do you think we should make in order to solve the problem?
To resolve this inconsistency, we should align keyboard actions with the UI's state by deactivating the keyboard shortcut when the Confirm button is hidden.
This can be achieved by adding && showConfirmButton to the condition above, ensuring that the confirmation action is triggered only when the Confirm button is visible:
Alternatively, we can change the isActive condition to ensure it is only true when both onConfirm and showConfirmButton are either true or false simultaneously:
changed the title [-][$250] Group chat - User can proceed without Start group button via CMD+Enter shortcut[/-][+][HOLD for payment 2024-04-25] [$250] Group chat - User can proceed without Start group button via CMD+Enter shortcut[/+]on Apr 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.62-17 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
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.
[@anmurali] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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
Go to FAB > Start chat
Select any two users
Click Next
Unselect all the users
Press CMD+Enter and verify that you cannot proceed
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Mar 30, 2024
Triggered auto assignment to @blimpich (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Mar 30, 2024
👋 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:
lanitochka17 commentedon Mar 30, 2024
@blimpich 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
lanitochka17 commentedon Mar 30, 2024
We think that this bug might be related to #vip-vsp
ShridharGoel commentedon Mar 30, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
User can proceed without Start group button via CMD+Enter shortcut
What is the root cause of that problem?
There's no check for minimum number of participants in createGroup method. We are removing the confirm button but shortcut can still be used to continue.
App/src/pages/NewChatConfirmPage.tsx
Lines 99 to 105 in 14ff944
What changes do you think we should make in order to solve the problem?
Add the below check to ensure there are at least 2 users (though it's not technically a group with 2 users, it's a DM which is going to be handled by this proposal).
The above code is tested.
abzokhattab commentedon Mar 30, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
user can create a group chat when with no users when clicking on
CMD+ENTERWhat is the root cause of that problem?
The issue occurs because, within the
SelectionList, theCMD+ENTERkeyboard shortcut remains active even when theConfirmbutton is not displayed.App/src/components/SelectionList/BaseSelectionList.tsx
Lines 458 to 473 in 3cf22d1
What changes do you think we should make in order to solve the problem?
To resolve this inconsistency, we should align keyboard actions with the UI's state by deactivating the keyboard shortcut when the Confirm button is hidden.
&& showConfirmButtonto the condition above, ensuring that the confirmation action is triggered only when the Confirm button is visible:or
alternatively:
isActivecondition to ensure it is only true when bothonConfirmandshowConfirmButtonare either true or false simultaneously:blimpich commentedon Apr 1, 2024
this probably due to the new group chats PR #37458. Not big enough of an issue to revert, so lets just open this to contributors.
28 remaining items
[-][$250] Group chat - User can proceed without Start group button via CMD+Enter shortcut[/-][+][HOLD for payment 2024-04-25] [$250] Group chat - User can proceed without Start group button via CMD+Enter shortcut[/+]melvin-bot commentedon Apr 18, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.62-17 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-04-25. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 18, 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:
anmurali commentedon Apr 23, 2024
Not due for another couple of days but @nkdengineer - you can accept the offer here.
jjcoffee commentedon Apr 26, 2024
Regression Test Proposal
Do we agree 👍 or 👎
melvin-bot commentedon Apr 29, 2024
@bondydaa, @anmurali, @jjcoffee, @nkdengineer Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
anmurali commentedon Apr 30, 2024
Paid, added regression test.