Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.51k stars 2.86k forks source link

[HOLD for payment 2023-04-20] Push notification background updates don't seem to be working #17240

Closed arosiclair closed 1 year ago

arosiclair commented 1 year ago

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. Receive some NewDot messages
  2. Check logs for handling Airship notifications for those messages (eg: logsearch)

Expected Result:

We should have at least a few results for some of these messages

Actual Result:

We have no logs for Airship messages since 4/2 at least (my logs)

Workaround:

No workaround necessary, but this being broken is a subpar UX.

Platforms:

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

Version Number: v1.2.97-2 Reproducible in staging?: Yes Reproducible in production?: Not sure 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 Expensify/Expensify Issue URL: Issue reported by: @quinthar Slack conversation: https://expensify.slack.com/archives/C04E99DVBTP/p1681152024687099?thread_ts=1680980284.168379&cid=C04E99DVBTP

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017276e0552aa2476d
  • Upwork Job ID: 1645534952654491648
  • Last Price Increase: 2023-04-10
MelvinBot commented 1 year ago

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

MelvinBot commented 1 year ago

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

MelvinBot commented 1 year ago

Bug0 Triage Checklist (Main S/O)

MelvinBot commented 1 year ago

Triggered auto assignment to Contributor Plus for review of internal employee PR - @s77rt (Internal)

arosiclair commented 1 year ago

Internal access only for logs so removing C+

arosiclair commented 1 year ago

Okay this was caused by the Airship 15 migration. I missed migrating the event listener callbacks. Specifically, they changed the shape of the notification object we receive. So we weren't getting the payload properly resulting in this error:

[warn] [PushNotification] Notification has null or undefined payload, not executing any callback
dylanexpensify commented 1 year ago

@arosiclair anything needed here on my end? From the looks of it I don't think so, but wanna make sure I'm not missing anything :)

arosiclair commented 1 year ago

Nope you should be good! Fixes for this'll hit prod very soon

MelvinBot commented 1 year ago

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

MelvinBot commented 1 year ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.2.99-6 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-04-20. :confetti_ball:

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.

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

MelvinBot commented 1 year ago

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:

arosiclair commented 1 year ago

Let's see where the discussion goes before proposing regression test steps

dylanexpensify commented 1 year ago

@arosiclair any updates on where we're at with Regression test?

arosiclair commented 1 year ago

I think we're not gonna add any new regression steps for this. If we do, it would be for this related bug on notification click through instead. However, it looks like we already have regression test steps for that here.

Continuing discussion here

dylanexpensify commented 1 year ago

Cool cool, no payments here are due, right?

arosiclair commented 1 year ago

Yup no payment. Everything was internal

dylanexpensify commented 1 year ago

Not overdue, any updates @arosiclair?

arosiclair commented 1 year ago

Yeah we do have existing regression steps for notification click through here so no need to add more.

Looks like this bug made it into production because we already had an open bug for it. So next time we just have to be more diligent about labeling it as a deploy blocker when it hits staging. With that said, I think this is all set!