Skip to content

Workspace creation prefill fix#16983

Merged
prastoin merged 9 commits intomainfrom
fix-workspace-creation-prefill
Jan 7, 2026
Merged

Workspace creation prefill fix#16983
prastoin merged 9 commits intomainfrom
fix-workspace-creation-prefill

Conversation

@prastoin
Copy link
Copy Markdown
Contributor

@prastoin prastoin commented Jan 7, 2026

Introduction

Fixing prefill in v2 workspace creation code flow

@prastoin prastoin marked this pull request as ready for review January 7, 2026 10:28
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

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-server/src/engine/workspace-manager/workspace-manager.service.ts">

<violation number="1" location="packages/twenty-server/src/engine/workspace-manager/workspace-manager.service.ts:118">
P1: Missing `await` on transaction call. The transaction will execute asynchronously without waiting for completion, which can cause race conditions and data inconsistency issues during workspace initialization.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 7, 2026

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:4231

This environment will automatically shut down when the PR is closed or after 5 hours.

@prastoin
Copy link
Copy Markdown
Contributor Author

prastoin commented Jan 7, 2026

@cubic-dev-ai please review

@cubic-dev-ai
Copy link
Copy Markdown
Contributor

cubic-dev-ai bot commented Jan 7, 2026

@cubic-dev-ai please review

@prastoin I have started the AI code review. It will take a few minutes to complete.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Copy Markdown
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok to merge like this but left a comment FYI @prastoin

},
);

const queryRunner = this.coreDataSource.createQueryRunner();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming this was like this before but ideally we should use the workspace global datasource and inject the workspace context and not use the core datasource for record pre-filling @prastoin

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do !

Copy link
Copy Markdown
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@prastoin prastoin added this pull request to the merge queue Jan 7, 2026
Merged via the queue into main with commit 4ea4572 Jan 7, 2026
60 checks passed
@prastoin prastoin deleted the fix-workspace-creation-prefill branch January 7, 2026 14:03
@twenty-eng-sync
Copy link
Copy Markdown

Hey @prastoin! After you've done the QA of your Pull Request, you can mark it as done here. Thank you!

1 similar comment
@twenty-eng-sync
Copy link
Copy Markdown

Hey @prastoin! After you've done the QA of your Pull Request, you can mark it as done here. Thank you!

etiennejouan pushed a commit that referenced this pull request Jan 7, 2026
# Introduction
Fixing prefill in v2 workspace creation code flow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants