-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Create default view for workflows + fix task and note targets #6620
Conversation
) => { | ||
const IsWorkflowEnabled = |
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.
const isWorkflowEnabled
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 pull request implements a new default view for workflows and enhances the relationships between workflows, tasks, and notes. Here are the key changes:
- Added a new 'All Workflows' view in
workflows-all.view.ts
, displaying workflow name and published version ID - Integrated the new workflows view into the
viewPrefillData
function, gated by the IsWorkflowEnabled feature flag - Extended NoteTargetWorkspaceEntity and TaskTargetWorkspaceEntity to include a relation to WorkflowWorkspaceEntity
- Updated WorkflowWorkspaceEntity to include one-to-many relations with taskTargets and noteTargets
- Modified data seeding process to support feature flag-based view creation for workflows
7 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings
const IsWorkflowEnabled = | ||
featureFlags?.find( | ||
(featureFlag) => featureFlag.key === FeatureFlagKey.IsWorkflowEnabled, | ||
)?.value ?? false; |
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 using a more descriptive variable name like 'isWorkflowEnabled' (camelCase) instead of 'IsWorkflowEnabled'
export const workflowsAllView = async ( | ||
objectMetadataMap: Record<string, ObjectMetadataEntity>, | ||
) => { |
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 JSDoc comment for function description and parameters
As title