Merged
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
e3577a0 to
8458bca
Compare
Contributor
There was a problem hiding this comment.
1 issue found across 7 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="packages/twenty-apps/internal/self-hosting/tsconfig.json">
<violation number="1" location="packages/twenty-apps/internal/self-hosting/tsconfig.json:24">
P2: Add a baseUrl for the new path mappings; TypeScript requires baseUrl when using paths or the config will fail to compile.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| "skipDefaultLibCheck": true, | ||
| "resolveJsonModule": true | ||
| "resolveJsonModule": true, | ||
| "paths": { |
Contributor
There was a problem hiding this comment.
P2: Add a baseUrl for the new path mappings; TypeScript requires baseUrl when using paths or the config will fail to compile.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/twenty-apps/internal/self-hosting/tsconfig.json, line 24:
<comment>Add a baseUrl for the new path mappings; TypeScript requires baseUrl when using paths or the config will fail to compile.</comment>
<file context>
@@ -20,7 +20,11 @@
"skipDefaultLibCheck": true,
- "resolveJsonModule": true
+ "resolveJsonModule": true,
+ "paths": {
+ "src/*": ["./src/*"],
+ "~/*": ["./*"]
</file context>
Suggested change
| "paths": { | |
| "baseUrl": ".", | |
| "paths": { | |
| "src/*": ["./src/*"], | |
| "~/*": ["./*"] | |
| } |
Contributor
Greptile OverviewGreptile SummaryMigrated the internal self-hosting app from Major Changes:
Issues Found:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client as Self-hosted Instance
participant Webhook as Telemetry Webhook Function
participant TwentyAPI as Twenty GraphQL API
participant DB as Database (selfHostingUsers)
Client->>Webhook: POST /webhook/telemetry<br/>(user_signup event)
Note over Webhook: Extract event payload<br/>(email, firstName, lastName)
alt Event is not user_signup
Webhook-->>Client: {success: true, message: "Event ignored"}
end
alt No email found
Webhook-->>Client: {success: false, error: "Missing email"}
end
alt Email contains "test" or "example"
Webhook-->>Client: {success: true, message: "Test email ignored"}
end
Note over Webhook: Create Twenty API client<br/>(with TWENTY_API_KEY)
Webhook->>TwentyAPI: GraphQL mutation<br/>createSelfHostingUser(upsert: true)
TwentyAPI->>DB: Insert/Update selfHostingUser record
DB-->>TwentyAPI: Record created/updated
TwentyAPI-->>Webhook: {id, email}
Webhook-->>Client: {success: true, message: "User created/updated"}
|
packages/twenty-apps/internal/self-hosting/src/app/selfHostingUser.object.ts
Show resolved
Hide resolved
Contributor
Additional Comments (1)
Prompt To Fix With AIThis is a comment left during a code review.
Path: packages/twenty-apps/internal/self-hosting/src/app/telemetryWebhook.function.ts
Line: 99:102
Comment:
String concatenation can produce `"undefined undefined"` if first/last name are missing
```suggestion
name:
[
payload?.payload?.events?.[0]?.userFirstName,
payload?.payload?.events?.[0]?.userLastName,
]
.filter(Boolean)
.join(' ') || null,
```
How can I resolve this? If you propose a fix, please make it concise. |
charlesBochet
approved these changes
Jan 27, 2026
1 similar comment
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.
as title