Skip to content

fix(members): Ignore detail responses in member cache scan#115618

Closed
scttcper wants to merge 1 commit into
masterfrom
scttcper/fix-members-cache
Closed

fix(members): Ignore detail responses in member cache scan#115618
scttcper wants to merge 1 commit into
masterfrom
scttcper/fix-members-cache

Conversation

@scttcper
Copy link
Copy Markdown
Member

#115554 added a cache scan for member lookups, but it matched any /members/ or /users/ prefix. That meant cached detail responses like /organizations/:org/users/:id/ could get treated like member arrays and crash on .filter().

This keeps the scan to the list endpoints and skips non-array payloads, so the avatar fallback still reuses cached member lists without blowing up on detail cache entries.

fixes JAVASCRIPT-39P3

The member cache scan matched any /members/ or /users/ prefix, so cached detail responses could get treated like member arrays and blow up during render.

Limit the scan to the list endpoints and skip non-array payloads. Adds a regression test that seeds a cached user detail response first.

Co-Authored-By: Codex GPT-5 <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.52%

@scttcper
Copy link
Copy Markdown
Member Author

not the right solution see #115619

@scttcper scttcper closed this May 15, 2026
@scttcper scttcper deleted the scttcper/fix-members-cache branch May 15, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant