Skip to content

feat(db): Expose workflow template ID#3159

Merged
migmartri merged 1 commit into
chainloop-dev:mainfrom
javirln:feat/pfm-6051-map
May 27, 2026
Merged

feat(db): Expose workflow template ID#3159
migmartri merged 1 commit into
chainloop-dev:mainfrom
javirln:feat/pfm-6051-map

Conversation

@javirln
Copy link
Copy Markdown
Member

@javirln javirln commented May 27, 2026

This pull request adds support for associating a workflow with a workflow template. The changes introduce a new WorkflowTemplateID field to the workflow data model and ensure it is properly handled during workflow creation and data mapping.

Workflow Template Association:

  • Added a WorkflowTemplateID field to the Workflow struct to reference the platform workflow template from which the workflow was created.
  • Added an optional WorkflowTemplateID field to the WorkflowCreateOpts struct to allow specifying a template when creating a workflow.

Data Persistence and Mapping:

  • Updated the workflow creation logic in WorkflowRepo.Create to persist the WorkflowTemplateID field when present.
  • Updated the entWFToBizWF function to map the WorkflowTemplateID from the database entity to the business model.

Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
@javirln javirln requested review from Piskoo and migmartri May 27, 2026 11:25
@javirln javirln self-assigned this May 27, 2026
@migmartri migmartri merged commit 3739bcd into chainloop-dev:main May 27, 2026
12 of 14 checks passed
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