You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Awaiting payment 2023-12-21][$500] LHN - Green dot is shown after deleting the Money request #31730
Version Number: 1.4.2-0 Reproducible in staging?: Y Reproducible in production?: Y 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: Applause - Internal Team Slack conversation:
Action Performed:
Create a new workspace
Go to FAB > Request Money
Switch to Distance
FIll the start and finish > Next
Choose the newly created workspace > Request money
Notice the green dot will appear on LHN to indicate money to be settled
On the main chat in the workspace go to the IOU report
Send a message (Important step)
Delete the money requested.
Notice the green dot does not disappear and there is no settle button
Expected Result:
No green dot on the LHN if there is no settle button
Actual Result:
Green dot on the LHN when there is no settle button
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-] LHN - Green dot is shown after deleting the Money request[/-][+][$500] LHN - Green dot is shown after deleting the Money request[/+]on Nov 22, 2023
Please re-state the problem that we are trying to solve in this issue.
LHN - Green dot is shown after deleting the Money request
What is the root cause of that problem?
When we send a message in IOU report and then deleting the request. shouldDeleteIOUReport will be false. It caused hasOutstandingChildRequest is not updated to false. So the green dot still display
What changes do you think we should make in order to solve the problem?
We should reset hasOutstandingChildRequest to false when
In failure data, we also consider to reset hasOutstandingIOU and hasOutstandingChildRequest to true
We also need to update hasOutstandingIOU and hasOutstandingChildRequest to false in BE side in this case
More context in API: Deleting request API returns hasOutstandingIOU is true (It is incorrect) although we only use hasOutstandingChildRequest to display green dot. When go to that report, OpenReport API is called and return hasOutstandingChildRequest to true that make the green dot appear again.
What alternative solutions did you explore? (Optional)
We can do that by checking the amounts of the transactions
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
changed the title [-][$500] LHN - Green dot is shown after deleting the Money request[/-][+][Awaiting payment 2023-12-21][$500] LHN - Green dot is shown after deleting the Money request[/+]on Dec 20, 2023
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
[@aimane-chnaif] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@aimane-chnaif] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@aimane-chnaif] Determine if we should create a regression test for this bug.
[@aimane-chnaif] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@kadiealexander] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
The PR that introduced the bug has been identified. Link to the PR: N/A This case was missed when implement delete money request
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
Determine if we should create a regression test for this bug. N/A as caught by QA team
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Activity
[-] LHN - Green dot is shown after deleting the Money request[/-][+][$500] LHN - Green dot is shown after deleting the Money request[/+]melvin-bot commentedon Nov 22, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0141106cdac1f59107
melvin-bot commentedon Nov 22, 2023
Triggered auto assignment to @kadiealexander (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Nov 22, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Nov 22, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (
External)DylanDylann commentedon Nov 22, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN - Green dot is shown after deleting the Money request
What is the root cause of that problem?
When we send a message in IOU report and then deleting the request. shouldDeleteIOUReport will be false. It caused hasOutstandingChildRequest is not updated to false. So the green dot still display
What changes do you think we should make in order to solve the problem?
We should reset hasOutstandingChildRequest to false when
Detail:
IN here
App/src/libs/actions/IOU.js
Line 2135 in a273354
we should add this code
In failure data, we also consider to reset hasOutstandingIOU and hasOutstandingChildRequest to true
We also need to update hasOutstandingIOU and hasOutstandingChildRequest to false in BE side in this case
More context in API: Deleting request API returns hasOutstandingIOU is true (It is incorrect) although we only use hasOutstandingChildRequest to display green dot. When go to that report, OpenReport API is called and return hasOutstandingChildRequest to true that make the green dot appear again.
What alternative solutions did you explore? (Optional)
We can do that by checking the amounts of the transactions
kadiealexander commentedon Nov 28, 2023
@aimane-chnaif any thoughts on the proposal above?
11 remaining items
melvin-bot commentedon Dec 6, 2023
📣 @aimane-chnaif 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
melvin-bot commentedon Dec 6, 2023
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
[-][$500] LHN - Green dot is shown after deleting the Money request[/-][+][Awaiting payment 2023-12-21][$500] LHN - Green dot is shown after deleting the Money request[/+]kadiealexander commentedon Dec 20, 2023
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
kadiealexander commentedon Dec 20, 2023
Payouts due:
Upwork job is here.
aimane-chnaif commentedon Dec 20, 2023