Skip to content

[$250] [Due for payment 2025-04-25] Pass transactionID to OpenReport to allow creating transaction threads for historical reports #59863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
marcaaron opened this issue Apr 9, 2025 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors NewFeature Something to build that is a new item.

Comments

@marcaaron
Copy link
Contributor

marcaaron commented Apr 9, 2025

App companion to https://github.com/Expensify/Expensify/issues/483023

Let's update the Reports page in NewDot to support unreported expenses, whether or not those unreported expenses have been added to the selfDM. This will allow us to support all historical unreported expenses that existed prior to the selfDM.

Unreported expenses outside the selfDM have no parentReportAction or parentReportID. In order to support them we will need at minimum to:

Update the Search command to return these expenses in any search query that should be returning unreported expenses
Support displaying these expenses on the Reports page
Update the OpenReport command to be able to display these expenses when clicked on from the Reports page by creating a transaction thread and parent report action on the selfDM

There is a draft PR that was closed here that can be used as a guide. We effectively need to cover this situation:

  • An unreported transaction exists but has no transaction thread associated with it.
  • We will create the transaction thread and the money request report action by passing a transactionID and a moneyRequestPreviewReportActionID param.
  • The backend will create these and return then.
  • The frontend must create the optimistic versions and populate the Onyx data so they load right away before the API finishes.
Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021915810134956511772
  • Upwork Job ID: 1915810134956511772
  • Last Price Increase: 2025-04-25
Issue OwnerCurrent Issue Owner: @lschurr
@marcaaron marcaaron added Daily KSv2 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. labels Apr 9, 2025
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 9, 2025
@marcaaron marcaaron self-assigned this Apr 9, 2025
Copy link

melvin-bot bot commented Apr 9, 2025

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

Copy link

melvin-bot bot commented Apr 9, 2025

Triggered auto assignment to @lschurr (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Apr 9, 2025
Copy link

melvin-bot bot commented Apr 9, 2025

⚠️ It looks like this issue is labelled as a New Feature but not tied to any GitHub Project. Keep in mind that all new features should be tied to GitHub Projects in order to properly track external CAP software time ⚠️

Copy link

melvin-bot bot commented Apr 9, 2025

Triggered auto assignment to Design team member for new feature review - @dubielzyk-expensify (NewFeature)

@marcaaron marcaaron removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Apr 9, 2025
@marcaaron marcaaron added the Daily KSv2 label Apr 9, 2025
@marcaaron
Copy link
Contributor Author

Just a heads up that there are some backend implementation issues that testing for this is blocked on, but it can be worked on now.

@nkdengineer
Copy link
Contributor

An unreported transaction exists but has no transaction thread associated with it.
We will create the transaction thread and the money request report action by passing a transactionID and a moneyRequestPreviewReportActionID param.
The backend will create these and return then.
The front end must create the optimistic versions and populate the Onyx data so they load right away before the API finishes.

@marcaaron I'd like to work on this. Since the detailed steps are outlined in the OP, and we also have the draft here, do I still need to post a proposal?

@marcaaron
Copy link
Contributor Author

Hey @nkdengineer I assigned some people internally before seeing this. Look forward to working with you again next time!

@ikevin127
Copy link
Contributor

♻ Will start working on opening a draft PR today.

@ikevin127
Copy link
Contributor

@marcaaron Draft PR #60077 is ready for a preliminary review from you. I detailed the Explanation of Change in the PR description.

Additionally, could you provide some testing steps to verify whether the PR does what it's supposed to do ?

I wasn't able to figure out how to see unreported expenses in ND Reports (search) page and see what happens when clicked on one on current staging / vs the draft PR.

@marcaaron
Copy link
Contributor Author

Checking it out right now. I'll do the testing locally to confirm that it all works. We will still need to wait for a BE change (internal gh) to get deployed before merging, but the changes should be on staging soon.

@marcaaron
Copy link
Contributor Author

Alright the last BE PR is on staging now heading for production. So, we should be able to test the app PR once that happens.

@marcaaron
Copy link
Contributor Author

though actually, we can also test against the staging server. I probably have some historical expenses I can use that don't have transaction threads. and that should be enough, but we'll hold the App PR until this (internal link) hits prod.

@marcaaron
Copy link
Contributor Author

That PR is on production now so I will proceed with testing and merge!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 Weekly KSv2 labels Apr 16, 2025
@melvin-bot melvin-bot bot changed the title Pass transactionID to OpenReport to allow creating transaction threads for historical reports [Due for payment 2025-04-25] Pass transactionID to OpenReport to allow creating transaction threads for historical reports Apr 18, 2025
Copy link

melvin-bot bot commented Apr 18, 2025

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 18, 2025
Copy link

melvin-bot bot commented Apr 18, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.29-10 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 2025-04-25. 🎊

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

  • @ikevin127 requires payment (Needs manual offer from BZ)
  • @rayane-d requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Apr 18, 2025

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@ikevin127 / @rayane-d] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@lschurr] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@ikevin127
Copy link
Contributor

  • @ikevin127 Please propose regression test steps to ensure the new feature will work correctly on production in further releases.

I don't think we need regression tests here due to difficulty of reproducing and testing unreported expenses, @marcaaron for confirmation on this.

@marcaaron
Copy link
Contributor Author

I agree and don't think it's practical to do regression tests on this. If customers experience issues with it we will find out and fix it.

@rayane-d
Copy link
Contributor

Kindly unassign me. The review was conducted internally.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 25, 2025
@lschurr lschurr added the External Added to denote the issue can be worked on by a contributor label Apr 25, 2025
Copy link

melvin-bot bot commented Apr 25, 2025

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

@melvin-bot melvin-bot bot changed the title [Due for payment 2025-04-25] Pass transactionID to OpenReport to allow creating transaction threads for historical reports [$250] [Due for payment 2025-04-25] Pass transactionID to OpenReport to allow creating transaction threads for historical reports Apr 25, 2025
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 25, 2025
Copy link

melvin-bot bot commented Apr 25, 2025

Current assignee @ikevin127 is eligible for the External assigner, not assigning anyone new.

@lschurr
Copy link
Contributor

lschurr commented Apr 25, 2025

Just adding External to get the job created in Upwork

@lschurr
Copy link
Contributor

lschurr commented Apr 25, 2025

@ikevin127
Copy link
Contributor

@lschurr Offer accepted, thank you!

@lschurr
Copy link
Contributor

lschurr commented Apr 25, 2025

Payment summary:

@lschurr lschurr closed this as completed Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors NewFeature Something to build that is a new item.
Projects
None yet
Development

No branches or pull requests

7 participants