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-07-24] [HOLD for payment 2024-07-10] Send invoice - Hold option appears for invoice and error shows up when attempting to hold it #44450

Closed
6 tasks done
lanitochka17 opened this issue Jun 26, 2024 · 27 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 26, 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: 9.0.2-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Send invoice
  3. Enter amount > Next
  4. Send invoice to any user
  5. Go to invoice thread
  6. Click 3-dot menu
  7. Click Hold
  8. Enter a reason and save it

Expected Result:

Hold option should not appear for invoice if it is not supported (production behavior)

Actual Result:

Hold option appears for invoice and error shows up when attempting to hold the invoice

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

Bug6525058_1719394493471.20240626_173231.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @abekkala
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 26, 2024
Copy link

melvin-bot bot commented Jun 26, 2024

Triggered auto assignment to @carlosmiceli (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

@carlosmiceli FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@etCoderDysto
Copy link
Contributor

Proposal

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

Hold option appears for invoice and error shows up when attempting to hold it

What is the root cause of that problem?

We are not checking if the report is an invoice report before adding the hold menu item to threeDotsMenuItems here

if (!isOnHold && (isRequestIOU || canModifyStatus) && !isScanning) {
threeDotsMenuItems.push({
icon: Expensicons.Stopwatch,
text: translate('iou.hold'),
onSelected: () => changeMoneyRequestStatus(),
});

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

Check if the report is invoice here by adding the following code

const isInvoiceReport = ReportUtils.isInvoiceReport(moneyRequestReport);

Add && !isInvoiceReport to the condition below to prevent adding hold menu item to threeDotsMenuItems if the report is an invoice report

if (!isOnHold && (isRequestIOU || canModifyStatus) && !isScanning && !isInvoiceReport)

if (!isOnHold && (isRequestIOU || canModifyStatus) && !isScanning) {

What alternative solutions did you explore? (Optional)

@carlosmiceli
Copy link
Contributor

@etCoderDysto that looks promising, let's do it!

@etCoderDysto
Copy link
Contributor

etCoderDysto commented Jun 26, 2024

Great! I am raising ASAP.

@carlosmiceli carlosmiceli added Daily KSv2 DeployBlockerCash This issue or pull request should block deployment and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Jun 26, 2024
Copy link

melvin-bot bot commented Jun 26, 2024

Current assignee @carlosmiceli is eligible for the DeployBlockerCash assigner, not assigning anyone new.

@github-actions github-actions bot added Hourly KSv2 and removed Daily KSv2 labels Jun 26, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@yuwenmemon
Copy link
Contributor

@etCoderDysto Any update here?

@etCoderDysto
Copy link
Contributor

Pr is almost ready. It will be ready for review under 30 minutes.

@yuwenmemon
Copy link
Contributor

@etCoderDysto Can you confirm whether or not this came from the following PR? #43618

@etCoderDysto
Copy link
Contributor

@etCoderDysto Can you confirm whether or not this came from the following PR? #43618

I have checked with git blame and the issue seems to come from the PR.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review and removed Hourly KSv2 labels Jun 26, 2024
@etCoderDysto
Copy link
Contributor

@yuwenmemon @carlosmiceli
PR is ready for review

@carlosmiceli
Copy link
Contributor

@etCoderDysto Reviewing.

@carlosmiceli
Copy link
Contributor

@yuwenmemon Just approved/merged the PR.

@mountiny mountiny added Bug Something is broken. Auto assigns a BugZero manager. and removed DeployBlockerCash This issue or pull request should block deployment labels Jun 27, 2024
Copy link

melvin-bot bot commented Jun 27, 2024

Triggered auto assignment to @abekkala (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.

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

The PR has been CPed and QA has confirmed it worked so removing the DB label

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 3, 2024
@melvin-bot melvin-bot bot changed the title Send invoice - Hold option appears for invoice and error shows up when attempting to hold it [HOLD for payment 2024-07-10] Send invoice - Hold option appears for invoice and error shows up when attempting to hold it Jul 3, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

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

Copy link

melvin-bot bot commented Jul 3, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-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-07-10. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

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

@abekkala
Copy link
Contributor

abekkala commented Jul 8, 2024

PAYMENT SUMMARY FOR JUL 10

@etCoderDysto I'm having a hard time finding your profile in Upwork. Can you link it here and I can send your offer!
Thanks

@abekkala
Copy link
Contributor

abekkala commented Jul 8, 2024

updated summary above with your offer

@etCoderDysto
Copy link
Contributor

I have accepted the offer. Thank you!

@etCoderDysto
Copy link
Contributor

etCoderDysto commented Jul 9, 2024

Since we are removing three-dot menu in recent releases, I don't think we need to create a regression test step.

@abekkala
Copy link
Contributor

@etCoderDysto payment sent and contract ended - thank you! 🎉

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-10] Send invoice - Hold option appears for invoice and error shows up when attempting to hold it [HOLD for payment 2024-07-24] [HOLD for payment 2024-07-10] Send invoice - Hold option appears for invoice and error shows up when attempting to hold it Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-07-24. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

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

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. Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants