Uh oh!
There was an error while loading. Please reload this page.
fix(api): provision defaults for invited teams - #2922
Conversation
🦋 Changeset detectedLatest commit: 9d9b564 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@mfroembgen is attempting to deploy a commit to the HyperDX Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThe PR provisions configured default connections and sources when an invited user joins a team, while keeping provisioning failures non-blocking.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| packages/api/src/controllers/team.ts | Changes team retrieval to honor the supplied ID, resolving the previously reported cross-team provisioning defect. |
| packages/api/src/routers/api/root.ts | Provisions defaults for the invited team with request business context, operation metrics, and non-blocking error handling. |
| packages/api/src/controllers/tests/team.int.test.ts | Verifies that getTeam returns the specifically requested team when multiple teams exist. |
| packages/api/src/routers/api/tests/team.int.test.ts | Verifies invite acceptance invokes default provisioning with the invited team’s ID. |
| .changeset/tidy-invites-share.md | Records the invited-team default provisioning behavior as an API patch release. |
Sequence Diagram
sequenceDiagram
participant U as Invited user
participant API as Team setup route
participant DB as MongoDB
participant P as Default provisioner
U->>API: Submit invite token and password
API->>DB: Resolve invitation and create user
API->>API: Attach team/user business context
API->>P: setupTeamDefaults(invitedTeamId)
P->>DB: Resolve invited team by ID
P->>DB: Create configured connections and sources
alt Provisioning fails
P-->>API: Throw error
API->>API: Record failure metric and log error
end
API->>DB: Remove invitation
API-->>U: Start session and redirect
Reviews (2): Last reviewed commit: "fix(api): provision defaults for invited..." | Re-trigger Greptile
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
4ec0a23 to
9d9b564Compare
Summary
How to test on Vercel preview
N/A — non-UI change
Testing
make dev-int FILE=teammake ci-lintmake ci-unitReferences