Skip to content

[Due for payment 2026-01-09] [$250] Remove updateOptimisticReportNamesFromUpdates middleware #76848

Closed

Description

@neil-marcellini

Problem

We have this middleware updateOptimisticReportNamesFromUpdates which optimistically updates computed report names based on Onyx updates. It was added as part of our original design for optimistic custom report names on New Expensify. However, we recently decided that it is not worth the effort to build this complete system for optimistic updates, given that the backend can generally take care of it when users are online, and it has been taking a really longtime to build it out perfectly without any bugs.

Solution

Remove the middleware function and all code related to optimistically computing report names based on Onyx updates. We still want to keep the code to compute a report name given its formula. In the future we're going to make sure that custom report names are optimistically computed only when reports are created, and probably just for the most important formula parts.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021998500208056442603
  • Upwork Job ID: 1998500208056442603
  • Last Price Increase: 2025-12-09
  • Automatic offers:
    • QichenZhu | Reviewer | 109763302
    • truph01 | Contributor | 109763306
Issue OwnerCurrent Issue Owner: @CortneyOfstad

Activity

  1. truph01 commented on Dec 6, 2025

    @truph01
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    • Remove updateOptimisticReportNamesFromUpdates middleware

    What is the root cause of that problem?

    • Feature request

    What changes do you think we should make in order to solve the problem?

    • Remove this function
      function updateOptimisticReportNamesFromUpdates(optimisticData: OnyxUpdate[], context: UpdateContext, successData?: OnyxUpdate[], failureData?: OnyxUpdate[]): ProcessedUpdates {
    • Remove the places where the function is being used:

    const processedOptimisticData = OptimisticReportNames.updateOptimisticReportNamesFromUpdates(optimisticData, context);

    and all the related tests.

    What alternative solutions did you explore? (Optional)

  2. added
    Daily
    and removed
    Weekly
    on Dec 6, 2025
  3. neil-marcellini commented on Dec 9, 2025

    @neil-marcellini
    ContributorAuthor

    Ok @truph01 pls go ahead. I should probably stay focused on other work vs doing this myself.

  4. added
    External
    and removed
    Daily
    on Dec 9, 2025
  5. changed the title [-]Remove updateOptimisticReportNamesFromUpdates middleware[/-] [+][$250] Remove updateOptimisticReportNamesFromUpdates middleware[/+] on Dec 9, 2025
  6. melvin-bot commented on Dec 9, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Dec 9, 2025
  8. melvin-bot commented on Dec 9, 2025

    @melvin-bot

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

  9. 19 remaining items

  10. added
    Awaiting Payment
    on Jan 2, 2026
  11. changed the title [-][$250] Remove updateOptimisticReportNamesFromUpdates middleware[/-] [+][Due for payment 2026-01-09] [$250] Remove updateOptimisticReportNamesFromUpdates middleware[/+] on Jan 2, 2026
  12. removed
    Reviewing
    on Jan 2, 2026
  13. melvin-bot commented on Jan 2, 2026

    @melvin-bot

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

  14. melvin-bot commented on Jan 2, 2026

    @melvin-bot

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

    If no regressions arise, payment will be issued on 2026-01-09. 🎊

    For reference, here are some details about the assignees on this issue:

  15. melvin-bot commented on Jan 2, 2026

    @melvin-bot

    @QichenZhu / @truph01 @CortneyOfstad The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  16. CortneyOfstad commented on Jan 8, 2026

    @CortneyOfstad
    Contributor

    @QichenZhu — can you please complete the checklist before tomorrow as the assigned C+? This will help avoid any delays in issuing the payment summary. Thanks!

  17. added
    Daily
    and removed
    Weekly
    on Jan 8, 2026
  18. QichenZhu commented on Jan 9, 2026

    @QichenZhu
    Contributor

    @CortneyOfstad, thanks for the reminder. I don't think we need a BugZero checklist here since this is not a bug or a new feature. We just removed some unused code.

  19. CortneyOfstad commented on Jan 9, 2026

    @CortneyOfstad
    Contributor

    @QichenZhu the Upwork job offer unfortunately expired yesterday, so I had to create a new one here. Please let me know once you accept and i'll get that paid ASAP!

  20. QichenZhu commented on Jan 9, 2026

    @QichenZhu
    Contributor

    @CortneyOfstad thanks! Can I be paid via NewDot since this was assigned to me after my eligibility date?

  21. CortneyOfstad commented on Jan 9, 2026

    @CortneyOfstad
    Contributor

    Payment Summary

    @truph01 — paid $250 via Upwork
    @QichenZhu — to be paid $250 via NewDot

    Regression Test

    Not needed per comment here

  22. twisterdotcom commented on Jan 10, 2026

    @twisterdotcom
    Contributor

    @QichenZhu has submitted payment for this report on ND here.

    SO: https://stackoverflowteams.com/c/expensify/questions/7582

    Zapier Logs Run ID: 00040eee-0b44-a260-e7e6-c89141a94224
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

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions