Deprecate dummy enterprise key 2/2 (#21328)

Following [1/2](https://github.com/twentyhq/twenty/pull/20890)

Now that all usages of hasValidEnterpriseKey has been removed in prod
and deployed, we can safely remove it altogether.

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Marie
2026-06-09 16:07:36 +02:00
committed by GitHub
parent bda6fcfec9
commit 137fe45cf6
7 changed files with 0 additions and 14 deletions
@@ -957,7 +957,6 @@ type Workspace {
installedApplications: [Application!]!
currentBillingSubscription: BillingSubscription
billingEntitlements: [BillingEntitlement!]!
hasValidEnterpriseKey: Boolean!
hasValidSignedEnterpriseKey: Boolean!
hasValidEnterpriseValidityToken: Boolean!
workspaceUrls: WorkspaceUrls!
@@ -674,7 +674,6 @@ export interface Workspace {
installedApplications: Application[]
currentBillingSubscription?: BillingSubscription
billingEntitlements: BillingEntitlement[]
hasValidEnterpriseKey: Scalars['Boolean']
hasValidSignedEnterpriseKey: Scalars['Boolean']
hasValidEnterpriseValidityToken: Scalars['Boolean']
workspaceUrls: WorkspaceUrls
@@ -3601,7 +3600,6 @@ export interface WorkspaceGenqlSelection{
installedApplications?: ApplicationGenqlSelection
currentBillingSubscription?: BillingSubscriptionGenqlSelection
billingEntitlements?: BillingEntitlementGenqlSelection
hasValidEnterpriseKey?: boolean | number
hasValidSignedEnterpriseKey?: boolean | number
hasValidEnterpriseValidityToken?: boolean | number
workspaceUrls?: WorkspaceUrlsGenqlSelection
@@ -1896,9 +1896,6 @@ export default {
"billingEntitlements": [
230
],
"hasValidEnterpriseKey": [
6
],
"hasValidSignedEnterpriseKey": [
6
],
@@ -5969,7 +5969,6 @@ export type Workspace = {
eventLogRetentionDays: Scalars['Float'];
fastModel: Scalars['String'];
featureFlags?: Maybe<Array<FeatureFlag>>;
hasValidEnterpriseKey: Scalars['Boolean'];
hasValidEnterpriseValidityToken: Scalars['Boolean'];
hasValidSignedEnterpriseKey: Scalars['Boolean'];
id: Scalars['UUID'];
@@ -35,7 +35,6 @@ describe('useColumnDefinitionsFromObjectMetadata', () => {
allowImpersonation: false,
subdomain: 'test',
activationStatus: WorkspaceActivationStatus.ACTIVE,
hasValidEnterpriseKey: false,
hasValidSignedEnterpriseKey: false,
hasValidEnterpriseValidityToken: false,
metadataVersion: 1,
@@ -70,7 +70,6 @@ export const mockCurrentWorkspace = {
isPublicInviteLinkEnabled: true,
allowImpersonation: true,
activationStatus: WorkspaceActivationStatus.ACTIVE,
hasValidEnterpriseKey: false,
hasValidSignedEnterpriseKey: false,
hasValidEnterpriseValidityToken: false,
isGoogleAuthEnabled: true,
@@ -309,11 +309,6 @@ export class WorkspaceResolver {
);
}
@ResolveField(() => Boolean)
hasValidEnterpriseKey(): boolean {
return this.enterprisePlanService.hasValidSignedEnterpriseKey();
}
@ResolveField(() => Boolean)
hasValidSignedEnterpriseKey(): boolean {
return this.enterprisePlanService.hasValidSignedEnterpriseKey();