App icon indicating copy to clipboard operation
App copied to clipboard

[$500] IOU - After request deletion, no. of request is not updated in receiver end

Open lanitochka17 opened this issue 1 year ago • 6 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.38 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4289407https://expensify.testrail.io/index.php?/tests/view/4289407 Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:

Action Performed:

  1. Launch app
  2. Tap on a 1:1 report with user B
  3. In other device, login as user B
  4. Open 1:1 report with user A
  5. As user A, - Tap plus icon and request money ( create 3 money request)
  6. As user B- Note 3 money request received from user A
  7. As user A- After requesting money thrice, tap IOU to open IOU report page
  8. In IOU report page, delete the last request created
  9. As user B, in 1:1 page, note amount updated but number of request is not updated
  10. Tap IOU and note in IOU report page, only 2 request displayed
  11. Again navigate to 1:1 page and note 3 request shown

Expected Result:

After deleting request, amount is updated similarly number of request must also be updated in receiver end

Actual Result:

After deleting request, amount is updated but number of request is not updated in receiver end. For 2 request, it is shown 3 request in IOU preview

Workaround:

Unknown

Platforms:

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

  • [x] Android: Native
  • [x] Android: mWeb Chrome
  • [x] iOS: Native
  • [x] iOS: mWeb Safari
  • [x] MacOS: Chrome / Safari
  • [x] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

image (18)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cb9fb0c0a6256318
  • Upwork Job ID: 1755344895676690432
  • Last Price Increase: 2024-02-07

lanitochka17 avatar Feb 07 '24 21:02 lanitochka17

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

melvin-bot[bot] avatar Feb 07 '24 21:02 melvin-bot[bot]

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

melvin-bot[bot] avatar Feb 07 '24 21:02 melvin-bot[bot]

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

melvin-bot[bot] avatar Feb 07 '24 21:02 melvin-bot[bot]

We think that this bug might be related to #vip-bills CC @davidcardoza

lanitochka17 avatar Feb 07 '24 21:02 lanitochka17

Proposal

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

After request deletion, no. of request is not updated in receiver end

What is the root cause of that problem?

Problem 1. BE is not pushing the updated childMoneyRequestCount of the report preview report action on request delete Problem 2. Memoization here doesn't consider childMoneyRequestCount https://github.com/Expensify/App/blob/f6ba751301d6a6f4e5faa092e615d49fb02d2746/src/pages/home/report/ReportActionItem.js#L856-L857

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

After BE change Add in the memoization

            prevProps.action.childMoneyRequestCount === nextProps.action.childMoneyRequestCount &&

What alternative solutions did you explore? (Optional)

FitseTLT avatar Feb 07 '24 21:02 FitseTLT

We think that this bug might be related to #vip-bills

Why?

davidcardoza avatar Feb 07 '24 22:02 davidcardoza

@lanitochka17 can you clarify further on why you think this may be related to VIP-Bills?

CortneyOfstad avatar Feb 12 '24 15:02 CortneyOfstad

@lanitochka17 bump ^^^ thanks!

CortneyOfstad avatar Feb 14 '24 15:02 CortneyOfstad

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

melvin-bot[bot] avatar Feb 14 '24 16:02 melvin-bot[bot]

@lanitochka17 can you clarify as to why you think this would fit under VIP-Bills/Split?

CortneyOfstad avatar Feb 16 '24 20:02 CortneyOfstad

@CortneyOfstad, @fedirjh Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Feb 20 '24 15:02 melvin-bot[bot]

@CortneyOfstad @fedirjh this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Feb 21 '24 15:02 melvin-bot[bot]

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

melvin-bot[bot] avatar Feb 21 '24 16:02 melvin-bot[bot]

@lanitochka17 bumping this comment. Can you please provide additional context by EOD? Thanks!

CortneyOfstad avatar Feb 21 '24 16:02 CortneyOfstad

Bump @lanitochka17

CortneyOfstad avatar Feb 22 '24 19:02 CortneyOfstad

Going to keep moving this forward, despite the lack of response, as we cannot sit on this any longer.

This appears to fall into #Vip-Split. Posted it in the room here.

CortneyOfstad avatar Feb 26 '24 14:02 CortneyOfstad

@fedirjh it looks like we have a proposal from @FitseTLT here (sorry for the delay in response). If you can provide any feedback by EOD today that will be great.

CortneyOfstad avatar Feb 26 '24 14:02 CortneyOfstad

I agree with @FitseTLT's proposal, this requires backend changes, it should update the childMoneyRequestCount . For the front-end, I am not sure if we are going to need these changes, it will depend on the backend changes as there are other fields that may need to be updated.

@CortneyOfstad I think this should go internal.

fedirjh avatar Feb 26 '24 20:02 fedirjh

Current assignee @fedirjh is eligible for the Internal assigner, not assigning anyone new.

melvin-bot[bot] avatar Feb 26 '24 20:02 melvin-bot[bot]

@FitseTLT I don't think this will require any frontend changes. As seen in this line, we check whether the action is updated or not:

https://github.com/Expensify/App/blob/f6ba751301d6a6f4e5faa092e615d49fb02d2746/src/pages/home/report/ReportActionItem.js#L844

fedirjh avatar Feb 26 '24 20:02 fedirjh

@fedirjh Yep this line was the one that confused me I think it can be removed (unnecessary) https://github.com/Expensify/App/blob/88a3ffe9440548d04c32bec2c889b8bb063a29b3/src/pages/home/report/ReportActionItem.js#L904

FitseTLT avatar Feb 26 '24 21:02 FitseTLT

@CortneyOfstad @fedirjh this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

melvin-bot[bot] avatar Feb 28 '24 15:02 melvin-bot[bot]

@fedirjh based on the comment here, are we good to move forward with @FitseTLT's proposal?

CortneyOfstad avatar Feb 28 '24 15:02 CortneyOfstad

based on the comment https://github.com/Expensify/App/issues/36084#issuecomment-1965259475, are we good to move forward with @FitseTLT's proposal?

@CortneyOfstad No, this issue should be resolved in the backend. I believe that the fix in the backend should suffice.

fedirjh avatar Feb 28 '24 16:02 fedirjh

Thank you for the clarification @fedirjh 👍

CortneyOfstad avatar Feb 28 '24 17:02 CortneyOfstad

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

melvin-bot[bot] avatar Feb 29 '24 20:02 melvin-bot[bot]

Hi @dylanexpensify! I am heading OoO and will be back March 11th, so reassigned to have someone keep this moving until I am back. At this stage, we're waiting for internal engineering to pick this up as it is a BE issue. Thanks!

CortneyOfstad avatar Feb 29 '24 20:02 CortneyOfstad

@CortneyOfstad, @fedirjh, @dylanexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Mar 04 '24 15:03 melvin-bot[bot]

Apologies, I've been OOO sick, but am reviewing today!

dylanexpensify avatar Mar 06 '24 10:03 dylanexpensify

@CortneyOfstad @fedirjh @dylanexpensify this issue is now 4 weeks old and preventing us from maintaining WAQ. This should now be your highest priority. Please post below what your plan is to get a PR in review ASAP. Thanks!

melvin-bot[bot] avatar Mar 06 '24 19:03 melvin-bot[bot]