Skip to content

perf(platform): members search or page endpoint, passkeys in admin only #5155

Closed

Description

@tale-code-bot

Split from #4708 (item 3 of 7), as triaged on TALE-117.

What the read does now

At feature-train 9173785 (paths under services/platform/):

  • listByOrganization (backend/domains/members/service.ts:125-167) returns every member of the organization, with no LIMIT and ORDER BY m."createdAt".
  • Each member row carries a correlated (SELECT count(*) FROM "passkey" p WHERE p."userId" = m."userId") (:146).
  • It is served by GET /api/app/members/ (backend/domains/members/routes.ts:72-76) and read by useMembers (app/features/settings/organization/hooks/queries.ts:6-16).
  • Every member's browser loads the whole list for two consumers:
    • the task actor directory, useActorDirectory (app/features/tasks/hooks/use-actor-directory.ts:107). It is mounted per task card, in the task modal, and through TaskActorDirectoryProvider and useAssignableActors.
    • the inbox, useInboxList (app/features/conversations/hooks/use-inbox-list.ts:103).

What to do

  • Add a search or page endpoint for members. The actor directory and the inbox use it to resolve the members they show, instead of loading the whole list.
  • Count passkeys only in the admin members view that shows them.

Done means:

  • those screens no longer read every member;
  • the passkey count is read only where it is shown;
  • tests cover the endpoint and both consumers.

Activity

  1. added
    agent-ready
    on Oct 30, 2026
  2. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    CollaboratorAuthor

    Split while working this issue on TALE-251. The rest continues in #5195.

    The change for this issue is on branch perf/members-search-endpoint, head 830db6b2a81317abfbf04fba355e75571f6e6efd, handed to review for feature-train:

    • GET /api/app/members/lookup (MEMBER-R11) looks members up by user id or @handle.
    • The task actor directory and the inbox look up only the people they show.
    • The member list no longer counts passkeys; the admin's member dialog reads them for the one member it opens.

    #5195 covers what is left. The pickers, the mention autocomplete and the board's assignee filter still read every member once they are opened, and so do the screens it names; it adds a server-side member search for them.

  3. added a commit that references this issue on Oct 31, 2026
    b4cb58b
  4. added 2 commits that reference this issue on Oct 31, 2026
    524f60d
    a84c141
  5. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    CollaboratorAuthor

    Landed on release/0.6 with feature train #5197 (#5197, rebased in at 2026-10-31 11:15:15Z) as 524f60d (TALE-251, "perf(platform): look members up instead of reading every member"). release/0.6 was then rebased onto main df6105c at 11:25Z, where this commit is now a84c141. It ships with 0.6.0. GitHub closes an issue only for a commit on main, so the feature-train role (TALE-239) closes it.

  6. added
    perf
    on Oct 31, 2026
  7. added 19 commits that reference this issue on Oct 31, 2026
    782aa28
    8bb10dd
    8c3d40d
    c2a397d
    52cdbb8
    8f92c2d
    77cedd7
    080b163
    4a5e6d7
    3d02eb2
    086fdd1
    b92a0f9
    bd504e4
    9cf124e
    d5d0594
    02d14d4
    8c24d32
    82ea6f5
    7968f6d
  8. added a commit that references this issue on Nov 15, 2026
    196f665
  9. added a commit that references this issue on Nov 23, 2026
    5396fef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyperf

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions