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-06-28] [$250] Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense #43279
Version Number: Reproducible in staging?: Reproducible in production?: If this was caught during regression testing, add the test name, ID and link from TestRail:https://expensify.testrail.io/index.php?/tests/view/4605660 Issue reported by: Applause - Internal Team
Action Performed:
Go to staging.new.expensify.com
[User A] Submit expense to User B
[User A] Go to transaction thread
[User A] Go to 3-dot menu > Hold
[User A] Leave the Hold RHP open
[User B] Pay the expense
[User A] After the expense is paid on their end, enter a reason and save it
Expected Result:
User A will receive an error that the expense cannot be held/edited
Actual Result:
User A receives the error "iou.genericHoldExpenseFailureMessage"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense[/-][+][$250] Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense[/+]on Jun 11, 2024
changed the title [-][$250] Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense[/-][+][HOLD for payment 2024-06-28] [$250] Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense[/+]on Jun 21, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.85-7 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:
[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:
[@parasharrajat] 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:
[@parasharrajat] 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:
[@parasharrajat] Determine if we should create a regression test for this bug.
[@parasharrajat] 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.
[@alexpensify] 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:
[@parasharrajat] 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: NA
[@parasharrajat] Determine if we should create a regression test for this bug. yes
[@parasharrajat] 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.
Regression Test Steps
[User A] Submit multiple expenses to User B
[User A] Go to one of the transaction thread
[User A] Press the 3-dot menu and choose Hold
[User B] Pay the expense
[User A] After the expense is paid on their end, enter a hold reason and save it
[User A] Verify the unexpected error message is shown
Activity
melvin-bot commentedon Jun 7, 2024
Triggered auto assignment to @alexpensify (
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.bernhardoj commentedon Jun 7, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The error message key is shown instead of the text when hold message error is shown.
What is the root cause of that problem?
In the failure data of hold request, we set the error key to
iou.genericHoldExpenseFailureMessage.App/src/libs/actions/IOU.ts
Line 6791 in b94ccf3
However, this error message key doesn't exist on the translation file, so the error key is shown instead.
If we open the translation file,
App/src/languages/en.ts
Line 738 in b94ccf3
The
genericHoldExpenseFailureMessageis located inside theiou.errorobject.What changes do you think we should make in order to solve the problem?
Update the error key to
iou.error.genericHoldExpenseFailureMessagealexpensify commentedon Jun 10, 2024
This one slipped my radar; I will test it tomorrow.
alexpensify commentedon Jun 11, 2024
I didn't get a generic error but I was able to save the Hold action.
[-]Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense[/-][+][$250] Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense[/+]melvin-bot commentedon Jun 11, 2024
Job added to Upwork: https://www.upwork.com/jobs/~015aa1fc4dd1f5a60d
melvin-bot commentedon Jun 11, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)alexpensify commentedon Jun 11, 2024
@parasharrajat can you please review if this proposal will fix the issue and flag when an expense can't be put on Hold? Thanks!
13 remaining items
[-][$250] Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense[/-][+][HOLD for payment 2024-06-28] [$250] Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense[/+]melvin-bot commentedon Jun 21, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jun 21, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.85-7 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-06-28. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 21, 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:
parasharrajat commentedon Jun 22, 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:
Regression Test Steps
Do you agree 👍 or 👎 ?
Julesssss commentedon Jun 24, 2024
Test steps are fine, but I don't think we need a full regression test for this simple text issue tbh.
alexpensify commentedon Jun 27, 2024
Automation worked here, I'll work on the payment process tomorrow.
alexpensify commentedon Jun 28, 2024
Payouts due: 2024-06-28
Upwork job is here.
Status: @parasharrajat please submit a request in Chat. @bernhardoj has been paid in Upwork. I now need to create the regression test.
parasharrajat commentedon Jun 29, 2024
Payment requested as per #43279 (comment)
JmillsExpensify commentedon Jul 2, 2024
$250 approved for @parasharrajat