fix(api): provision defaults for invited teams - #2922
Draft
mfroembgen wants to merge 1 commit into
Draft
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. |
Contributor
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
This was referenced Aug 17, 2026
mfroembgen
force-pushed
the
codex/2921-invite-defaults
branch
from
August 25, 2026 06:17
4ec0a23 to
9d9b564
Compare
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
How to test on Vercel preview
N/A — non-UI change
Testing
make dev-int FILE=teammake ci-lintmake ci-unitReferences