-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: query runner orm #6397
Fix: query runner orm #6397
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
The pull request focuses on refactoring the WorkspaceQueryRunnerService
to utilize TwentyORMGlobalManager
for database operations, enhancing maintainability and reducing technical debt.
- Refactored
workspace-query-runner.service.ts
: IntegratedTwentyORMGlobalManager
for CRUD operations, replacing custom methods. - Removed Methods:
handleDeleteWorkspaceMember
andhandleDeleteBlocklistItem
methods were removed. - Updated
workspace-datasource.factory.ts
: Simplified cache version logic using the nullish coalescing operator (??=
).
Ensure thorough testing to validate ORM integration and edge case handling.
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
@@ -546,19 +590,9 @@ export class WorkspaceQueryRunnerService { | |||
options, | |||
); | |||
|
|||
// TODO START: remove this awful patch and use our upcoming custom ORM is developed | |||
const deletedWorkspaceMember = await this.handleDeleteWorkspaceMember( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great that you tackled this!
We can also delete the code for those functions, no?
Fix WorkspaceQueryRunner events using TwentyORM
Fix #6057