Repository navigation
Closed
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2NewFeatureSomething to build that is a new item.
Description
Part of the Change Approver in NewDot (aka Take Control) project
Main issue: https://github.com/Expensify/Expensify/issues/385628
Doc section: https://docs.google.com/document/d/1XKNwFO_-hDU9IUa9f8oWYpwMy5BltHSYDdmdvJigi40/edit?tab=t.0#bookmark=id.a2yb2zqam06c
Feature Description
We’ll add a new “Change approver” secondary option for admins on all Processing reports. Selecting ‘Change approver’ will show all viable options for changing the report approver:
- We’ll add a link to the workspace settings on the “Change approver” page.
- If a report in a Processing state is assigned to a member other than the admin, we’ll reveal a ‘Bypass approvers’ option in the ‘Change approver’ menu. When this option is selected, and the user confirms, we’ll:
- Set the admin as the ‘manager’ of the report.
- Add a system message to the report indicating the report has been reassigned to the admin who uses the function.
- Allow the admin to approve, edit, or decline the report.
- If the admin approves the report after reassignment, it is considered fully approved without returning to the previous workflow.
Manual Test Steps
Bypass Approver flow
Prerequisites
- Create a Control plan workspace.
- Invite 3 non-admin members. A, B and C.
- Enable workflows.
- Assign one invited member as approver for the other two (not the owner).
- Log in with both the member accounts (hereafter referred to as A and B) one by one and submit an expense report to the workspace.
- Log in with the workspace Admin.
- Go to each submitted expense Report.
- Click
Morein the header button. - Verify that you see the
Change Approverbutton. - Click the
Change Approverbutton on the report from member A. - Verify that you are taken to the change approver screen and it shows
Bypass Approver. - Select Bypass Approver and press save.
- Verify that a new message stating
Changed the approver @youis posted on the report by you. - Verify that you now see a button to approve the report on the header and can approve the report.
[Offline] Bypass Approver flow
- Log in with both the member accounts (hereafter referred to as A and B) one by one and submit an expense report to the workspace.
- Log in with the workspace Admin.
- Go to each submitted expense Report.
- Click
Morein the header button. - Verify that you see the
Change Approverbutton. - Click the
Change Approverbutton on the report from member A. - Verify that you are taken to the change approver screen and it shows
Bypass Approver. - Go offline.
- Select Bypass Approver and press save.
- Verify that a new message stating
Changed the approver @youis posted on the report by you. - Verify that you now see a button to approve the report on the header and can approve the report.
- Go online.
- Verify that changes in step 6 remain
Automated Tests
Test Bypass approver on an expense report where the existing manager is not an admin. Verify that the approver for the member of expense report use remains the previous approver. Verify that the approver for this expense report is now changed to logged in user.
Issue Owner
Current Issue Owner: @garrettmknightMetadata
Metadata
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2NewFeatureSomething to build that is a new item.
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Jul 15, 2025
Triggered auto assignment to @adelekennedy (
NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.[-][Change Approvers] Add support to bypass approver on an expense report[/-][+][Change Approver] Add support to bypass approver on an expense report[/+]parasharrajat commentedon Jul 16, 2025
parasharrajat commentedon Jul 16, 2025
cc: @marcaaron
marcaaron commentedon Jul 16, 2025
Thanks! BE parts in review now!
parasharrajat commentedon Jul 17, 2025
I will also start on FE PR and have it in draft.
flaviadefaria commentedon Jul 22, 2025
@parasharrajat, any update on the incoming PR?
parasharrajat commentedon Jul 22, 2025
@flaviadefaria I think the backend PR is still in progress, so the FE PR is not that urgent. Technically, when the BE PR is merged, FE can be tested. I will create the FE PR as soon as possible, taking into account different priorities.
29 remaining items
melvin-bot commentedon Aug 28, 2025
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
melvin-bot commentedon Sep 4, 2025
Payment Summary
Upwork Job
BugZero Checklist (@garrettmknight)
parasharrajat commentedon Sep 5, 2025
I will be paid as part of project.
garrettmknight commentedon Sep 5, 2025
@shubham1206agra you getting paid through this project as well or do you need payment here?
shubham1206agra commentedon Sep 6, 2025
@garrettmknight I am also getting paid through this project
melvin-bot commentedon Sep 8, 2025
@garrettmknight Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
marcaaron commentedon Sep 9, 2025
Can we close this? I'm not entirely sure how project payments work. Is it once at the end?
shubham1206agra commentedon Sep 9, 2025
@marcaaron You can close