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

[$250] LHN - Group chat room without message stays on LHN #53496

Open
2 of 8 tasks
vincdargento opened this issue Dec 3, 2024 · 23 comments
Open
2 of 8 tasks

[$250] LHN - Group chat room without message stays on LHN #53496

vincdargento opened this issue Dec 3, 2024 · 23 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Overdue

Comments

@vincdargento
Copy link

vincdargento commented Dec 3, 2024

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


Version Number: v9.0.70-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
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): testpayment935 [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Navigate to https://staging.new.expensify.com
  2. Create a group chat with 1 user
  3. Notice the group created was shown in LHN
  4. Navigate to other chat
  5. Notice the group is no more shown in LHN
  6. Change the group name or Send a message to a group and delete it
  7. Notice the group still shown in LHN

Expected Result:

As the group chat have no chat history or system message it should not be shown in LHN

Actual Result:

The group conversation shown in LHN without any message or history

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

bug2.mp4
bug.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021864491578413816640
  • Upwork Job ID: 1864491578413816640
  • Last Price Increase: 2024-12-19
Issue OwnerCurrent Issue Owner: @sobitneupane
@vincdargento vincdargento added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 3, 2024
Copy link

melvin-bot bot commented Dec 3, 2024

Triggered auto assignment to @adelekennedy (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.

@nkdengineer
Copy link
Contributor

nkdengineer commented Dec 4, 2024

Edited by proposal-police: This proposal was edited at 2024-12-16 10:22:05 UTC.

Proposal

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

The group conversation shown in LHN without any message or history

What is the root cause of that problem?

After we rename the report, notificationPreference of the user is updated to always from the backend. So it stays in LHN even we click on another report.

Screenshot 2024-12-04 at 15 00 08

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

In updateGroupChatName function, we should update notificationPreference of the current user in optimisticData to always if it's hidden.

function updateGroupChatName(reportID: string, reportName: string) {

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

We can add a test case for updateGroupChatName function and verify that notificationPreference is updated to always in optimistic data.

What alternative solutions did you explore? (Optional)

To clarify, I think we can add a new action when we edit the group chat name like we do when we update the policy room name

  1. We can define a new action type for updating the group chat name and create an optimistic action when we update the group chat name like we do here

function updateGroupChatName(reportID: string, reportName: string) {

  1. Define a new function to get the translated message for the new action. And update a case for this action in LHN, ReportActionItem, getReportName, copyToClipBoard.

@adelekennedy adelekennedy added the External Added to denote the issue can be worked on by a contributor label Dec 5, 2024
@melvin-bot melvin-bot bot changed the title LHN - Group chat room without message stays on LHN [$250] LHN - Group chat room without message stays on LHN Dec 5, 2024
Copy link

melvin-bot bot commented Dec 5, 2024

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

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

melvin-bot bot commented Dec 5, 2024

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

@usamazeeshan5
Copy link

1: What is the root cause of that problem?
left hand navigations not updating properly.
2: What changes do you think we should make in order to solve the problem?
Implement a check in updateGroupChatName to handle this logic. This ensures that
only the required groups appear in the LHN based on the user's preferences.
3:What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Multiple rename operations.
Renaming after modifying other group properties like participants or settings.
Groups with no history or messages.

Copy link

melvin-bot bot commented Dec 5, 2024

📣 @usamazeeshan5! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@usamazeeshan5
Copy link

1: What is the root cause of that problem?
left hand navigations not updating properly.
2: What changes do you think we should make in order to solve the problem?
Implement a check in updateGroupChatName to handle this logic. This ensures that
only the required groups appear in the LHN based on the user's preferences.
3:What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Multiple rename operations.
Renaming after modifying other group properties like participants or settings.
Groups with no history or messages.

@sobitneupane
Copy link
Contributor

sobitneupane commented Dec 9, 2024

Thanks for the proposal @nkdengineer

Can you please add more details in RCA, solution and test section of your proposal.

Copy link

melvin-bot bot commented Dec 12, 2024

@sobitneupane, @adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Dec 12, 2024
@sobitneupane
Copy link
Contributor

Waiting for proposal.

@melvin-bot melvin-bot bot removed the Overdue label Dec 12, 2024
Copy link

melvin-bot bot commented Dec 12, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Dec 16, 2024

@sobitneupane, @adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Dec 16, 2024
@sobitneupane
Copy link
Contributor

sobitneupane commented Dec 16, 2024

Waiting for proposal.

@nkdengineer If you are still interested, #53496 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Dec 16, 2024
@nkdengineer
Copy link
Contributor

@sobitneupane Updated my proposal.

Copy link

melvin-bot bot commented Dec 17, 2024

@sobitneupane @adelekennedy this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@sobitneupane
Copy link
Contributor

After we rename the report, notificationPreference of the user is updated to always from the backend. So it stays in LHN even we click on another report.

@nkdengineer So, the report appears in the LHN because the backend sets the notificationPreference to "always," correct?

In updateGroupChatName function, we should update notificationPreference of the current user in optimisticData to always if it's hidden.

How does this solve the issue? Wouldn't we want the notificationPreference to remain "hidden"? IMO, the backend shouldn't change the notificationPreference to "always" when renaming the group chat if the intention is to keep it hidden.

The same should apply to sending and deleting messages in a group. If all messages in a group are deleted, and the group has no messages, its notificationPreference should be set to "hidden."

@nkdengineer
Copy link
Contributor

@nkdengineer So, the report appears in the LHN because the backend sets the notificationPreference to "always," correct?

Yes.

@sobitneupane I think we can ask internal about the expected behavior. If hidden is expected we should fix it from the backend side.

If always is expected, what do you think about my alternative solution that will add a system message when we update the group chat name

Copy link

melvin-bot bot commented Dec 19, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@sobitneupane
Copy link
Contributor

I think we can ask internal about the expected behavior. If hidden is expected we should fix it from the backend side.

For sending and deleting a message in a group, the "hidden" behavior seems preferable. However, for renaming a group, it might be better to show the group in LHN with a "group name updated" message. The former will require backend changes, so I’m referring it to an internal engineer.

🎀 👀 🎀 C reviewed.

Copy link

melvin-bot bot commented Dec 20, 2024

Triggered auto assignment to @AndrewGable, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Copy link

melvin-bot bot commented Dec 23, 2024

@AndrewGable, @sobitneupane, @adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Dec 23, 2024
Copy link

melvin-bot bot commented Dec 25, 2024

@AndrewGable, @sobitneupane, @adelekennedy Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Dec 27, 2024

@AndrewGable, @sobitneupane, @adelekennedy Still overdue 6 days?! Let's take care of this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Overdue
Projects
Development

No branches or pull requests

6 participants