Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2024-06-28] [$250] Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense #43279

Closed
6 tasks done
lanitochka17 opened this issue Jun 7, 2024 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 7, 2024

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:
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:

  1. Go to staging.new.expensify.com
  2. [User A] Submit expense to User B
  3. [User A] Go to transaction thread
  4. [User A] Go to 3-dot menu > Hold
  5. [User A] Leave the Hold RHP open
  6. [User B] Pay the expense
  7. [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?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6504952_1717762800154.bandicam_2024-06-07_20-15-53-640.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015aa1fc4dd1f5a60d
  • Upwork Job ID: 1800577247384003062
  • Last Price Increase: 2024-06-11
  • Automatic offers:
    • bernhardoj | Contributor | 102706048
Issue OwnerCurrent Issue Owner: @alexpensify
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 7, 2024
Copy link

melvin-bot bot commented 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
Copy link
Contributor

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.

errors: ErrorUtils.getMicroSecondOnyxError('iou.genericHoldExpenseFailureMessage'),

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,

genericHoldExpenseFailureMessage: 'Unexpected error while holding the expense. Please try again later.',

The genericHoldExpenseFailureMessage is located inside the iou.error object.

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

Update the error key to iou.error.genericHoldExpenseFailureMessage

@alexpensify
Copy link
Contributor

This one slipped my radar; I will test it tomorrow.

@alexpensify
Copy link
Contributor

I didn't get a generic error but I was able to save the Hold action.

2024-06-11_10-11-52

@alexpensify alexpensify added the External Added to denote the issue can be worked on by a contributor label Jun 11, 2024
@melvin-bot melvin-bot bot changed the title Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense [$250] Hold expenses - "iou.genericHoldExpenseFailureMessage" error when holding a paid expense Jun 11, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~015aa1fc4dd1f5a60d

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 11, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

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

@alexpensify
Copy link
Contributor

@parasharrajat can you please review if this proposal will fix the issue and flag when an expense can't be put on Hold? Thanks!

@parasharrajat
Copy link
Member

@bernhardoj's proposal looks good to me.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jun 12, 2024

Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 12, 2024
Copy link

melvin-bot bot commented Jun 12, 2024

📣 @bernhardoj 🎉 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 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jun 13, 2024
@bernhardoj
Copy link
Contributor

PR is ready

cc: @parasharrajat

@alexpensify
Copy link
Contributor

Update the PR is going through the review process.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 21, 2024
@melvin-bot melvin-bot bot 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 Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 21, 2024
Copy link

melvin-bot bot commented 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:

Copy link

melvin-bot bot commented 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] 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:

@parasharrajat
Copy link
Member

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

  1. [User A] Submit multiple expenses to User B
  2. [User A] Go to one of the transaction thread
  3. [User A] Press the 3-dot menu and choose Hold
  4. [User B] Pay the expense
  5. [User A] After the expense is paid on their end, enter a hold reason and save it
  6. [User A] Verify the unexpected error message is shown

Do you agree 👍 or 👎 ?

@Julesssss
Copy link
Contributor

Test steps are fine, but I don't think we need a full regression test for this simple text issue tbh.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 27, 2024
@alexpensify
Copy link
Contributor

Automation worked here, I'll work on the payment process tomorrow.

@alexpensify
Copy link
Contributor

alexpensify commented 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
Copy link
Member

Payment requested as per #43279 (comment)

@JmillsExpensify
Copy link

$250 approved for @parasharrajat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

6 participants