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 2023-05-16] [$1000] Web does not show not show notifications for not active window. #17242

Closed
2 of 6 tasks
kavimuru opened this issue Apr 10, 2023 · 40 comments
Closed
2 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Apr 10, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to web chrome and login with account A.
  2. Go to any chat with account B.
  3. Open any other app on the device so that browser windows gets unfocused.
  4. Send message from another device with logined with account B to Account A.
  5. Notice that no notification is received.

Expected Result:

If we try the same steps on Desktop, we show the notifications but it does not happen on web. We should either hide notifications from both Web and desktop or show on both.

Actual Result:

Desktop shows the notification but web does not which is inconsistent.

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
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
Notes/Photos/Videos: Any additional supporting documentation
web
https://user-images.githubusercontent.com/43996225/231000203-1d3c585b-545d-43ee-8851-1ca9d33abaab.mp4

desktop
https://user-images.githubusercontent.com/43996225/231000209-79e9537d-0d3f-41ba-9a41-99bba3e26e90.mp4

Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681142429319059

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b13c230ee4bc52cb
  • Upwork Job ID: 1646713133914791936
  • Last Price Increase: 2023-04-14
@kavimuru kavimuru added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Apr 10, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Apr 10, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@francoisl
Copy link
Contributor

@arosiclair @neil-marcellini any ideas if this is related to #15858 ? I was able to reproduce the issue - if you leave your browser on the NewDot tab and switch focus to another app, we don't show a notification if you receive a new message from another device.
If the NewDot tab is not active in your browser before switching to another app though, we do show the notification.

@francoisl
Copy link
Contributor

Actually I can reproduce on production as well, so it might not be this 🤔

@parasharrajat
Copy link
Member

@francoisl Actually, this issue was found on #15858 #15858 (comment)

@francoisl
Copy link
Contributor

Oh I see, thanks for clarifying.

@arosiclair
Copy link
Contributor

Yeah the line of code that's controlling this is here. Visibility.isVisible() has different implementations for each platform here. So we'd have to update that in some way to fix this issue. Looks like you have to minimize or switch tabs to get isVisible() to be false on web currently.

@melvin-bot melvin-bot bot added the Overdue label Apr 13, 2023
@kevinksullivan kevinksullivan added the External Added to denote the issue can be worked on by a contributor label Apr 14, 2023
@melvin-bot melvin-bot bot changed the title Web does not show not show notifications for not active window. [$1000] Web does not show not show notifications for not active window. Apr 14, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new.

@MelvinBot
Copy link

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 14, 2023
@MelvinBot
Copy link

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

@kevinksullivan kevinksullivan removed their assignment Apr 14, 2023
@melvin-bot melvin-bot bot removed the Overdue label Apr 14, 2023
@kevinksullivan kevinksullivan added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Apr 14, 2023
@MelvinBot
Copy link

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

@kevinksullivan
Copy link
Contributor

reassigning this one as I am heading OOO for a week. @puneetlath this was reproduced, just gotta subscribe to the slack. Thanks!

https://expensify.slack.com/archives/C049HHMV9SM/p1681142429319059

@Expensify Expensify deleted a comment from MelvinBot Apr 14, 2023
@MelvinBot
Copy link

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:

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

@puneetlath
Copy link
Contributor

@parasharrajat @tienifr @Santhosh-Sellavel sent you all contract offers in Upwork.

@Santhosh-Sellavel bump on the checklist please!

@Santhosh-Sellavel
Copy link
Collaborator

@puneetlath FYI the PR was reverted yesterday as it caused a regression.

@tienifr are you working on solution

@tienifr
Copy link
Contributor

tienifr commented Apr 26, 2023

@Santhosh-Sellavel yay I'm still working on it. Will update as soon as I found the solution.

@puneetlath
Copy link
Contributor

@tienifr how's this going?

@Santhosh-Sellavel
Copy link
Collaborator

PR merged

@melvin-bot
Copy link

melvin-bot bot commented May 8, 2023

@puneetlath, @luacmartins, @Santhosh-Sellavel, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!

@puneetlath
Copy link
Contributor

PR is on staging.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels May 9, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-04-27] [$1000] Web does not show not show notifications for not active window. [HOLD for payment 2023-05-16] [HOLD for payment 2023-04-27] [$1000] Web does not show not show notifications for not active window. May 9, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

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

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

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:

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

@puneetlath puneetlath changed the title [HOLD for payment 2023-05-16] [HOLD for payment 2023-04-27] [$1000] Web does not show not show notifications for not active window. [HOLD for payment 2023-05-16] [$1000] Web does not show not show notifications for not active window. May 11, 2023
@puneetlath
Copy link
Contributor

@Santhosh-Sellavel friendly reminder on the checklist.

Looks like we have contracts with everyone, so will pay on the 16th.

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented May 11, 2023

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:

@Santhosh-Sellavel
Copy link
Collaborator

Regression Steps

  1. Login with account A on the Web
  2. Go to any chat with account B
  3. Open any other app so that the browser window gets defocused
  4. Login with account B on another device
  5. Send a message from that device to account A
  6. Verify that account A's device receives a new message notification

👍 or 👎

@Santhosh-Sellavel
Copy link
Collaborator

@luacmartins @puneetlath

The checklist updated let me know if you differ on any item. Thanks!

@puneetlath
Copy link
Contributor

Checklist and regression test look good to me! Will pay tomorrow assuming no regressions.

@puneetlath
Copy link
Contributor

All paid. Thanks everyone!

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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests