Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.99k stars 2.5k forks source link

[Held requests] When partial approving report, long delay creating new report for held expense(s) #41652

Open m-natarajan opened 1 week ago

m-natarajan commented 1 week ago

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: 1.4.70-2 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: @JmillsExpensify Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1714761240737509

Action Performed:

  1. Navigate to a report containing several expenses from someone else
  2. Click in the three dot menu in the expense
  3. Choose Hold, leave comment
  4. Confirm that the expense is on hold (e.g. Hold in the header)
  5. Navigate to the report, click Approve
  6. Choose Approve only…

Expected Result:

A new report with the held expense is created immediately in the front-end

Actual Result:

A new report with the held expense is created 10+ seconds later

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Screenshots/Videos

https://github.com/Expensify/App/assets/38435837/2da79e50-ce70-4195-affb-37d1ed617a04

Add any screenshot/video evidence

View all open jobs on GitHub

melvin-bot[bot] commented 1 week ago

Triggered auto assignment to @kevinksullivan (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.

JmillsExpensify commented 1 week ago

After speaking internally, we landed on the following solution:

We already employ this solution for IOU reports but we need to update expense reports to bring them in line and do the same thing.

JmillsExpensify commented 1 week ago

Screenshots for clarity

Report created optimistically with multiple currencies CleanShot 2024-05-06 at 06 32 31@2x

Report preview appropriately showing 2 expenses CleanShot 2024-05-06 at 06 31 47@2x

JmillsExpensify commented 1 week ago

Based on a Slack convo, I think that @war-in might be interested in this issue?

nkdengineer commented 1 week ago

@JmillsExpensify This bug is the same as https://github.com/Expensify/App/issues/39338. I think we should re-open the original issue.

war-in commented 1 week ago

Based on a Slack convo, I think that @war-in might be interested in this issue?

Yes, I would like to take this one

trjExpensify commented 1 week ago

@war-in are you good to prioritise putting up a PR for this one?

trjExpensify commented 1 week ago

@nkdengineer @robertjchen I'm going to assign you both to ultimately review the PR. 👍

war-in commented 1 week ago

Yes, however, I work part-time and will be available on Friday. Is that okay with you?

melvin-bot[bot] commented 5 days ago

@robertjchen, @kevinksullivan, @war-in, @nkdengineer Eep! 4 days overdue now. Issues have feelings too...

robertjchen commented 4 days ago

In progress/Discussions on Slack

war-in commented 1 day ago

Hi @robertjchen 👋 Contacting you there because I was removed from the #expensify-bugs channel 😢 My current progress looks like that

https://github.com/Expensify/App/assets/61014013/66621ff5-91dc-4535-ae86-cea62ac7bfb3

It's not finished yet but would be nice to get an endpoint which accepts the reportID parameter and does not create a new one. Do you have an ETA for it? Or maybe such an endpoint already exists?