Skip to content

[Due for payment 2025-09-04] [Change Approver] Add support to bypass approver on an expense report #66193

Closed

Description

@marcaaron

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:

  1. We’ll add a link to the workspace settings on the “Change approver” page.
  2. 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:
  3. Set the admin as the ‘manager’ of the report.
  4. Add a system message to the report indicating the report has been reassigned to the admin who uses the function.
  5. Allow the admin to approve, edit, or decline the report.
  6. If the admin approves the report after reassignment, it is considered fully approved without returning to the previous workflow.
Image

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).
  1. 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.
  2. Log in with the workspace Admin.
  3. Go to each submitted expense Report.
  4. Click More in the header button.
  5. Verify that you see the Change Approver button.
  6. Click the Change Approver button on the report from member A.
  7. Verify that you are taken to the change approver screen and it shows Bypass Approver.
  8. Select Bypass Approver and press save.
  9. Verify that a new message stating Changed the approver @you is posted on the report by you.
  10. Verify that you now see a button to approve the report on the header and can approve the report.

[Offline] Bypass Approver flow

  1. 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.
  2. Log in with the workspace Admin.
  3. Go to each submitted expense Report.
  4. Click More in the header button.
  5. Verify that you see the Change Approver button.
  6. Click the Change Approver button on the report from member A.
  7. Verify that you are taken to the change approver screen and it shows Bypass Approver.
  8. Go offline.
  9. Select Bypass Approver and press save.
  10. Verify that a new message stating Changed the approver @you is posted on the report by you.
  11. Verify that you now see a button to approve the report on the header and can approve the report.
  12. Go online.
  13. 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 OwnerCurrent Issue Owner: @garrettmknight

Activity

  1. added
    NewFeature
    on Jul 15, 2025
  2. melvin-bot commented on Jul 15, 2025

    @melvin-bot

    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.

  3. changed the title [-][Change Approvers] Add support to bypass approver on an expense report[/-] [+][Change Approver] Add support to bypass approver on an expense report[/+] on Jul 15, 2025
  4. parasharrajat commented on Jul 16, 2025

    @parasharrajat
  5. parasharrajat commented on Jul 16, 2025

    @parasharrajat
    Member
  6. marcaaron commented on Jul 16, 2025

    @marcaaron
    ContributorAuthor

    Thanks! BE parts in review now!

  7. parasharrajat commented on Jul 17, 2025

    @parasharrajat
    Member

    I will also start on FE PR and have it in draft.

  8. moved this to Second Cohort - HIGH in [#whatsnext] #migrateon Jul 21, 2025
  9. flaviadefaria commented on Jul 22, 2025

    @flaviadefaria
    Contributor

    @parasharrajat, any update on the incoming PR?

  10. parasharrajat commented on Jul 22, 2025

    @parasharrajat
    Member

    @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.

  11. 29 remaining items

  12. melvin-bot commented on Aug 28, 2025

    @melvin-bot

    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:

  13. added
    Daily
    and removed
    Weekly
    on Sep 3, 2025
  14. melvin-bot commented on Sep 4, 2025

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@garrettmknight)

    • (if NewFeature) I have created a PR for any necessary HelpDot updates, or I confirmed no updates are necessary.
    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  15. parasharrajat commented on Sep 5, 2025

    @parasharrajat
    Member

    I will be paid as part of project.

  16. garrettmknight commented on Sep 5, 2025

    @garrettmknight
    Contributor

    @shubham1206agra you getting paid through this project as well or do you need payment here?

  17. shubham1206agra commented on Sep 6, 2025

    @shubham1206agra
    Contributor

    @garrettmknight I am also getting paid through this project

  18. melvin-bot commented on Sep 8, 2025

    @melvin-bot

    @garrettmknight Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  19. marcaaron commented on Sep 9, 2025

    @marcaaron
    ContributorAuthor

    Can we close this? I'm not entirely sure how project payments work. Is it once at the end?

  20. shubham1206agra commented on Sep 9, 2025

    @shubham1206agra
    Contributor

    @marcaaron You can close

  21. moved this from Second Cohort - HIGH to Done in [#whatsnext] #migrateon Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentDailyNewFeature

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions