Skip to content
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

cleanup pg_graphql #1 #7673

Merged
merged 4 commits into from
Oct 14, 2024
Merged

cleanup pg_graphql #1 #7673

merged 4 commits into from
Oct 14, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Oct 14, 2024

Context

This PR removes workspace-query-runner/builder in preparation for fully deprecating pg_graphql

next steps: Remove from the setup and make a command to remove comments on schema/tables related to pg_graphql

@Weiko Weiko requested a review from FelixMalfait October 14, 2024 11:34
Copy link
Member

@FelixMalfait FelixMalfait left a comment

Choose a reason for hiding this comment

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

Great step forward!!! TODO: remove from setup-db in a followup PR after deploy

@Weiko Weiko marked this pull request as ready for review October 14, 2024 11:49
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request focuses on removing components related to pg_graphql as part of a larger effort to deprecate it and streamline the codebase. The changes primarily affect the workspace-query-builder and workspace-query-runner modules.

  • Removed multiple factory classes in packages/twenty-server/src/engine/api/graphql/workspace-query-builder/factories/, including those for creating, updating, and deleting queries
  • Deleted WorkspaceQueryRunnerService and its associated module, impacting database operations previously handled by pg_graphql
  • Removed AISQLQueryModule and related files, affecting AI-assisted SQL query generation functionality
  • Updated TRACK mutation parameters in analytics module, simplifying from 'type', 'sessionId', and 'data' to 'action' and 'payload'
  • Simplified workspaceQueryBuilderFactories array, retaining only RecordPositionQueryFactory and ForeignDataWrapperServerQueryFactory

30 file(s) reviewed, 5 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

Choose a reason for hiding this comment

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

logic: Removing CreateManyQueryFactory may break bulk record creation functionality. Ensure alternative implementation is in place.

@@ -1,34 +1,8 @@
import { ForeignDataWrapperServerQueryFactory } from 'src/engine/api/graphql/workspace-query-builder/factories/foreign-data-wrapper-server-query.factory';
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider updating import path to use relative import for consistency with line 3

Copy link
Contributor

Choose a reason for hiding this comment

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

logic: Removing FieldsStringFactory may break GraphQL query generation. Ensure all dependencies are updated.

Comment on lines 34 to 39
providers: [
WorkspaceQueryRunnerService,
...workspaceQueryRunnerFactories,
EntityEventsToDbListener,
TelemetryListener,
RecordPositionBackfillCommand,
],
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: Removal of WorkspaceQueryRunnerService may impact module functionality. Ensure all dependencies are handled.

Copy link
Contributor

Choose a reason for hiding this comment

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

logic: Removing this entire file is a major change. Ensure all dependencies and references to WorkspaceQueryRunnerService are removed or replaced throughout the codebase.

@Weiko Weiko merged commit efba3b1 into main Oct 14, 2024
14 of 16 checks passed
@Weiko Weiko deleted the c--cleanup-pg-graphql-1 branch October 14, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants