Skip to content

[HOLD for payment 2024-06-05] [$250] CRITICAL: Tapping on Push Notification fails to retrieve Onyx updates  #40227

Closed

Description

@muttmuure

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


Version Number: v1.4.62-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: @muttmuure
Slack conversation:

Action Performed:

Tap a push notification

Expected Result:

100% of the time, the message that generated that push should be rendered in the chat when you tap it

Actual Result:

Since we removed GetMissingOnyxMessages from push and reconnect app, messages fail to be inserted into the client.

Workaround:

Opening chats and closing them retrieves the updates successfully, further suggesting that the command queue is to blame

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fa6dcd0bbb47aa32
  • Upwork Job ID: 1790746770223431680
  • Last Price Increase: 2024-05-15
Issue OwnerCurrent Issue Owner: @lschurr

Activity

  1. added
    Daily
    Bug
    on Apr 15, 2024
  2. melvin-bot commented on Apr 15, 2024

    @melvin-bot

    Triggered auto assignment to @lschurr (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. muttmuure commented on Apr 15, 2024

    @muttmuure
    ContributorAuthor

    The proposed solution to this from @quinthar is:

    1. Get a list of all updates
    2. Sort them by updateID
    3. Apply as many as you can in order
    4. If there are any gaps, call GetMissingOnyxMessages once
  4. changed the title [-]HIGH [Reliability] Tapping on Push Notification fails to retrieve Onyx updates [/-] [+][HOLD ON #38748] HIGH [Reliability] Tapping on Push Notification fails to retrieve Onyx updates [/+] on Apr 15, 2024
  5. muttmuure commented on Apr 15, 2024

    @muttmuure
    ContributorAuthor
  6. self-assigned this
    on Apr 15, 2024
  7. added
    Weekly
    and removed
    Daily
    on Apr 15, 2024
  8. changed the title [-][HOLD ON #38748] HIGH [Reliability] Tapping on Push Notification fails to retrieve Onyx updates [/-] [+]HIGH: [Reliability] [HOLD ON #38748] Tapping on Push Notification fails to retrieve Onyx updates [/+] on Apr 16, 2024
  9. lschurr commented on Apr 23, 2024

    @lschurr
    Contributor

    On hold.

  10. 48 remaining items

  11. arosiclair commented on May 29, 2024

    @arosiclair
    Contributor

    Yeah this is not done but @allroundexperts should get a payment for his C+ review on that first PR. @lschurr

  12. arosiclair commented on Jun 4, 2024

    @arosiclair
    Contributor

    Alright upon further investigation and testing, I've found that we should not add functionality to apply onyx updates when selecting a push notification. We have a PushReceived handler that applies the onyx update and this should work even when the app killed (the handler runs in the background OR the next time the app is re-opened). I confirmed that with Airship here. So adding extra functionality on select would be redundant.

    However, I did notice two other issues

    • Push notification Onyx updates are not applied correctly when there are no gaps detected. This is because the update is applied with a placeholder eventType here which results in a no-op since it's unrecognized here. I'll fix this with a separate code flow for applying Airship onyx updates rather than re-using the pusher flow.
    • Background refresh doesn't seem to be working on iOS anymore. The app doesn't wake in the background and only processes push notification events once you re-open the app.

    I'm going to create two follow up issues to address those and leave this open since we still need to handle payment for the last C+ review

  13. added
    Daily
    and removed
    Weekly
    on Jun 4, 2024
  14. melvin-bot commented on Jun 5, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@lschurr)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1790746770223431680/hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  15. lschurr commented on Jun 5, 2024

    @lschurr
    Contributor

    The payment summary is correct. No payments will happen in Upwork. @allroundexperts you can request via NewDot :)

  16. lschurr commented on Jun 5, 2024

    @lschurr
    Contributor

    Oh wait, should this one still be open @arosiclair? #40227 (comment)

  17. reopened this on Jun 5, 2024
  18. arosiclair commented on Jun 5, 2024

    @arosiclair
    Contributor

    As long as this payment was handled then we should be all set

  19. lschurr commented on Jun 6, 2024

    @lschurr
    Contributor

    Yep, that's handled in the payment summary here: #40227 (comment)

    Going to close :)

  20. JmillsExpensify commented on Jul 9, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @allroundexperts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions