-
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-08-09] [$250] Invoice - There is "Delete expense" option in the invoice paid system message #45632
Comments
Triggered auto assignment to @CortneyOfstad ( |
We think this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Invoice - There is "Delete expense" option in the invoice paid system message What is the root cause of that problem?As the Lines 1632 to 1635 in 7ba66a1
which will make the report action to be deleteable What changes do you think we should make in order to solve the problem?we should disallow delete menu for all Lines 1624 to 1628 in 7ba66a1
to
We can also include other We can narrow down the logic by applying it to pay actions of only invoice reports What alternative solutions did you explore? (Optional)We can change Line 1635 in 7ba66a1
to
or
alternatively change Line 1632 in 7ba66a1
to
|
ProposalPlease re-state the problem that we are trying to solve in this issue.There is an option to delete expense on a paid system message on an invoice report. What is the root cause of that problem?The option to delete will show if Lines 1616 to 1637 in f392cd3
For money request action, if the money request action belongs to a money request report (IOU/expense), then it will check using In our case, it's not either an IOU/expense report, but an invoice report, so What changes do you think we should make in order to solve the problem?We can simplify the condition by following the condition from the details page as shown below: App/src/pages/ReportDetailsPage.tsx Line 195 in f392cd3
Lines 1631 to 1636 in f392cd3
to
we actually don't need isDeletedAction because once we delete an aciont, we can't interact with it anymore, even while offline, but I'm gonna leave that |
Job added to Upwork: https://www.upwork.com/jobs/~01a731bc49d6a020e0 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
@jayeshmangwani we have a couple of proposals above when you have a chance — thank you! |
@FitseTLT I see you are suggesting 3-4 alternate changes. Can you summarize the best condition to use to avoid displaying the 'Delete expense' option on the system message?`
I think any of the above four options will solve this bug, right? If yes, which one do you think is best to add? |
@bernhardoj Can you please break down for us how this issue will be solved if we use the same condition from the details page? I see you are suggesting removing the checks for Lastly, do we need to add an isSelfDM check here? I am not sure if the invoice will be for the self DM. |
@jayeshmangwani yes all are working solutions but if you need the best summarized solution here it is: Lines 1623 to 1626 in b8b99d0
So we can change the above to
Alternatively if we want to modify the current logic we can change Lines 1634 to 1635 in b8b99d0
to
but of course we can also early return false here if it is invoice report as we don't need |
The money request action opens the transaction thread and to delete it, we need to delete it from the details page, so it makes sense to use the same condition for both details and money request action. If you compare the condition, they look similar, Lines 1628 to 1634 in ccf9591
App/src/pages/ReportDetailsPage.tsx Line 196 in ccf9591
but the canDeleteReportAction is not really good. If
canAddOrDeleteTransactions already contains the condition for isMoneyRequestReport which will returns false if it's not a money request report compared to the current logic which will return true. If it's an empty object, then isMoneyRequestReport will be false. Lines 1589 to 1592 in ccf9591
We need it for the self DM track expense. |
Triggered auto assignment to @grgia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
No update on the PR |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.15-9 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-08-09. 🎊 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:
|
@FitseTLT you have been paid! @jayeshmangwani can you complete the checklist at your earliest convenience? |
Payment Summary@FitseTLT — paid $250 via Upwork |
Regression Test Proposal
Do we agree 👍 or 👎 |
@CortneyOfstad Apologies for the delay; I've completed the checklist now. |
No worries thank you! Payment summary is linked here! Test rail regression GH linked above, so closing! |
Requested on ND as per #45632 (comment) |
$250 approved for @jayeshmangwani |
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.7-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4728016
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Precondition:
Expected Result:
There should be no "Delete expense" option in the invoice paid system message.
Actual Result:
There is "Delete expense" option in the invoice paid system message. The invoice cannot be deleted.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6544144_1721146172425.20240717_000621.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @CortneyOfstadThe text was updated successfully, but these errors were encountered: