Skip to content

[Due for payment 2026-01-28] [$250] [AA Hold] Optimistically copy submission/approval related report actions to the new report after partial approval #74575

Closed

Description

@cristipaval

Held on the backend changes that copies these report actions to the newly created report.

Part of the Hold for Advanced Approval project

Main issue: #56386
Doc section: Here
Project: #migrate

Feature Description

When an approver only approves the unheld transactions on a report, and the held transactions are optimistically moved to a new report, we want to copy the submission/approval-related report actions to the newly created report.

This requires the App to pass optimistic IDs for the copies when hitting the ApproveMoneyRequest command. The command has a parameter named optimisticReportActionCopyIDs, and the App has to pass a string value representing the serialization of the JSON object containing the original reportActionIDs as keys and their copy reportActionIDs as values.
For example, let's suppose that the user partially approves an expense report that has:

  • a SUBMITTED report action having 11111 as reportActionID
  • a RETRACTED report action having 22222 as reportActionID
  • a SUBMITTED report action having 33333 as reportActionID

When partially approving it, the App optimistically creates copies of these report actions in the newly created report, where the held expenses are moved.
Let's suppose the optimistic IDs of the report action copies are:

  • 99999 for the copy of the first SUBMITTED action
  • 88888 for the copy of the RETRACTED action
  • 77777 for the copy of the second SUBMITTED action

The optimistic IDs for these report action copies will be passed to the ApproveMoneyRequest as a serialized JSON with the following keys and values:

{
   "11111": "99999",
   "22222": "88888",
   "33333": "77777"
}

Manual Test Steps

Automated Tests

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021999074700388707831
  • Upwork Job ID: 1999074700388707831
  • Last Price Increase: 2025-12-11
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @dylanexpensify

Activity

  1. added theissue type on Nov 7, 2025
  2. changed the title [-][AA Hold] Optimistically copy submission/approval related report actions to the new report after partial approval Expensify[/-] [+][HOLD][AA Hold] Optimistically copy submission/approval related report actions to the new report after partial approval Expensify[/+] on Nov 7, 2025
  3. added
    Weekly
    and removed
    Daily
    on Nov 7, 2025
  4. changed the title [-][HOLD][AA Hold] Optimistically copy submission/approval related report actions to the new report after partial approval Expensify[/-] [+][HOLD][AA Hold] Optimistically copy submission/approval related report actions to the new report after partial approval[/+] on Nov 7, 2025
  5. cristipaval commented on Nov 17, 2025

    @cristipaval
    ContributorAuthor

    still on hold

  6. cristipaval commented on Nov 28, 2025

    @cristipaval
    ContributorAuthor

    Still on hold

  7. 49 remaining items

  8. cristipaval commented on Jan 27, 2026

    @cristipaval
    ContributorAuthor

    Haven't we paid already for the other issues?

  9. added
    Daily
    and removed
    Weekly
    on Jan 28, 2026
  10. dylanexpensify commented on Jan 29, 2026

    @dylanexpensify
    Contributor

    Payment summary:

    Contributor: @mohammadjafarinejad $250 via Upwork
    Contributor+: @parasharrajat $250 via NewDot
    Contributor+: @hungvu193 $250 via NewDot

    Please apply/request!

  11. dylanexpensify commented on Jan 29, 2026

    @dylanexpensify
    Contributor
  12. twisterdotcom commented on Jan 29, 2026

    @twisterdotcom
    Contributor

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

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

    Zapier Logs Run ID: 00040eee-7a18-a2e3-cd27-213e48f02c04
  13. mohammadjafarinejad commented on Jan 29, 2026

    @mohammadjafarinejad
    Contributor

    @dylanexpensify Applied, thanks!

  14. melvin-bot commented on Feb 3, 2026

    @melvin-bot

    @dylanexpensify Eep! 4 days overdue now. Issues have feelings too...

  15. parasharrajat commented on Feb 4, 2026

    @parasharrajat
    Member

    We can close this @dylanexpensify.

  16. parasharrajat commented on May 20, 2026

    @parasharrajat
    Member

    Payment requested as per #74575 (comment)

  17. garrettmknight commented on May 21, 2026

    @garrettmknight
    Contributor

    $250 approved for @parasharrajat

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

Metadata

Metadata

Labels

Awaiting PaymentDailyExternal

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions