-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove workflow feature flag #12732
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 workflow feature flag #12732
Conversation
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
This PR removes the workflow feature flag across the codebase, transitioning workflows from an experimental lab feature to a core platform capability. Key changes include:
- Removed
IS_WORKFLOW_ENABLED
fromFeatureFlagKey
enum in/packages/twenty-server/src/engine/core-modules/feature-flag/enums/feature-flag-key.enum.ts
- Simplified
DatabaseEventTriggerListener
in/packages/twenty-server/src/modules/workflow/workflow-trigger/automated-trigger/listeners/database-event-trigger.listener.ts
by removing feature flag checks - Cleaned up workflow-related feature flag checks from multiple hooks including
useObjectMetadataItem
anduseFilteredObjectMetadataItems
- Updated mock data and tests to reflect workflow's status as a core feature rather than a lab feature
- Removed the feature flag validation for workflows from the serverless function resolver
18 files reviewed, 4 comments
Edit PR Review Bot Settings | Greptile
const activeObjectMetadataItems = useMemo( | ||
() => | ||
objectMetadataItems.filter( | ||
({ isActive, nameSingular }) => | ||
isActive && !isWorkflowToBeFiltered(nameSingular), | ||
), | ||
[isWorkflowToBeFiltered, objectMetadataItems], | ||
() => objectMetadataItems.filter(({ isActive }) => isActive), | ||
[objectMetadataItems], | ||
); |
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.
style: Consider adding a comment explaining why we're maintaining two separate filtered lists (activeObjectMetadataItems and activeNonSystemObjectMetadataItems)
...ront/src/modules/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig.tsx
Show resolved
Hide resolved
...wenty-server/src/engine/metadata-modules/serverless-function/serverless-function.resolver.ts
Show resolved
Hide resolved
...wenty-server/src/engine/metadata-modules/serverless-function/serverless-function.resolver.ts
Show resolved
Hide resolved
...wenty-server/src/engine/metadata-modules/serverless-function/serverless-function.resolver.ts
Show resolved
Hide resolved
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
📊 API Changes ReportGraphQL Schema ChangesGraphQL Schema Changes[log] [log] ✖ Enum value IS_WORKFLOW_ENABLED was removed from enum FeatureFlagKey
GraphQL Metadata Schema ChangesGraphQL Metadata Schema Changes[log] [log] ✖ Enum value IS_WORKFLOW_ENABLED was removed from enum FeatureFlagKey
|
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:63555 This environment will automatically shut down when the PR is closed or after 5 hours. |
Removing workflows from the lab
Removing workflows from the lab