-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-10-29][$125] [Search v1.2] - Admin can delete employee's expenses in Search page #46762
Comments
Triggered auto assignment to @dylanexpensify ( |
We think that this bug might be related to #wave-control |
@dylanexpensify 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 2023-10-04T16:01:00Z. ProposalPlease re-state the problem that we are trying to solve in this issue.Admin can delete employee's expenses in Search page What is the root cause of that problem?We are not hiding the delete option from the admin here. This option should only be available to the action creator. We are not adding the check
What changes do you think we should make in order to solve the problem?We should check if the current user is action creator we can do something like this
What alternative solutions did you explore? (Optional)In case we only want to prevent the admin admin from deleting, we can add an |
📣 @MuaazArshad! 📣
|
Expensifybot Your proposal will be dismissed because you did not follow the proposal template. |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Delete option is available for admin in Search when Delete option is not present for admin in the transaction thread What is the root cause of that problem?Here is the condition to display delete option in report detail page: App/src/pages/ReportDetailsPage.tsx Line 197 in b8539ab
and here is the condition to display delete option in search page:
in there, canDelete is returned by BE and its value is true
What changes do you think we should make in order to solve the problem?Should make sure, if user is admin, use is able to delete expense by updating App/src/pages/ReportDetailsPage.tsx Line 197 in b8539ab
to
|
reviewing today! |
Job added to Upwork: https://www.upwork.com/jobs/~018f10851e4c993906 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
Made external |
@Pujan92, @dylanexpensify Huh... This is 4 days overdue. Who can take care of this? |
@dylanexpensify Can you plz help to decide the expected behavior? Are expenses can be deleted by admin from both places or we shouldn't allow delete operation to admin from both places? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Pujan92 @dylanexpensify bump! |
@Pujan92, @dylanexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@Pujan92 @dylanexpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@Pujan92, @dylanexpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
No updates yet, gonna try to work on it this week. |
PR in review |
Triggered auto assignment to @sonialiap ( |
Hey @sonialiap! I'm heading out on parental leave so reassigning this! TY! 🙇♂️ |
@Pujan92, @sonialiap, @luacmartins, @daledah Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@luacmartins @stitesExpensify I would like to just confirm whether we are eligible for any compensation here because based on the initial confirmation of requirements we proceeded and merged the PR. |
Upwork job price has been updated to $125 |
Sure, but I think it'd be 50% of the amount since it technically caused a regression. |
Agree @luacmartins, Thanks! @sonialiap can you plz post payment summary |
Payment SummaryBugZero Checklist (@sonialiap)
|
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:
|
@Pujan92 can you complete the checklist? |
@garrettmknight We don't need a checklist here as the expected behavior has been changed and PR for this is reverted, BE fix only required. |
$125 approved for @Pujan92 |
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.16-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
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
Delete option should not be available for admin in Search because Delete option is not present for admin in the transaction thread
Actual Result:
Delete option is available for admin in Search when Delete option is not present for admin in the transaction thread
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6560363_1722618441824.20240803_005930.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Pujan92The text was updated successfully, but these errors were encountered: