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 #46835] [CRITICAL] Notification - User received desktop notification for a room a visited but didn't join #35000

Closed
1 of 6 tasks
isagoico opened this issue Jan 23, 2024 · 51 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@isagoico
Copy link

isagoico commented Jan 23, 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: Version 1.4.26-1
Reproducible in staging?: Unknown
Reproducible in production?: Unknown
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
Expensify/Expensify Issue URL:
Issue reported by: @mallenexpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1705535848446499

Updated details from this thread on July 23rd, inc. rVNP data and more logs.

Action Performed:

Precondition: user is part of a workspace that has at least a room that is visible in the workspace
Employee

  1. Navigate to a workspace room but do not join the room
  2. Navigate away

Another user or workspace admin

  1. As the workspace admin or another user that is part of the workspace room - Send a message

@mallenexpensify reproduction steps:

  1. Days ago I visited #big-rig room in Expensify Chat workspace, I did not join the room nor was invited nor commented.

Expected Result:

To not receive desktop/browser notifications when new posts are added to the room

Actual Result:

User received a notification from the room that they did not join.

Workaround:

N/A

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

image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0125cf67df8d5a6dca
  • Upwork Job ID: 1749887918200393728
  • Last Price Increase: 2024-02-13
Issue OwnerCurrent Issue Owner: @ishpaul777
@isagoico isagoico added External Added to denote the issue can be worked on by a contributor Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Jan 23, 2024
@melvin-bot melvin-bot bot changed the title Notification - User received desktop notification for a room a visited but didn't join [$500] Notification - User received desktop notification for a room a visited but didn't join Jan 23, 2024
Copy link

melvin-bot bot commented Jan 23, 2024

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

Copy link

melvin-bot bot commented Jan 23, 2024

Triggered auto assignment to @abekkala (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

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

melvin-bot bot commented Jan 23, 2024

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

@abekkala
Copy link
Contributor

@mallenexpensify Reproduced!

@abekkala abekkala removed the Needs Reproduction Reproducible steps needed label Jan 25, 2024
@mallenexpensify
Copy link
Contributor

@abdulrahuman5196 any reason you can think that this shouldn't be External?

@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
Copy link

melvin-bot bot commented Jan 29, 2024

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

@abdulrahuman5196
Copy link
Contributor

Sorry the delay. Will check and update before my morning.

@melvin-bot melvin-bot bot removed the Overdue label Jan 29, 2024
Copy link

melvin-bot bot commented Jan 30, 2024

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

@mallenexpensify
Copy link
Contributor

Just happened again. Got a notification which showed as from Sheena (didn't get screenshot), clicked the notification and it opened #expensipups.
image

@abdulrahuman5196 can you see if you can find a reproduce and provide the steps, if so? Thx

@melvin-bot melvin-bot bot added the Overdue label Feb 1, 2024
@abekkala
Copy link
Contributor

abekkala commented Feb 1, 2024

@abdulrahuman5196 can you take a look here please and address?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 1, 2024
@abdulrahuman5196
Copy link
Contributor

I didn't see the issue. Will double confirm again and update here

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
Copy link

melvin-bot bot commented Feb 6, 2024

@abekkala @abdulrahuman5196 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!

Copy link

melvin-bot bot commented Feb 6, 2024

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

@abekkala
Copy link
Contributor

abekkala commented Feb 6, 2024

@abdulrahuman5196 do you have an update?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Aug 27, 2024
Copy link

melvin-bot bot commented Aug 30, 2024

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

@mallenexpensify
Copy link
Contributor

Think we're all set here, so closing.
If we need a regression test, this will get commented on (per here) and I'll reopen.

@puneetlath
Copy link
Contributor

Actually @mallenexpensify I think it'd be good to create a regression test specifically for that case here.

@puneetlath puneetlath reopened this Sep 3, 2024
@mallenexpensify
Copy link
Contributor

mallenexpensify commented Sep 4, 2024

@abdulrahuman5196 @ishpaul777 as you're the C+ on this PR, complete the BZ checklist since we want a test for this. Thx for chiming in Puneet.

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:

  • [@] 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:
  • [@] Determine if we should create a regression test for this bug.
  • [@] 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.
  • [@bz] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@mallenexpensify
Copy link
Contributor

@ishpaul777 , 👀 above please. Also, I'm assuming payment isn't due on this issue and that you'll manage that in the main one. Thx

@ishpaul777
Copy link
Contributor

Also, I'm assuming payment isn't due on this issue and that you'll manage that inhttps://github.com//issues/46835

correct

sure i'll fill checklist in a bit..

@ishpaul777
Copy link
Contributor

ishpaul777 commented Sep 4, 2024

  1. [@] The PR that introduced the bug has been identified. Link to the PR: Honestly no idea which PR introduced could be introduced when we migrated from report.visibleParticapantIDs to report.notificationPreference, again I could not find which PR did that.
  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: N/A
  3. [@] 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: Not required
  4. [@] Determine if we should create a regression test for this bug. yes
  5. [@] 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.

Test Proposal

Precondition: user is part of a workspace that has at least a room that is visible in the workspace

As Employee

  1. Navigate to a workspace room but do not join the room
  2. Navigate away

as Another user (member of room) or workspace admin

  1. Send a message

Expected Result:

To not receive desktop/browser notifications when new posts are added to the room

Do we agree 👍 or 👎 ?

Sidenote:
Before we start testing this in QA process we should wait for #47577 and also we should test this again with existing room with this adhoc build #47577 (comment) with accounts for which this is still producable to be sure that this isssue is fixed

@mallenexpensify
Copy link
Contributor

Thanks @ishpaul777 , test case created

@muttmuure
Copy link
Contributor

This is still happening as reported here: https://expensify.slack.com/archives/C05LX9D6E07/p1725908484386969?thread_ts=1725899304.608239&cid=C05LX9D6E07

@shubham1206agra could you let us know when your fix is ready?

@mallenexpensify
Copy link
Contributor

@puneetlath I'm out til Tuesday, can you keep 👀 on plz? You're already assigned, have context and you're a BZ, so it makes sense to me to not rando-assign to another BZ.

Copy link

melvin-bot bot commented Sep 13, 2024

@puneetlath, @mallenexpensify, @abdulrahuman5196, @ishpaul777 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 Sep 13, 2024
@ishpaul777
Copy link
Contributor

PR was deployed yesterday

@melvin-bot melvin-bot bot removed the Overdue label Sep 13, 2024
Copy link

melvin-bot bot commented Sep 17, 2024

@puneetlath, @mallenexpensify, @abdulrahuman5196, @ishpaul777 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Sep 17, 2024
@ishpaul777
Copy link
Contributor

PR deployed 5days ago i think this is Good to close

@melvin-bot melvin-bot bot removed the Overdue label Sep 17, 2024
@mallenexpensify
Copy link
Contributor

Closing, just checked Desktop and haven't seen any notifications/messages from rooms I haven't joined. Thx @ishpaul777

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 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
Status: Done
Development

No branches or pull requests

8 participants