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

[$500] Room - Invited user to Room does not receive message notification until open the chat first #31449

Closed
4 of 6 tasks
kbecciv opened this issue Nov 16, 2023 · 29 comments
Closed
4 of 6 tasks
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

@kbecciv
Copy link

kbecciv commented Nov 16, 2023

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: 1.4.0
Reproducible in staging?: y
Reproducible in production?: y
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: Applause - Internal team
Slack conversation:

Action Performed:

  1. User A (mobile) create a Room and invite User B
  2. User A send message to the Room

Expected Result:

User B should receive notification about the message

Actual Result:

User B does not receive notifications until he navigates to the room

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

Bug6279211_1700146756870.Recording__1373.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016ef57f5ce2098531
  • Upwork Job ID: 1725174862368362496
  • Last Price Increase: 2023-11-30
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 16, 2023
@melvin-bot melvin-bot bot changed the title Room - Invited user to Room does not receive message notification until open the chat first [$500] Room - Invited user to Room does not receive message notification until open the chat first Nov 16, 2023
Copy link

melvin-bot bot commented Nov 16, 2023

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

Copy link

melvin-bot bot commented Nov 16, 2023

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

Copy link

melvin-bot bot commented Nov 16, 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 - N/A

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

melvin-bot bot commented Nov 16, 2023

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

@s-alves10
Copy link
Contributor

I guess this is related to the notification settings of the room on the receiver side

@tienifr
Copy link
Contributor

tienifr commented Nov 16, 2023

This is a BE error, when B invited A, the pusher sent to A with notificationPreference setting as Daily; but when A opened the report, OpenReport returned with always.

@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2023
Copy link

melvin-bot bot commented Nov 20, 2023

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

@lschurr
Copy link
Contributor

lschurr commented Nov 20, 2023

@thesahindia do we need to ask for help from Eng on this one?

@melvin-bot melvin-bot bot removed the Overdue label Nov 20, 2023
@thesahindia
Copy link
Member

@thesahindia do we need to ask for help from Eng on this one?

Yeah! This needs to be internal.

Copy link

melvin-bot bot commented Nov 23, 2023

📣 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 Nov 27, 2023

Triggered auto assignment to @tgolen (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@melvin-bot melvin-bot bot removed the Overdue label Nov 27, 2023
@lschurr
Copy link
Contributor

lschurr commented Nov 27, 2023

Hiya @tgolen - sounds like this is a backend issue. Will you have a look at it for us?

@tgolen
Copy link
Contributor

tgolen commented Nov 27, 2023

This is a BE error, when B invited A, the pusher sent to A with notificationPreference setting as Daily; but when A opened the report, OpenReport returned with always.

@tienifr I haven't ever worked on this flow, so I could use a little more context. What value are you expecting to have returned?

Copy link

melvin-bot bot commented Nov 30, 2023

@tgolen @lschurr @thesahindia 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!

@melvin-bot melvin-bot bot added the Overdue label Nov 30, 2023
@tgolen
Copy link
Contributor

tgolen commented Nov 30, 2023

@tienifr bump on the above question.

@melvin-bot melvin-bot bot removed the Overdue label Nov 30, 2023
Copy link

melvin-bot bot commented Nov 30, 2023

📣 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 Nov 30, 2023

@tgolen @lschurr @thesahindia 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!

1 similar comment
Copy link

melvin-bot bot commented Nov 30, 2023

@tgolen @lschurr @thesahindia 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!

@melvin-bot melvin-bot bot added the Overdue label Dec 4, 2023
@tienifr
Copy link
Contributor

tienifr commented Dec 4, 2023

@tgolen Sorry I completely missed this. I think this is a design question of whether a user should receive notification of the room immediately after he is invited; or after he opens the room. As in the OP, it's the former one, so it should be:

When B invited A, the pusher updates A's notificationPreference as Always.

@tgolen tgolen added Internal Requires API changes or must be handled by Expensify staff and removed 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 labels Dec 4, 2023
Copy link

melvin-bot bot commented Dec 4, 2023

Current assignee @thesahindia is eligible for the Internal assigner, not assigning anyone new.

@tgolen
Copy link
Contributor

tgolen commented Dec 4, 2023

@flodnv I was wondering if you could help me with this one (also tagging @iwiznia @dangrous since you might be familiar. I tried to reproduce this, and I found that the issue doesn't seem to be related to notificationPreference. There are two cases here, and it's not clear to me which case the issue was opened about.

@kbecciv Can you please clarify which scenario this issue is about?

  • User A invites User B that does not have an existing account
  • User A invites User B that does have an existing account, they just haven't chatted together before

In the first case, there is no message sent because this code is triggered and the account is not found.

In the second case, it appears that there is a push message sent to user B and it contains a notification preference of always, which looks like it should be like we expect.

@melvin-bot melvin-bot bot removed the Overdue label Dec 4, 2023
@iwiznia
Copy link
Contributor

iwiznia commented Dec 4, 2023

In the first case, there is no message sent because this code is triggered and the account is not found.

Huh? Aren't we sending the push notification after we create the account?

@tgolen
Copy link
Contributor

tgolen commented Dec 6, 2023

@kbecciv bump on my clarification above. Could you please help answer that?

@iwiznia I am not sure. I will need to dig into the flow more to understand when exactly the account gets created for that first case.

@kbecciv
Copy link
Author

kbecciv commented Dec 6, 2023

@tgolen It is scenario 2. User A invites User B that does have an existing account, they just haven't chatted together before

@tgolen
Copy link
Contributor

tgolen commented Dec 6, 2023

OK, thank you. I'll need to look at that one more closely. When I tried it earlier, everyone received an always push notification.

Copy link

melvin-bot bot commented Dec 7, 2023

@tgolen @lschurr @thesahindia this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Dec 11, 2023
@lschurr
Copy link
Contributor

lschurr commented Dec 11, 2023

Any update on this one @tgolen?

@melvin-bot melvin-bot bot removed the Overdue label Dec 11, 2023
@tgolen
Copy link
Contributor

tgolen commented Dec 11, 2023

Yeah, I'll be working on this one today and should know more by EOD.

@tgolen
Copy link
Contributor

tgolen commented Dec 11, 2023

I have been unable to reproduce this. Looking at the events from the backend, they are all sent with always set as the notification preference. On the frontend, I'm always receiving the notification.

@tgolen tgolen closed this as completed Dec 11, 2023
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
None yet
Development

No branches or pull requests

7 participants