Repository navigation
[PLT-4659] [PLT-4608] [PLT-4609] Add bulk invite results to the SDK - #2085
Merged
Merged
Conversation
pablito25sp
requested review from
KahvehS,
gmadaan-hue,
gramos-lb,
john-labelbox,
mnoszczak,
snmodi21 and
vikram-kharvi
October 16, 2026 18:18
|
Current version of PR was reviewed by /review-bugbot on Oct 16, 15:13 GMT-3. It flagged 0 findings. Bugbot on commit |
mnoszczak
approved these changes
Oct 16, 2026
- The SDK calls inviteMembers in groups of 100 addresses. - Each address gets one result, in the original order. Jira: https://labelbox.atlassian.net/browse/PLT-4659 Jira: https://labelbox.atlassian.net/browse/PLT-4608 Jira: https://labelbox.atlassian.net/browse/PLT-4609 Co-authored-by: Cursor <cursoragent@cursor.com>
- An address longer than 320 characters gets an invalid result. - The other addresses in the request are still sent. Jira: https://labelbox.atlassian.net/browse/PLT-4659 Jira: https://labelbox.atlassian.net/browse/PLT-4608 Jira: https://labelbox.atlassian.net/browse/PLT-4609 Co-authored-by: Cursor <cursoragent@cursor.com>
- The method trims padding before it checks the 320-character limit. - A valid address is still sent when an earlier padded copy is too long. Jira: https://labelbox.atlassian.net/browse/PLT-4659 Jira: https://labelbox.atlassian.net/browse/PLT-4608 Jira: https://labelbox.atlassian.net/browse/PLT-4609 Co-authored-by: Cursor <cursoragent@cursor.com>
pablito25sp
force-pushed
the
psp/PLT-4659-PLT-4608-PLT-4609
branch
from
October 19, 2026 13:46
fb72bd4 to
682cb5c
Compare
Merged
This branch was previously deployed
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.
Summary
Organization.invite_userscallsinviteMembersin groups of 100 addresses. Each address gets one result, in the original order. An address longer than 320 characters does not stop the other addresses.Release this SDK change after
inviteMembersis deployed.Jira: PLT-4659
Jira: PLT-4608
Jira: PLT-4609
Note
Medium Risk
Adds org membership invitation flows and role assignment; behavior depends on new backend
inviteMembers, though existing single-invite APIs are unchanged.Overview
Adds
Organization.invite_usersfor inviting many addresses in one call, backed by theinviteMembersmutation. Callers get an orderedList[InviteResult]withInviteMemberStatusper address (invited, already member, seat limit, invalid email, etc.), including optionalreasonandinvite_id.Supports workspace-wide org roles or the same project/group role across optional
projectsanduser_groups(objects or ids). The client batches up to 100 addresses per request, blocks over-long emails locally (320 chars), and marks cross-batch duplicates asDUPLICATEso one bad address does not fail the rest.InviteMemberStatus,InviteResult, and invite docs are exported and documented; unit tests cover payloads, batching, validation, and edge cases.Note: Intended for use after the
inviteMembersAPI is deployed on the server.Reviewed by Cursor Bugbot for commit 682cb5c. Bugbot is set up for automated code reviews on this repo. Configure here.