-
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 2025-02-07] [$250] Users can't submit a report that contains no reimbursable expenses #55086
Comments
Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~021877786460553153940 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
@trjExpensify Your clue is accurate. |
@trjExpensify is gonna take our job away !!!!! |
Haha ❤️ |
ProposalPlease re-state the problem that we are trying to solve in this issue.Users can't submit a report that contains no reimbursable expenses What is the root cause of that problem?Button only show in case of reimbursableSpend != 0 as mention by @trjExpensify. What changes do you think we should make in order to solve the problem?We need to make sure button is showing in case of reimbursableSpend is 0. For this we need to remove
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Users can't submit a report that contains no reimbursable expenses What is the root cause of that problem?As stated by @trjExpensify, we have this line that prevents the submit button from appearing if the expense is not reimbursable. What changes do you think we should make in order to solve the problem?We need to remove the conditions that block submission if the expense is not reimbursable. Particularly, we need to remove the condition here, here and here. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Adding a regression test for submitting a non reimbursable expense should suffice. What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.Users can't submit a report that contains no reimbursable expenses What is the root cause of that problem?We only check for
This causes the button to be hidden What changes do you think we should make in order to solve the problem?We need to update the condition such that it will not show only when the const shouldShowSubmitButton =
isOpenExpenseReport &&
(reimbursableSpend - nonReimbursableSpend) !== 0 && We need to update other places as well here and here What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2025-01-10 19:14:25 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Users can't submit a report that contains no reimbursable expenses What is the root cause of that problem?As stated by @trjExpensify, we have this line that prevents the submit button from appearing if the expense is not reimbursable. We should have checked for totalSpend instead of reimbursableSpend. What changes do you think we should make in order to solve the problem?We need to update the conditions that block submission if the expense is not reimbursable. Particularly, we need to update the condition here, here and here. The updated condition should be Note We should also check conditions for approvals too for the same problem. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Adding a regression test for submitting a non reimbursable expense should suffice. What alternative solutions did you explore? (Optional)N/A |
|
Ah, I see. If a scan fails, then the total spend would be 0 unless entered manually. Till its entered, we shouldn't show the submit button. Adding |
taking over c+ role https://expensify.slack.com/archives/C02NK2DQWUX/p1736539732521579?thread_ts=1736534208.861619&cid=C02NK2DQWUX @shubham1206agra's proposal makes sense to me a works as expected. 🎀 👀 🎀 |
Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
can you please list test steps for such cases @shubham1206agra |
@lakchote @ishpaul777 In my proposal i used |
Haha what?? @twilight2294 I think you used wrong notation here. I think what you meant to do is |
Current assignee @lakchote is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Yeah completing checklist right now. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.92-6 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 2025-02-07. 🎊 For reference, here are some details about the assignees on this issue:
|
@shubham1206agra / @ishpaul777 @trjExpensify @shubham1206agra / @ishpaul777 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:N/a Test:
Do we agree 👍 or 👎 |
Regression test request created. Payment summary as follows:
Confirming you're both paid via Upwork still? |
@trjExpensify For this issue, yes |
@trjExpensify, @lakchote, @shubham1206agra, @ishpaul777 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
yes still via upwork |
Great stuff! @ishpaul777 I've paid you, @shubham1206agra you need to accept the offer. |
@trjExpensify Offer accepted |
Paid, closing! |
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:
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @danielrvidal
Slack conversation (hyperlinked to channel name): #retain
Action Performed:
Submit
button on the report preview, in the report header, and on the search page.Submit
button is no longer visible on the report preview, report header or search page.Expected Result:
Users should be able to see the
Submit
button on an expense report that contains only non-reimbursable expenses, providing they aren't all pending transactions.Actual Result:
There's no
Submit
button on an expense report that contains only non-reimbursable expenses.Note: I think this line here is culprit. Perhaps it's also in a few other places where you see the submit button.
Workaround:
They can submit via OldDot.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
2025-01-10_18-28-51.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: