[go: up one dir, main page]

Skip to content

Create Seed Scripts for workflows

Developing with workflows locally can be a pain if you need to set up the whole workflow flow then trigger some workflows in various states to do some testing. We should create some seed scripts to help us get up and running quickly.

FactoryBot can be used on Demand:

user = User.first # Or whoever you are logged in as
project = Project.first

FactoryBot.create(:duo_workflows_workflow, project: project, user: user)

But ideally we'd have db/fixtures.

At the moment, none of the models exist for the data we need for the Catalog, so this is probably blocked.

Note, there is an existing rake task to create Duo Workflow runs, in gitlab:duo_workflow:populate.

Edited by 🤖 GitLab Bot 🤖