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

feat[api]: create flows from templates #4254

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Feb 5, 2025

Changes:

  • Removes redundant createFlow GraphQL mutations from the frontend store and instead calls a new API route flows/create to access existing API-side mutations already used by copy, move, etc.
  • Adds another new API route /flows/create-from-template/:templateId which creates a new flow in the target team with a populated templated_from reference and data matching the source template (nodes are not renamed like on copy)
    • This route cannot be called from the frontend until we have a way of identifying & selecting "source templates" from the skeleton modal - but it's possible to call it direct from Swagger docs in the meantime by passing any valid flowId as the templateId

Copy link

github-actions bot commented Feb 5, 2025

🤖 Hasura Change Summary compared a subset of table metadata including permissions:

Updated Tables (1)

  • public.flows permissions:

    insert select update delete
    api /
    demoUser /
    platformAdmin /
    teamEditor /
    4 added column permissions
    insert select update
    api ➕ templated_from
    demoUser
    platformAdmin
    teamEditor

Copy link

github-actions bot commented Feb 5, 2025

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak marked this pull request as ready for review February 5, 2025 13:08
@jessicamcinchak jessicamcinchak requested a review from a team February 5, 2025 13:08
@jessicamcinchak jessicamcinchak merged commit bfa34d9 into main Feb 6, 2025
13 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/create-flow-from-template-api branch February 6, 2025 09:03
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