Skip to content

Members - Error shows up after people admin changes member's office location #104896

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.20-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #104344
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Workspace Settings

Action Performed:

Precondition:

  • Create a Control workspace.
  • Invite User B to the workspace as people admin.
  • Enable commuterExclusionsArrangements beta.
  • Workspace has company address and another office location.
  • Perform the steps below as people admin:
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Members.
  3. Click on any member.
  4. Click Change office location.
  5. Select another location and save it.

Expected Result:

No error will show up after people admin changes member's office location.

Actual Result:

Error shows up after people admin changes member's office location.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7294611_1792776161672.3.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7294611

Activity

  1. applause-bot commented on Oct 23, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/7be575bd9d65be05f8ecc33847204acaad6d10acb32e540843149bd20827c7a9

  2. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 23, 2026
  3. melvin-bot commented on Oct 23, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #104344

  4. melvin-bot commented on Oct 23, 2026

    @melvin-bot

    @mjasikowski @nkdengineer you have been assigned to this deploy blocker because you reviewed the offending PR: #104344

  5. melvin-bot commented on Oct 23, 2026

    @melvin-bot

    @Gonals you have been assigned to this deploy blocker because you authored the offending PR: #104344

  6. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  7. melvin-bot commented on Oct 23, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  8. MelvinBot commented on Oct 23, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Causing PR: [Payment due @nkdengineer] Set user-level office arrangements by Gonals. I'm highly confident this PR introduced the flow. I'm moderately confident about the mechanism.

    Recommendation: demote and fix forward. The feature is behind the commuterExclusionsArrangements beta and isn't in production. Workspace admins aren't affected, and the failed change rolls back cleanly.

    Root cause: The App lets People Admins change office locations on purpose, and it sends the same request for every role. That request appears to fail only for People Admins. When it fails, the App rolls back and shows its generic error. This appears to be a backend/internal issue. A separate internal investigation is needed.

    Fix options (product decision):

    • Backend: Allow People Admins to run UpdateEmployeeOfficeLocation. This matches the App's existing People Admin permissions.
    • App: If office location should be admin-only, replace the canMemberWrite(MEMBERS) gates with an admin check. The gates are listed below.
    Investigation details (App SHA ae1ed18)

    Next Steps: Reply with @MelvinBot <your feedback> to refine this analysis.


    view run

  9. Gonals commented on Oct 26, 2026

    @Gonals
    Contributor

    Behind beta. Not a blocker

  10. Gonals commented on Oct 26, 2026

    @Gonals
    Contributor
  11. MelvinBot commented on Oct 26, 2026

    @MelvinBot
    Contributor

    Gonals, I can't confirm that. I don't have access to that repository in this run, so I couldn't read the PR.

    It should fix this issue if it lets People Admins run UpdateEmployeeOfficeLocation. The App sends the same request for every role, so no App change is needed.

    Also check whether it covers SetEmployeeWorkArrangement. The App gates it the same way, so People Admins may hit the same error there.

    To confirm, retest the issue steps as a People Admin on staging after the fix deploys.


    view run

  12. Gonals commented on Oct 26, 2026

    @Gonals
    Contributor

    Checked myself. Already merged and should fix this (which was a known issue). Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions