Open lanitochka17 opened 3 days ago
Triggered auto assignment to @mallenexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@mallenexpensify 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
We think that this bug might be related to #wave-control
Edited by proposal-police: This proposal was edited at 2024-10-07 19:47:40 UTC.
Hold and Delete option are available for expense in the deleted (archived) workspace
Here we set canHold to item.canHold
but when we delete workspace item.canHold
will still be true
https://github.com/Expensify/App/blob/fb4e24eca0905c8dec0c6dc69b4758aa66f2a791/src/components/Search/index.tsx#L84
We need to add new checks here for cases like where if workspace is deleted we don't show hold button. We can do something like this here
const isArchivedReport = ReportUtils.isArchivedRoomWithID(item.reportID)
const canHoldtransaction = !isArchivedReport && item.canHold
and then we can use this here canHold: canHoldtransaction
If we also want to hide delete button we can do the same for canDelete
. We should also look for other cases where we don't want to hold and delete button and fix that here too.
Alternatively, we can add !isArchivedReport
here
https://github.com/Expensify/App/blob/fb4e24eca0905c8dec0c6dc69b4758aa66f2a791/src/components/Search/SearchPageHeader.tsx#L182
And if we want to hide the delete button we can do the same for delete button
Hold and Delete option are available for expense in the deleted (archived) workspace
We might need BE support here as well. This will avoid current and future problems it could cause.
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Job added to Upwork: https://www.upwork.com/jobs/~021843452809268772596
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (External
)
@fedirjh are you able to reproduce? I wasn't (but I did a couple additional steps to add another workspace cuz I couldn't delete mine without another)
@mallenexpensify I was able to reproduce. The bug appears on the search page, not the expense page :
Thanks @fedirjh , added Help Wanted
, can you review the proposals above? Thx
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.39-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: N/A Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Hold and Delete option should not be available for expense in the deleted (archived) workspace
Actual Result:
Hold and Delete option are available for expense in the deleted (archived) workspace
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/25e9dd75-9a7c-4c9d-a509-c84e6bbc6357
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @fedirjh