-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
6430 Part 1: remove all raw queries from the messaging and calendar modules #6572
6430 Part 1: remove all raw queries from the messaging and calendar modules #6572
Conversation
Great! FYI merge conflict with main |
…ng-and-calendar-modules
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 removes raw queries from the messaging and calendar modules, replacing them with ORM-based queries using twentyORMManager
.
- Removed Repositories: Deleted
message-channel.repository.ts
,message-participant.repository.ts
,message-thread.repository.ts
, andmessage.repository.ts
to eliminate raw queries. - Updated Services: Replaced raw queries with ORM methods in
google-apis.service.ts
,messaging-channel-sync-status.service.ts
, andmessaging-messages-import.service.ts
. - Modified Jobs: Updated
messaging-blocklist-item-delete-messages.job.ts
andmessaging-message-list-fetch.cron.job.ts
to usetwentyORMManager
. - Listener Changes:
messaging-blocklist.listener.ts
now uses ORM for repository access. - Module Adjustments: Removed raw query-based entities from
auth.module.ts
andmessaging-common.module.ts
.
26 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
LGTM, love when we simplify code!
Part 1 of #6430
messaging
moduletwentyORMManager