Skip to content

[HOLD for payment 2023-09-18] Incremental Onyx Updates are not applied in the correct order #24606

Closed

Description

@tgolen

cc @danieldoglas

I was thinking about the way we've implemented the changes in App, and I wanted to know your opinion about possibly having data applied in the wrong order.

  • B has a currentUpdateID = 1.
  • A sends reportAction (with reportActionID = 1) to B (updateID 2)
  • B doesn't receive that message through Pusher updates (so their currentUpdateID still 1)
  • A then deletes that message. (updateID 3)
  • B receives the pusher update deleting the message (updateID 3), notices that their currentUpdateID is out of date and calls GetMissingOnyxUpdates with from: 1 and to: 3

I don't think we're currently holding on applying the pusher updates we received until GetMissingOnyxUpdates is done. So from my understanding, we would:

  • Call GetMissingOnyxUpdates
  • Asynchronously merge the collection with a reportActionID: 1 with html: '' (updateID 3, that deleted the message)
  • When we receive the response from GetMissingOnyxUpdate, we'll apply a merge again on the collection with a reportActionID: 1 with html: 'previous text'

Activity

  1. added
    Daily
    Bug
    on Aug 15, 2023
  2. self-assigned this
    on Aug 15, 2023
  3. tgolen commented on Aug 15, 2023

    @tgolen
    ContributorAuthor

    Coming from this slack thread:

    I think Option B is probably going to be the easiest. It would look like this:

    • Gap is detected in update IDs
    • sequential queue is paused
    • call GetMissingOnyxUpdates() using makeRequestWithSideEffects()
    • Apply the missing onyx updates from the response
    • sequential queue is unpaused
  4. added
    Reviewing
    Weekly
    and removed
    Daily
    on Aug 15, 2023
  5. melvin-bot commented on Aug 15, 2023

    @melvin-bot

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

  6. added
    Daily
    and removed
    Weekly
    on Aug 15, 2023
  7. melvin-bot commented on Aug 15, 2023

    @melvin-bot

    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
  8. tgolen commented on Aug 15, 2023

    @tgolen
    ContributorAuthor

    You can ignore this one @Christinadobrzyn and I'll be taking this.

  9. 48 remaining items

  10. added
    Weekly
    and removed
    Daily
    on Sep 25, 2023
  11. dylanexpensify commented on Oct 2, 2023

    @dylanexpensify
    Contributor

    On it!

  12. dylanexpensify commented on Oct 2, 2023

    @dylanexpensify
    Contributor

    @danieldoglas confirm amounts please 🙇‍♂️

  13. danieldoglas commented on Oct 3, 2023

    @danieldoglas
    Contributor

    @dylanexpensify this issue was created before the prices changes so $1k each.

  14. dylanexpensify commented on Oct 9, 2023

    @dylanexpensify
    Contributor

    Payment Summary:

    Upwork job! Please apply!

  15. s77rt commented on Oct 9, 2023

    @s77rt
    Member

    @dylanexpensify Applied! Thanks!

  16. dylanexpensify commented on Oct 9, 2023

    @dylanexpensify
    Contributor

    Offer sent @s77rt!!

  17. s77rt commented on Oct 9, 2023

    @s77rt
    Member

    Accepted!

  18. dylanexpensify commented on Oct 9, 2023

    @dylanexpensify
    Contributor

    paid!

  19. s77rt commented on Oct 9, 2023

    @s77rt
    Member

    @dylanexpensify @allroundexperts requires payment as well

  20. JmillsExpensify commented on Oct 13, 2023

    @JmillsExpensify
    Contributor

    $1,000 payment approved for @allroundexperts based on BZ summary.

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

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions