Skip to content

[Due for payment 2026-02-20] WS - Transfer owner Pannel displays in Blank #82085

Closed

Description

@mitarachim

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: v9.3.17-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/folder/13177080/test-cases/41237953
Email or phone of affected tester (no customers): lattelover1412+1102cc@gmail.com
Issue reported by: Applause Internal Team
Bug source: Regression TC Execution
Device used: win11/chrome
App Component: Workspace Settings

Action Performed:

  1. Open the link www.staging.new.expensify.com
  2. User logged in and created a workspace if there is none
  3. Navigate to members >> add a brand new members and set them as admin
  4. Log in as the new set Admin
  5. Navigate to members >> click on the Owner account
  6. Click "Transfer owner" button

Expected Result:

  • Panel should open with a list of eligible members.
  • CTA button (e.g., “Confirm Transfer”) should be visible and enabled.

Actual Result:

  • After clicking on Owner, the panel opens.
  • The panel and CTA button are displayed, but content is blank

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Image
Bug7074375_1770796975922.Recording__3391.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @twisterdotcom

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Feb 11, 2026
  2. melvin-bot commented on Feb 11, 2026

    @melvin-bot

    Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. melvin-bot commented on Feb 11, 2026

    @melvin-bot

    Triggered auto assignment to @carlosmiceli (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Feb 11, 2026

    @melvin-bot

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

  5. github-actions commented on Feb 11, 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.
  6. OSBotify commented on Feb 11, 2026

    @OSBotify
    Contributor

    Investigation Summary

    Classification: Frontend bug
    Causing PR: #81105 - "Refactor: isolate requestWorkspaceOwnerChange from Onyx.connect ONYXKEYS.COLLECTION.POLICY" by @shubham1206agra (High confidence)
    Related Issues: #66565 (original issue PR 81105 was fixing)

    Recommendation: REVERT

    The PR introduced a regression where the Transfer Owner panel displays blank content. The issue is reproducible on staging but not production, and it is a core workspace management feature that blocks proper workspace ownership transfer workflows.

    Labels: This is a Frontend bug. The DeployBlockerCash label should remain (App deploy is blocked). The DeployBlocker label should be removed since this is not a backend issue.

    Detailed Analysis

    Evidence:
    PR #81105 refactored requestWorkspaceOwnerChange to accept a Policy object instead of a policyID string. The PR removed the global allPolicies Onyx.connect cache and the deprecated getPolicy() helper function.

    In WorkspaceOwnerChangeWrapperPage.tsx, line 45 calls requestWorkspaceOwnerChange(policy, ...) inside a useEffect that only depends on [policyID] (line 47). However, the policy prop is loaded asynchronously via the withPolicy HOC.

    Verification:
    The affected file is /home/runner/_work/App/App/src/pages/workspace/members/WorkspaceOwnerChangeWrapperPage.tsx. PR #81105 modified this file, changing the function call from using policyID to using the policy object, but the useEffect dependency array was not updated to include policy.

    Root Cause:
    Race condition between component mount and policy data loading:

    1. User navigates to Transfer Owner flow - WorkspaceOwnerChangeWrapperPage mounts
    2. withPolicy HOC starts loading policy data via useOnyx (async)
    3. useEffect runs immediately because policyID is available
    4. At this moment, policy is still undefined (has not loaded yet)
    5. requestWorkspaceOwnerChange(policy, ...) is called with undefined
    6. Inside the function (line 758 of /home/runner/_work/App/App/src/libs/actions/Policy/Member.ts), the guard clause "if (!policy?.id) return;" exits early
    7. The API call to check ownership requirements is never made
    8. The panel renders but displayTexts remain empty strings (lines 34-36 of WorkspaceOwnerChangeCheck.tsx)
    9. User sees blank panel with no title, text, or button label

    Before PR #81105: The function used a global allPolicies cache populated by Onyx.connect. Even if called early, it could access policy data from the global cache.

    After PR #81105: The function requires a fully-loaded policy object. If called before policy loads, it exits without making the API call. The dependency array was not updated, causing the race condition.

  7. 5 remaining items

  8. self-assigned this
    on Feb 11, 2026
  9. m-natarajan commented on Feb 11, 2026

    @m-natarajan

    After clicking Transfer owner, Navigated to All set page and clicking Got It displays member detail page 9Previous owner)

    transfer.mp4
    Recording.2376.mp4
  10. lakchote commented on Feb 11, 2026

    @lakchote
    Contributor

    After clicking Transfer owner, Navigated to All set page and clicking Got It displays member detail page 9Previous owner)

    cc @shubham1206agra

  11. removed
    DeployBlockerCash
    on Feb 11, 2026
  12. lakchote commented on Feb 11, 2026

    @lakchote
    Contributor
  13. added
    Weekly
    Awaiting Payment
    and removed
    Hourly
    on Feb 13, 2026
  14. changed the title [-]WS - Transfer owner Pannel displays in Blank[/-] [+][Due for payment 2026-02-20] WS - Transfer owner Pannel displays in Blank[/+] on Feb 13, 2026
  15. melvin-bot commented on Feb 13, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  16. removed
    Reviewing
    on Feb 13, 2026
  17. melvin-bot commented on Feb 13, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.18-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-02-20. 🎊

  18. melvin-bot commented on Feb 13, 2026

    @melvin-bot

    @carlosmiceli / @lakchote @twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

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

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions