Repository navigation
API: search invitations, teams and a team's people - #2096
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 23, 2026 23:27
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
force-pushed
the
slice8-people-search-spec
branch
from
November 23, 2026 23:35
e410739 to
f2a65c4
Compare
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
listOrganizationInvitationstakes an optionalsearch: the invitations whose address holds it, ignoring case.listTeamstakes an optionalsearch: the teams whose name holds it, ignoring case.listTeamMemberstakes an optionalsearch: the people whose name or address holds it, ignoring case.listPeopledocuments its ownsearch(max 200, no NUL). Each finds only that organization's own, and a cursor belongs to the search that made it.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).listOrganizationMembersalready hassearch(#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:generateis committed with the sources;bun run api:lintpasses.