Reference foundational flows from workflow definition file
What does this MR do and why?
This MR changes the Foundational Flow menu to reference from the Workflow Definition file instead of AI Catalog. This allows us to show and enable foundational flows even when they aren't yet in the AI Catalog.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- First open the Rails console and destroy all foundational flows
::Ai::Catalog::Item.foundational_flows.destroy_all
- Navigate to AI catalog and observe there are no foundational flows; http://gdk.test:3000/explore/ai-catalog/flows/
- Navigate to Duo enabled group and duo settings: http://gdk.test:3000/groups/gitlab-duo/-/edit notice that the foundational flows are displayed even when they are not in AI Catalog
- Select some flows and click "Save changes"
- Navigate to the Flows in the group and observe they are added: http://gdk.test:3000/groups/gitlab-duo/-/automate/flows
6.Navigate to the flows of a project and observe the flows are added: http://gdk.test:3000/gitlab-duo/test/-/automate/flows
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


