Repository navigation
added support for custom membership id - #14325
Conversation
🟢 Tier S · Ready to mergeAdds optional custom membership IDs to team membership creation, retaining generated IDs when omitted and returning a conflict for duplicate IDs. The creation path also cleans up invitees when a duplicate membership prevents creation and updates team totals transactionally for privileged memberships, with API and end-to-end coverage for these behaviors. Latest changes: The new commits make the client duplicate-case email unique inline and add server-side coverage confirming that a duplicate membership ID leaves no orphan invitee user.
Note @imtia33 does not have write access to this repository, so Hansi does not approve automatically. A maintainer can review and approve. 📂 Walkthrough · 5
Reviewed the commits since |
The users API needs an API key, so the client suites got a 401 when asserting that a duplicate custom membership ID leaves no orphaned invitee. The console project has no key to fall back to, so the assertion now lives in the server suite. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in custom membership IDs (#14325) and the installer port fixes (#14345). Ported to database 8.0: Utopia\Database\Id in place of Helpers\ID in the membership route and its server tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
What does this PR do?
Adds support for custom membership IDs when creating team memberships via
POST /v1/teams/:teamId/memberships.membershipIdparam accepts a custom ID orID.unique()for auto-generationID.unique()when omitted, preserving backward compatibility409 membership_already_existswhen a duplicatemembershipIdis providedTest Plan
GET /v1/teams/:teamId/memberships/:membershipIdunique()generates a non-literal unique IDRelated PRs and Issues
Checklist