Skip to content

Conversation

@Weiko
Copy link
Member

@Weiko Weiko commented Jan 7, 2026

Context

The feature has not been maintained for more than a year and was never officially launched.
This PR removes its code due to the upcoming refactoring of the sync-metadata that will break its logic if not handled properly and it would be too costly for the time being.

TODO:

  • remove isRemote from object/field metadata

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.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Copy link
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 97 files

Note: This PR contains a large number of files. cubic only reviews up to 75 files per PR, so some files may not have been reviewed.

@prastoin prastoin self-assigned this Jan 7, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

🚀 Preview Environment Ready!

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

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

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 7, 2026

Too many files changed for review.

@Weiko Weiko changed the title Removing remote integration feature BREAKING CHANGE: Removing remote integration feature Jan 7, 2026
Comment on lines +9 to +19
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE TABLE "core"."remoteTable" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "distantTableName" character varying NOT NULL, "localTableName" character varying NOT NULL, "workspaceId" uuid NOT NULL, "remoteServerId" uuid NOT NULL, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), CONSTRAINT "PK_632b3858de52c8c2eb00c709b52" PRIMARY KEY ("id"))`,
);
await queryRunner.query(
`CREATE TABLE "core"."remoteServer" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "foreignDataWrapperId" uuid NOT NULL DEFAULT uuid_generate_v4(), "foreignDataWrapperType" text, "label" text, "foreignDataWrapperOptions" jsonb, "userMappingOptions" jsonb, "schema" text, "workspaceId" uuid NOT NULL, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), CONSTRAINT "PK_8e5d208498fa2c9710bb934023a" PRIMARY KEY ("id"))`,
);
}
}

This comment was marked as outdated.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

📊 API Changes Report

GraphQL Schema Changes

GraphQL Schema Changes

[log]
Detected the following changes (8) between schemas:

[log] ✖ Type DistantTableUpdate was removed
[log] ✖ Enum value IS_AIRTABLE_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖ Enum value IS_POSTGRESQL_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖ Enum value IS_STRIPE_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖ Type RemoteServer was removed
[log] ✖ Type RemoteTable was removed
[log] ✖ Type RemoteTableStatus was removed
[log] ✖ Type UserMappingOptionsUser was removed
[error] Detected 8 breaking changes
⚠️ Breaking changes or errors detected in GraphQL schema

[log] 
Detected the following changes (8) between schemas:

[log] ✖  Type DistantTableUpdate was removed
[log] ✖  Enum value IS_AIRTABLE_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖  Enum value IS_POSTGRESQL_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖  Enum value IS_STRIPE_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖  Type RemoteServer was removed
[log] ✖  Type RemoteTable was removed
[log] ✖  Type RemoteTableStatus was removed
[log] ✖  Type UserMappingOptionsUser was removed
[error] Detected 8 breaking changes
Error generating diff

GraphQL Metadata Schema Changes

GraphQL Metadata Schema Changes

[log]
Detected the following changes (25) between schemas:

[log] ✖ Type CreateRemoteServerInput was removed
[log] ✖ Type DistantTableUpdate was removed
[log] ✖ Enum value IS_AIRTABLE_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖ Enum value IS_POSTGRESQL_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖ Enum value IS_STRIPE_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖ Type FindManyRemoteTablesInput was removed
[log] ✖ Field createOneRemoteServer was removed from object type Mutation
[log] ✖ Field deleteOneRemoteServer was removed from object type Mutation
[log] ✖ Field syncRemoteTable was removed from object type Mutation
[log] ✖ Field syncRemoteTableSchemaChanges was removed from object type Mutation
[log] ✖ Field unsyncRemoteTable was removed from object type Mutation
[log] ✖ Field updateOneRemoteServer was removed from object type Mutation
[log] ✖ Field findDistantTablesWithStatus was removed from object type Query
[log] ✖ Field findManyRemoteServersByType was removed from object type Query
[log] ✖ Field findOneRemoteServerById was removed from object type Query
[log] ✖ Type RemoteServer was removed
[log] ✖ Type RemoteServerIdInput was removed
[log] ✖ Type RemoteServerTypeInput was removed
[log] ✖ Type RemoteTable was removed
[log] ✖ Type RemoteTableInput was removed
[log] ✖ Type RemoteTableStatus was removed
[log] ✖ Type UpdateRemoteServerInput was removed
[log] ✖ Type UserMappingOptions was removed
[log] ✖ Type UserMappingOptionsUpdateInput was removed
[log] ✖ Type UserMappingOptionsUser was removed
[error] Detected 25 breaking changes
⚠️ Breaking changes or errors detected in GraphQL metadata schema

[log] 
Detected the following changes (25) between schemas:

[log] ✖  Type CreateRemoteServerInput was removed
[log] ✖  Type DistantTableUpdate was removed
[log] ✖  Enum value IS_AIRTABLE_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖  Enum value IS_POSTGRESQL_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖  Enum value IS_STRIPE_INTEGRATION_ENABLED was removed from enum FeatureFlagKey
[log] ✖  Type FindManyRemoteTablesInput was removed
[log] ✖  Field createOneRemoteServer was removed from object type Mutation
[log] ✖  Field deleteOneRemoteServer was removed from object type Mutation
[log] ✖  Field syncRemoteTable was removed from object type Mutation
[log] ✖  Field syncRemoteTableSchemaChanges was removed from object type Mutation
[log] ✖  Field unsyncRemoteTable was removed from object type Mutation
[log] ✖  Field updateOneRemoteServer was removed from object type Mutation
[log] ✖  Field findDistantTablesWithStatus was removed from object type Query
[log] ✖  Field findManyRemoteServersByType was removed from object type Query
[log] ✖  Field findOneRemoteServerById was removed from object type Query
[log] ✖  Type RemoteServer was removed
[log] ✖  Type RemoteServerIdInput was removed
[log] ✖  Type RemoteServerTypeInput was removed
[log] ✖  Type RemoteTable was removed
[log] ✖  Type RemoteTableInput was removed
[log] ✖  Type RemoteTableStatus was removed
[log] ✖  Type UpdateRemoteServerInput was removed
[log] ✖  Type UserMappingOptions was removed
[log] ✖  Type UserMappingOptionsUpdateInput was removed
[log] ✖  Type UserMappingOptionsUser was removed
[error] Detected 25 breaking changes
Error generating diff

⚠️ Please review these API changes carefully before merging.

✅ Breaking Change Protocol

This PR title contains "breaking" and breaking changes were detected - the CI will fail as expected.

📝 Action Required: Please add BREAKING CHANGE: to your commit message to trigger a major version bump.

Example:

feat: add new API endpoint

BREAKING CHANGE: removed deprecated field from User schema

@charlesBochet charlesBochet added this pull request to the merge queue Jan 8, 2026
Copy link
Contributor

@prastoin prastoin left a comment

Choose a reason for hiding this comment

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

🎉

Merged via the queue into main with commit 66b2882 Jan 8, 2026
75 checks passed
@charlesBochet charlesBochet deleted the c--removing-remote-feature branch January 8, 2026 09:28
@twenty-eng-sync
Copy link

Hey @Weiko! 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

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

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 8, 2026

Too many files changed for review.

2 similar comments
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 8, 2026

Too many files changed for review.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 8, 2026

Too many files changed for review.

github-merge-queue bot pushed a commit that referenced this pull request Jan 8, 2026
… flag (#16997)

# Introduction
Followup of
#17001 (review)
close twentyhq/core-team-issues#1910

We've completely decom the `sync-metadata` in production. We're now then
removing its implementation in favor of the v2.

## TODO:
- [x] Remove sync-metadata implem and commands
- [x] Remove workspace decorators 
- [x] Type each deprecated field to deprecated on their workspaceEntity
- [x] Remove the `workspace-sync-metadata` folder entirely
- [x] remove workspace migration
- [x] workspace migration removal migration
- [x] remove the `v2` references from workspace manager file names
- [x] remove the `v2` references from workspace manager modules
- [ ] Double check impact on translation file path updates


## Note
- Removed the gate logic
- Remains some service v2 naming, serverless needs to be migrated on v2
fully
- Removed workspaceMigration service app health consumption, making it
always returning up ( no more down ) cc @FelixMalfait ( quite obsolete
health check now, will require complete refactor once we introduce inter
app dependency etc )
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.

4 participants