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

Create default view for workflows + fix task and note targets #6620

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Aug 14, 2024

As title

) => {
const IsWorkflowEnabled =
Copy link
Member

Choose a reason for hiding this comment

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

const isWorkflowEnabled

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 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

Comment on lines 23 to 26
const IsWorkflowEnabled =
featureFlags?.find(
(featureFlag) => featureFlag.key === FeatureFlagKey.IsWorkflowEnabled,
)?.value ?? false;
Copy link
Contributor

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'

Comment on lines +5 to +7
export const workflowsAllView = async (
objectMetadataMap: Record<string, ObjectMetadataEntity>,
) => {
Copy link
Contributor

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

@thomtrp thomtrp merged commit 0f75e14 into main Aug 14, 2024
6 checks passed
@thomtrp thomtrp deleted the tt-create-default-view-for-workflows branch August 14, 2024 10:04
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