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
[HOLD for payment 2024-01-17] [$500] LHN - Red dot does not appear in LHN conversation when IOU deletion error occurs #33535
Version Number: 1.4.16-3 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:
Open New Expensify app
Log in with any account
Navigate to any conversation with an user you have access to and Request $10
Disable the internet connection on the main testing device.
As the secondary user/device navigate to the conversation with the main user where the 10$ were just requested
As the Secondary user/device Pay the IOU via "Pay elsewhere"
On the main testing device while offline - cancel the 10$ IOU
Enable the internet connection on the main testing device
Navigate to a paid IOU
Expected Result:
The red dot should appear in the LHN conversation when the error is caused by an offline deletion of a paid IOU
Actual Result:
A red dot does not appear in the LHN conversation when the error is caused by a paid IOU being removed offline
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]LHN - Red dot does not appear in LHN conversation when IOU deletion error occurs[/-][+][$500] LHN - Red dot does not appear in LHN conversation when IOU deletion error occurs[/+]on Dec 23, 2023
Please re-state the problem that we are trying to solve in this issue.
A red dot does not appear in the LHN conversation when the error is caused by a paid IOU being removed offline
What is the root cause of that problem?
We're not setting the error message to the report preview action in Onyx in failureData when deleting money request. We did it when creating the money request here so it works fine in that case.
What changes do you think we should make in order to solve the problem?
Set the error message to the report preview action in Onyx in failureData when deleting money request, by updating this to:
Currently even for other money request-related errors (like when creating money request fails), if we want to clear error by clicking "X", we have to clear errors individually in the report preview action and the IOU report. This will be the same for the delete money request error here.
But if we want clearing by "X" at 1 place to clear in both places, we can do that as well (for example by updating clearReportActionErrors), because they'd share the same error key, just that they are in 2 different report actions.
What alternative solutions did you explore? (Optional)
Consider fixing the same for editing money request error and other types of money request-related operations.
While testing I see there's sometimes an issue where if we reload the IOU report, the IOU report action disappears but the error in LHN still show. This is existing issue but seems out of scope of this issue but we might want to log and fix it.
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
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:
[@shubham1206agra] The PR that introduced the bug has been identified. Link to the PR:
[@shubham1206agra] 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:
[@shubham1206agra] 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:
[@shubham1206agra] Determine if we should create a regression test for this bug.
[@shubham1206agra] 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.
[@Christinadobrzyn] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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:
[@shubham1206agra] 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: Not required
[@shubham1206agra] Determine if we should create a regression test for this bug. No
[@shubham1206agra] 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.
[@Christinadobrzyn] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
[-]LHN - Red dot does not appear in LHN conversation when IOU deletion error occurs[/-][+][$500] LHN - Red dot does not appear in LHN conversation when IOU deletion error occurs[/+]melvin-bot commentedon Dec 23, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01c5cf5023e3aab261
melvin-bot commentedon Dec 23, 2023
Triggered auto assignment to @Christinadobrzyn (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 23, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 23, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (
External)tienifr commentedon Dec 23, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
A red dot does not appear in the LHN conversation when the error is caused by a paid IOU being removed offline
What is the root cause of that problem?
We're not setting the error message to the report preview action in Onyx in
failureDatawhen deleting money request. We did it when creating the money request here so it works fine in that case.What changes do you think we should make in order to solve the problem?
Set the error message to the report preview action in Onyx in
failureDatawhen deleting money request, by updating this to:Currently even for other money request-related errors (like when creating money request fails), if we want to clear error by clicking "X", we have to clear errors individually in the report preview action and the IOU report. This will be the same for the delete money request error here.
But if we want clearing by "X" at 1 place to clear in both places, we can do that as well (for example by updating
clearReportActionErrors), because they'd share the same error key, just that they are in 2 different report actions.What alternative solutions did you explore? (Optional)
Consider fixing the same for editing money request error and other types of money request-related operations.
While testing I see there's sometimes an issue where if we reload the IOU report, the IOU report action disappears but the error in LHN still show. This is existing issue but seems out of scope of this issue but we might want to log and fix it.
melvin-bot commentedon Dec 26, 2023
@Christinadobrzyn, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
shubham1206agra commentedon Dec 26, 2023
@tienifr Your proposal doesn't seem right in this case. Your RCA is correct but solution seems wrong
23 remaining items
melvin-bot commentedon Jan 10, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-4 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 2024-01-17. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jan 10, 2024
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:
robertjchen commentedon Jan 19, 2024
Awaiting completion of BZ checklist 🙏
shubham1206agra commentedon Jan 23, 2024
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:
Christinadobrzyn commentedon Jan 23, 2024
Sorry for the delay- paying this out.
Payouts due:
Issue Reporter: NA
Contributor: $500 @tienifr (paid in Upwork)
Contributor+: $500 @shubham1206agra (paid in Upwork)
Eligible for 50% #urgency bonus? NA
Upwork job is here.
@shubham1206agra can you accept our offer in Upwork and I'll pay you? Thanks!
shubham1206agra commentedon Jan 23, 2024
Accepted
Christinadobrzyn commentedon Jan 26, 2024
Awesome! paid in Upwork based on this payment summary - #33535 (comment)
Closing this out as complete! Thanks everyone!