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] Room -Notify me about new messages is shown as "daily" #39077

Closed
3 of 6 tasks
izarutskaya opened this issue Mar 27, 2024 · 29 comments
Closed
3 of 6 tasks

[$250] Room -Notify me about new messages is shown as "daily" #39077

izarutskaya opened this issue Mar 27, 2024 · 29 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

@izarutskaya
Copy link

izarutskaya commented Mar 27, 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: 1.4.57-2
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4458530
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Launch app
  2. Tap fab --- start chat -- room
  3. Enter room name with
  4. Make sure visibility is " Workspace "
  5. Tap create room
  6. Tap header
  7. Tap settings

Expected Result:

Notify me about new messages must be shown as "immediately" in room created with visibility " Workspace ".

Actual Result:

Notify me about new messages is shown as "daily" by default instead of "immediately" in room created with visibility " Workspace ".

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

Bug6428803_1711551923141.notifications.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f2eeabf999360436
  • Upwork Job ID: 1773032769246867456
  • Last Price Increase: 2024-03-27
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 27, 2024
Copy link

melvin-bot bot commented Mar 27, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 27, 2024
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Mar 27, 2024

Triggered auto assignment to @blimpich (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@izarutskaya
Copy link
Author

@kadiealexander 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.

@izarutskaya
Copy link
Author

We think that this bug might be related to #vip-vsb.

@izarutskaya
Copy link
Author

Production
Screenshot_20240327_173113_Chrome

@blimpich blimpich added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 27, 2024
@blimpich
Copy link
Contributor

Not a blocker. Demoting. Looking into to see what could have caused this regression. Seems like a simple bug.

@blimpich
Copy link
Contributor

Hmmm, okay I spent some time looking at the PRs for this deploy and nothing really stands out to me. Lets open this up to contributors.

@blimpich blimpich added the External Added to denote the issue can be worked on by a contributor label Mar 27, 2024
@melvin-bot melvin-bot bot changed the title Room -Notify me about new messages is shown as "daily" [$500] Room -Notify me about new messages is shown as "daily" Mar 27, 2024
Copy link

melvin-bot bot commented Mar 27, 2024

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

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

melvin-bot bot commented Mar 27, 2024

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

@blimpich blimpich changed the title [$500] Room -Notify me about new messages is shown as "daily" [$250] Room -Notify me about new messages is shown as "daily" Mar 27, 2024
Copy link

melvin-bot bot commented Mar 27, 2024

Upwork job price has been updated to $250

@FitseTLT
Copy link
Contributor

It is the BE that is returning notification preference daily and if u use staging server and if not it works well

@sobitneupane
Copy link
Contributor

The response received on creating a new room has "notificationPreference" set as "daily". So, I believe it's a backend issue.

Screenshot 2024-03-28 at 14 42 19

cc: @blimpich

@blimpich blimpich removed the Daily KSv2 label Mar 28, 2024
@blimpich
Copy link
Contributor

blimpich commented Apr 1, 2024

Unassigning myself since I don't have bandwidth for this. We should assign this a wave / vip or close it as not worth fixing if it doesn't fit into any of them.

@kadiealexander
Copy link
Contributor

Updated the project and priority. I'm half-debating closing this, it doesn't seem to be a big deal.

@melvin-bot melvin-bot bot removed the Overdue label Apr 10, 2024
Copy link

melvin-bot bot commented Apr 10, 2024

@kadiealexander this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@tgolen
Copy link
Contributor

tgolen commented Apr 16, 2024

@mountiny @aldo-expensify Are either of you aware of any changes that could have lead to this? I saw that you've both done some work on these notification preferences. From my investigation, it looks like it might have coincided with this change but it's not clear to me from looking at the code how the notification preferences get set in the CreatePolicyRoom flow.

This code is the closest thing I could find, but in the CreatePolicyRoom flow, parentReportActionID is null so that block would never execute.

This must have been something that recently changed as opposed to something that was never working (since the problem initially wasn't reproducible on production).

Is this something that needs to be added to Report::getDefaultNotificationPreference() for the CHAT_TYPE_POLICY_ROOM?

@aldo-expensify
Copy link
Contributor

(since the problem initially wasn't reproducible on production).

If this was the case, I think it may have been a change in Web-Expensify since there is no "staging Auth".

Maybe this PR: https://github.com/Expensify/Web-Expensify/pull/41437/files#diff-7a032f7284c8b42392fb9715c5196b05b34ebeb369ee31387f702a26980eb792L1299-R1303

It touches the onyx updates sent after creating the policy room.

It would be good to:

  1. Reproduce the bug
  2. Log out and log in
  3. Check the notification preference

if in step 3. the notification preference is correct, then it is a problem of the pushed onyx updates

@mountiny
Copy link
Contributor

I am not aware of anything recent that I would work on or reviewed, but the PR Aldo linked looks suspicious and aligns timewise to when this bug was raised

@melvin-bot melvin-bot bot added the Overdue label Apr 18, 2024
@iwiznia
Copy link
Contributor

iwiznia commented Apr 18, 2024

Maybe this PR: Expensify/Web-Expensify#41437 (files)

I thought so too, but this was open 6 hours before that was deployed to staging...
Anyway, taking a look just in case.

@iwiznia
Copy link
Contributor

iwiznia commented Apr 18, 2024

ok I am almost sure this has nothing to do with my changes, as that only changes what updates we queue and I just tested and this is wrongly saved in auth

@iwiznia
Copy link
Contributor

iwiznia commented Apr 18, 2024

Not a blocker. Demoting. Looking into to see what could have caused this regression. Seems like a simple bug.

I disagree with this. This was broken in staging and not prod, so it should've blocked as it is creating bad data in the DB that either willl remain bad forever or we need to fix manually.
It was probably a web-e blocker, not an App blocker (assuming that by the time we looked at it we had not deployed web). cc @blimpich

@blimpich
Copy link
Contributor

Fair, I wrongly assumed this wasn't a backend issue when I demoted it originally. The fact that we're creating bad data does make this worse than I thought. I can take a crack at this this afternoon and see if I can find the issue.

@blimpich
Copy link
Contributor

Hmm, I haven't been able to figure out which PR caused this. Trickier than it seems. I suspected this PR but actually on second look the timing is a little off. Merged after this was reported by less than a day. Also suspicious of this PR but reverting it is rife with merge conflicts that I don't have the brain power to wade through.

Frustrating because the fix is actually pretty easy. I can put up a PR to fix this today. Though we should probably add a unit test to cover regressions as well.

@blimpich blimpich self-assigned this Apr 19, 2024
@melvin-bot melvin-bot bot removed the Overdue label Apr 19, 2024
@blimpich blimpich added Daily KSv2 and removed Hot Pick Ready for an engineer to pick up and run with Weekly KSv2 labels Apr 19, 2024
@blimpich
Copy link
Contributor

I have a very hard time believing that this was ever a bug in Auth since we have a test that hasn't changed in 7 months that asserts that a newly created workspace visibility room should have a notification preference set to Daily. See here.

Additionally, the test rail steps linked in the issue description do not specify what the default notification setting should be.

All of this makes me think this is intended behavior.

@blimpich
Copy link
Contributor

blimpich commented Apr 19, 2024

Asking in #product about what we intended for this to be link. If we want it to be immediately I can do that, if we want it to stay the same we should update the test rail steps to say so.

@melvin-bot melvin-bot bot added the Overdue label Apr 22, 2024
@blimpich
Copy link
Contributor

There doesn't seem to be a consensus on whether we intentionally wanted the default notification preference set to daily or immediate, so I'll be airing on the side of doing as little as possible and just updating the QA steps to check for the notification preference being set to Daily. Best to "do nothing" in this case I think.

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
No open projects
Development

No branches or pull requests

9 participants