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

Remove graphql twenty orm feature flag #7556

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Oct 10, 2024

Context

IS_QUERY_RUNNER_TWENTY_ORM_ENABLED has been fully launched in 0.31.0, the feature flag can be safely removed.

Note: Waiting for 0.31.1

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 removes the 'IS_QUERY_RUNNER_TWENTY_ORM_ENABLED' feature flag, which was fully launched in version 0.31.0, simplifying the codebase across multiple components and services.

  • Removed 'IS_QUERY_RUNNER_TWENTY_ORM_ENABLED' flag from /packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts
  • Simplified resolver factories in /packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/ by removing feature flag checks and directly using GraphqlQueryRunnerService
  • Updated /packages/twenty-front/src/modules/command-menu/components/CommandMenu.tsx to remove 'isTwentyOrmEnabled' variable, simplifying search logic
  • Streamlined /packages/twenty-server/src/engine/api/graphql/graphql-query-runner/resolvers/graphql-query-search-resolver.service.ts by removing redundant feature flag check

12 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines 170 to +175
const isWorkspaceMigratedForSearch = useIsFeatureEnabled(
'IS_WORKSPACE_MIGRATED_FOR_SEARCH',
);

const isSearchEnabled =
useIsFeatureEnabled('IS_SEARCH_ENABLED') &&
isTwentyOrmEnabled &&
isWorkspaceMigratedForSearch;
useIsFeatureEnabled('IS_SEARCH_ENABLED') && isWorkspaceMigratedForSearch;
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: Search enablement now only depends on 'IS_SEARCH_ENABLED' and 'IS_WORKSPACE_MIGRATED_FOR_SEARCH'. Ensure this doesn't unintentionally enable search for environments where it shouldn't be.

@charlesBochet charlesBochet merged commit 66a483c into main Oct 10, 2024
16 checks passed
@charlesBochet charlesBochet deleted the c--remove-graphql-twenty-orm-feature-flag branch October 10, 2024 12:52
harshit078 pushed a commit to harshit078/twenty that referenced this pull request Oct 14, 2024
## Context
IS_QUERY_RUNNER_TWENTY_ORM_ENABLED has been fully launched in 0.31.0,
the feature flag can be safely removed.

Note: Waiting for 0.31.1
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