-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] Workspace - Able to delete expense from archived workspace #48588
Comments
Triggered auto assignment to @zanyrenney ( |
@zanyrenney z 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 |
Edited by proposal-police: This proposal was edited at 2024-09-04 19:02:31 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - Able to delete expense from archived workspace What is the root cause of that problem?We don't check if it is archived in can add or delete transaction here Lines 1653 to 1657 in 6760f96
What changes do you think we should make in order to solve the problem?We should return false if the report is archived one
If we don't want to apply it to add transaction too we can apply the check (is not archived check) only for Note: we don't need to apply the check for shouldShowTaskDeleteButton because we already have it here App/src/pages/ReportDetailsPage.tsx Line 198 in 6760f96
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.We see delete report action even when the workspace is archived What is the root cause of that problem?
The actual bug here is that we see the delete action even when the workspace is archived this is because we do not hide the button when the workspace is archived: App/src/pages/ReportDetailsPage.tsx Line 201 in f040cf2
What changes do you think we should make in order to solve the problem?Update the condition to: const shouldShowDeleteButton = (shouldShowTaskDeleteButton || canDeleteRequest ) && !isArchivedRoom; Or update the What alternative solutions did you explore? (Optional) |
Ooh sorry I totally missed this one! |
Reviewing now. |
Adding |
Job added to Upwork: https://www.upwork.com/jobs/~021833087706130184523 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
hey @situchan please review the proposals above and let me know which one is best so we can move ahead here. Thank you! |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR ready |
@zanyrenney payment overdue |
@zanyrenney Can u pls issue the payment ?? Thx |
@zanyrenney this is super overdue for payment |
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.29-5
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
User must not be able to delete expense from archived workspace.
Actual Result:
Able to delete expense from archived workspace.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6593261_1725474007965.screenrecorder-2024-09-04-09-20-17-618_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @FitseTLTThe text was updated successfully, but these errors were encountered: