-
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 #52345][$250] Scan - "Delete" and "Replace" options are displayed for an admin which causes an error #50113
Comments
Triggered auto assignment to @OfstadC ( |
@OfstadC 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-collect - Release 1 |
Edited by proposal-police: This proposal was edited at 2024-10-02 20:36:01 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Scan - "Delete" and "Replace" options are displayed for an admin which causes an error What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)Result |
ProposalPlease re-state the problem that we are trying to solve in this issue.The ‘Delete’ and ‘Replace’ options are displayed, but when ‘Delete’ is executed, an error occurs and when ‘Replace’ is executed, the receipt is replaced What is the root cause of that problem?In Lines 3098 to 3106 in 7992d21
If user is admin or manager, this function returns What changes do you think we should make in order to solve the problem?Remove Lines 3098 to 3106 in 7992d21
What alternative solutions did you explore? (Optional)NA |
Dupe of #47242 |
Moving my proposal from here #47242 (comment) ProposalPlease re-state the problem that we are trying to solve in this issue."Delete" and "Replace" options are displayed for an admin which causes an error What is the root cause of that problem?We are allowing Admin to edit receipt here Line 2934 in 7481b6e
What changes do you think we should make in order to solve the problem?We can remove Line 2934 in 7481b6e
What alternative solutions did you explore? (Optional)In case we only want to allow requestor to delete and replace the reciept than we can remove both options |
Job added to Upwork: https://www.upwork.com/jobs/~021843656533685450338 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Nodebrute @abzokhattab @daledah are you still able to reproduce? |
@Ollyws I can no longer reproduce the bug. Screen.Recording.2024-10-17.at.17.17.18.mov |
Friendly bump @Ollyws 😃 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Apologies for the delay, looking into this... |
I think as @Nodebrute did post their proposal first in the dupe issue #47242 (comment) it's fair that we go with that. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @tgolen, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I think those actions are there intentionally, and that the idea was always that an admin should be able to do those things. So, if there is an error happening, I think we should dig into those errors and fix them, rather than removing the functionality. @JmillsExpensify does this ring a bell for you and am I remembering this correctly? |
@lanitochka17 I confirmed that the frontend functionality is correct. Can you please update this issue to only focus on fixing the errors that happen? If this needs to be handled internally, that's fine, but I'd like to get some more information for this such as the logs for the delete/replace requests that have the errors. @OfstadC If you're able to reproduce this, could you please try to get the |
Bump @lanitochka17 @OfstadC |
Sorry @tgolen ! Was OoO - looking now 😃 |
@tgolen I was able to reproduce today
|
Awesome! Here are the logs for that request. It looks like that error is a very old error (at least 7 years old). So, it looks like in order for us to allow that operation, we need to make an update to Auth. Can you please go here and open up a new issue using the "Open an internal issue for a backend fix" template with all the relevant info? Then it will get assigned to an engineer to fix. |
Discussion in linked GH |
Jules is assigned to E/E issue 😃 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.43-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: https://expensify.testrail.io/index.php?/tests/view/5035807
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Prerequisite
Create a workspace and invite an employee to the workspace
Login as an owner and employee
Expected Result:
The workspace admin cannot edit the receipt file so there should not be "Delete" and "Replace" options
Actual Result:
The ‘Delete’ and ‘Replace’ options are displayed, but when ‘Delete’ is executed, an error occurs and when ‘Replace’ is executed, the receipt is replaced
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6622555_1727899943377.RPReplay_Final1727899518.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OfstadCThe text was updated successfully, but these errors were encountered: