Populate Foundational Flows in AI catalog when first enabled
What does this MR do and why?
This MR triggers the seeding service to populate the foundational flows in AI catalog.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Add a Flow definition to e.g.
{
id: 4,
name: "new_flow/v1337",
description: "GitLab sample flow",
foundational_flow_reference: "new_flow/v1337",
pre_approved_agent_privileges: [
::Ai::DuoWorkflows::Workflow::AgentPrivileges::READ_WRITE_FILES,
::Ai::DuoWorkflows::Workflow::AgentPrivileges::READ_ONLY_GITLAB,
::Ai::DuoWorkflows::Workflow::AgentPrivileges::READ_WRITE_GITLAB,
::Ai::DuoWorkflows::Workflow::AgentPrivileges::RUN_COMMANDS,
::Ai::DuoWorkflows::Workflow::AgentPrivileges::USE_GIT
],
environment: "web"
}
- Open GitLab Duo settings in a group e.g. http://gdk.test:3000/groups/gitlab-duo/-/edit
- Select a flow and save
- Navigate to AI catalog http://gdk.test:3000/explore/ai-catalog/flows/ and observe flow
new_flow/v1337is present.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #581683
Edited by Fred de Gier