-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-02-19] [$500] IOU -Deleting submitted report shows unexpected error with amount crossed out #34538
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0165e8908305facf78 |
Triggered auto assignment to @sakluger ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Deleting a submitted money request gives an error. What is the root cause of that problem?We are not hiding the delete button when the money request is submitted. We only hide it if it's approved or settled. App/src/components/MoneyRequestHeader.js Line 88 in 8e2fb67
What changes do you think we should make in order to solve the problem?We need to hide it if the money request is submitted. To know whether it's submitted or not, we can use the same check-in #32796, specifically: Lines 3815 to 3818 in 8e2fb67
We only check the submitted status ( We need to apply this check in both MoneyRequestHeader and in ReportUtils.canDeleteReportAction. Lines 1139 to 1141 in 8e2fb67
App/src/components/MoneyRequestHeader.js Lines 115 to 119 in 8e2fb67
|
@sakluger once submitted (but not approved yet), request should not be deletable? I believe so but just to confirm |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I'm checking on correct expected behavior in Slack: https://expensify.slack.com/archives/C02MW39LT9N/p1706052284329559 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
@s77rt reassigning, please take over as C+. If you don't have bandwidth, unassign yourself. Thanks |
It's not clear from the reproduction steps, but if Instant Submit is enabled on the workspace, then a submitter should be able to delete an expense on a processing report, but there should be no errors (currently we see the error |
@sakluger I think instant submit is only enabled on free policies. Asked for confirmation here https://expensify.slack.com/archives/C01GTK53T8Q/p1706122924561169 |
I'm not able to reproduce this due to billing issues (in olddot). I asked for help here https://expensify.slack.com/archives/C02NK2DQWUX/p1706122093870419. Regardless this is not a blocker. I agree with @bernhardoj. We should hide the delete money request button if the expense report is already submitted (for paid policies only). 🎀 👀 🎀 C+ reviewed PS: @bernhardoj There is a util function |
Triggered auto assignment to @Gonals, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@Gonals Please check the two linked slack threads above ^ Thanks! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
I agree with the proposal. I can test with paid policies if needed |
@bernhardoj I'm still seeing an error. Maybe you are viewing the optimistic onyx values? Screen.Recording.2024-02-01.at.11.48.24.PM.mov |
@s77rt ah, I think I know why now. If I were an admin of the collect workspace, then I could delete the submitted expense report. But if I were a member/employee, then I can't. The question is, do we want to disable the delete of submitted expenses for both admin and member? |
In this case we should disable the button only for members. We should match the BE behaviour. |
PR is ready cc: @s77rt |
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 1.4.39-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-02-19. 🎊 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:
|
Regression Test Proposal Requires a paid workspace e.g. collect workspace
|
Thanks @s77rt for completing the BZ checklist ahead of time! Everyone has been paid out. 🙇 |
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.25
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: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
User must not be shown option/allowed to delete submitted report & error should not be displayed with amount crossed out
Actual Result:
In employee WS, create manual request and submit it. User shown option/allowed to delete submitted report and deleted report shows unexpected error with amount crossed out
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6343590_1705353673385.rep.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: