-
Notifications
You must be signed in to change notification settings - Fork 3k
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-20] [HOLD for payment 2024-06-18] [HOLD for payment 2024-06-13] send invoice-Unexpected error shown while sending invoice #43060
Comments
Triggered auto assignment to @puneetlath ( |
Triggered auto assignment to @roryabraham ( |
👋 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:
|
@roryabraham 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 |
discussed in slack to confirm this is a legit blocker, looks like the answer is probably yes |
The error is being thrown here. The problem here is that the front-end is not sending |
The reason neither So when we try to send the We may also have been able to avoid this at compile-time by leveraging type-fest's diff --git a/src/libs/API/parameters/SendInvoiceParams.ts b/src/libs/API/parameters/SendInvoiceParams.ts
index 55a82e3103..f8ba0647fb 100644
--- a/src/libs/API/parameters/SendInvoiceParams.ts
+++ b/src/libs/API/parameters/SendInvoiceParams.ts
@@ -1,20 +1,25 @@
-type SendInvoiceParams = {
- senderWorkspaceID: string;
- accountID: number;
- receiverEmail?: string;
- receiverInvoiceRoomID?: string;
- amount: number;
- currency: string;
- comment: string;
- merchant: string;
- date: string;
- category?: string;
- invoiceRoomReportID?: string;
- createdChatReportActionID: string;
- invoiceReportID: string;
- reportPreviewReportActionID: string;
- transactionID: string;
- transactionThreadReportID: string;
-};
+import type {RequireAtLeastOne} from 'type-fest';
+
+type SendInvoiceParams = RequireAtLeastOne<
+ {
+ senderWorkspaceID: string;
+ accountID: number;
+ receiverEmail?: string;
+ receiverInvoiceRoomID?: string;
+ amount: number;
+ currency: string;
+ comment: string;
+ merchant: string;
+ date: string;
+ category?: string;
+ invoiceRoomReportID?: string;
+ createdChatReportActionID: string;
+ invoiceReportID: string;
+ reportPreviewReportActionID: string;
+ transactionID: string;
+ transactionThreadReportID: string;
+ },
+ 'receiverEmail' | 'receiverInvoiceRoomID'
+>;
export default SendInvoiceParams; |
Confirmed that this is a front-end blocker, not a back-end blocker. |
@cristipaval pulling you in to help push this forward while I'm sleeping. If you can't get to it sooner, I'll pick this back up in the morning |
Hi, I'm Viktoryia from Callstack - expert contributor group - and I would like to work on this issue. |
I've investigated it a little bit more and found what has changed to cause this problem:
403_err1.mp4But regardless of this, I think it makes sense to: |
@roryabraham I've prepared a Draft PR with the changes you suggested, it fixes the error as well |
Confirmed it's fixed on staging. Checking off. |
Pulling in @mananjadhav for the C+ review payment |
Issue is no longer reproduced Screenrecorder-2024-06-06-16-19-29-763.mp4 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.79-11 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-13. 🎊 For reference, here are some details about the assignees on 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-11 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-18. 🎊 For reference, here are some details about the assignees on 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:
|
This should be paid out tomorrow. I am not sure why the date shows |
Payment summary:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-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-06-20. 🎊 For reference, here are some details about the assignees on 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:
|
$250 approved for @mananjadhav |
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: 1.4.79-2
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
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:
Pte-condition: login with account which has workspaces
EXPECTED RESULT
ACTUAL RESULT
Expected Result:
Unexpected error must not be shown while sending invoice.
Actual Result:
Unexpected error shown while sending invoice.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6501954_1717527623387.invoi.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @puneetlathThe text was updated successfully, but these errors were encountered: