Skip to content

API: search invitations, teams and a team's people - #2096

Merged
davidmckayv merged 1 commit into
mainfrom
slice8-people-search-spec
Nov 23, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
slice8-people-search-spec

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

Organizations can now have any number of members, so every list of people pages and searches, the way Admin People already does. This is the spec half; the screens follow in a separate PR.

What changes

  • listOrganizationInvitations takes an optional search: the invitations whose address holds it, ignoring case.
  • listTeams takes an optional search: the teams whose name holds it, ignoring case.
  • listTeamMembers takes an optional search: the people whose name or address holds it, ignoring case.
  • Each is named and documented the way listPeople documents its own search (max 200, no NUL). Each finds only that organization's own, and a cursor belongs to the search that made it.
  • A team's people list, and its memberCount, leave out anybody removed from the organization until they are restored. Today a removed person still shows in a team's people even though the team grants them nothing (they keep their team for Restore).

listOrganizationMembers already has search (#1913).

Compatibility

Additive only, per docs/api-and-migrations.md: every new input is optional, and leaving it out does what happens today. bun run api:generate is committed with the sources; bun run api:lint passes.

listOrganizationInvitations, listTeams and listTeamMembers take an optional search, documented the way listPeople documents its own: it narrows each list to the invitations whose address holds it, the teams whose name holds it, or the people whose name or address holds it, ignoring case. Each finds only that organization's own, and a cursor belongs to the search that made it. A team's people, and its memberCount, leave out anybody removed from the organization until they are restored.
@davidmckayv
davidmckayv force-pushed the slice8-people-search-spec branch from e410739 to f2a65c4 Compare November 23, 2026 23:35
@davidmckayv
davidmckayv merged commit 83b9bdf into main Nov 23, 2026
23 checks passed
@davidmckayv
davidmckayv deleted the slice8-people-search-spec branch November 23, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant