-
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-07-17] [$250] Receipt required over undefined
is shown in the violation message
#43939
Comments
Triggered auto assignment to @puneetlath ( |
Receipt required over undefined
is shown in the violation messageReceipt required over undefined
is shown in the violation message
Job added to Upwork: https://www.upwork.com/jobs/~01e9b622536ce232c5 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Receipt required over undefined is shown in the violation message What is the root cause of that problem?in the current case, the user submits a report without a receipt meaning the expected error should be Currently, when a user submits a report without a receipt, the expected error message should be "Receipt required." However, the translation logic solely checks if the Line 3140 in ec9ce7c
What changes do you think we should make in order to solve the problem?we need to change the param check to check the inner values of the receiptRequired: ({formattedLimit, category}: ViolationsReceiptRequiredParams) =>
`Receipt required${formattedLimit ?? category ? ` over${formattedLimit ? ` ${formattedLimit}` : ''}${category ? ` ${category} category limit` : ''}` : ''}`, this is compliant with the translation guide here: #33969 (comment) or alternatively, we can change the way this translation is called so that it passes a null value to the params object if both of the poc![]() |
I'm new here so not sure how the backend works yet but it seems to me this may be a backend issue. Onyx Pub/Sub sends the following when "Receipt Required Amount" is greater than 0:
but when it is 0, This is probably a backend issue with the common mistake of using something like |
reviewing |
@abzokhattab Thanks for the proposal. Your proposal looks good, but I think your code logic not cover all cases here #33969 (comment). Could you please update it? Try this in your browser console. const receiptRequired = (params) =>
`Receipt required${params.category ?? params.formattedLimit ? ` over ${params.formattedLimit ?? ''}${params.category ? ' category limit' : ''}` : ''}`;
console.log(receiptRequired({}))
console.log(receiptRequired({ formattedLimit: '$500' }))
console.log(receiptRequired({ category: 'travel' }))
console.log(receiptRequired({ formattedLimit: '$500', category: 'travel' })) |
We can move forward with @abzokhattab's proposal, It cover all cases here #33969 (comment) 🎀 👀 🎀 C+ reviewed |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @ahmedGaber93 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @abzokhattab 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
The PR is ready. |
Receipt required over undefined
is shown in the violation messageReceipt required over undefined
is shown in the violation message
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.5-13 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-17. 🎊 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:
|
Receipt required over undefined
is shown in the violation messageReceipt required over undefined
is shown in the violation message
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-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-22. 🎊 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:
|
Receipt required over undefined
is shown in the violation messageReceipt required over undefined
is shown in the violation message
@ahmedGaber93 friendly reminder about the checklist. |
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 ProposalPrecondition : As a admin set up expense violation as " Receipt required amount" to "0" in OldDot control policy
Do we agree 👍 or 👎 |
Regression test issue: https://github.com/Expensify/Expensify/issues/413396 All paid. Thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.85-0
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: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1718718827355089
Action Performed:
Precondition : As a admin set up expense violation as " Receipt required amount" to "0" in OldDot control policy
Expected Result:
Correct error message for the receipt required violation should appear
Actual Result:
"receipt required over undefined" message appears
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @puneetlathThe text was updated successfully, but these errors were encountered: