Skip to content

Project selector in user edit modal does not refetch data on open #6433

@ironAiken2

Description

@ironAiken2

Project selector in user edit modal does not refetch data on open

Problem: ProjectSelect uses fetchPolicy: 'store-and-network' which returns cached data immediately. No mechanism to trigger fresh fetch when modal opens.

Root Cause: ProjectSelect.tsx:74useLazyLoadQuery with store-and-network policy. The component has no awareness of modal open/close state.

Affected Files:

  • react/src/components/ProjectSelect.tsx (lines 42-76)
  • react/src/components/UserSettingModal.tsx (lines 601-628)
  • react/src/components/UpdateUsersModal.tsx (lines 209-239)

Fix: Add fetchKey prop to ProjectSelect that changes when modal opens (using the existing deferredOpen pattern from UserSettingModal). This triggers Relay to refetch.

JIRA Issue: FR-2475

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions