Skip to content

Only show available flow types on flow triggers

What does this MR do and why?

  • Queries flows if ai_catalog_flows is on
  • Queries third_party_flows if ai_catalog_third_party_flows is on
  • If both FFs are off
    • Skips query
    • Does not show radio button selection
    • Defaults to config file path mode

I have considered adding global_ai_catalog checks as well, but decided against it for some reasons. Let me know if you have questions.

Screenshots or screen recordings

Both off ai_catalog_flows on ai_catalog_third_party_flows on Both on
Screenshot_2025-10-30_at_17.04.23 Screenshot_2025-10-30_at_17.05.32 Screenshot_2025-10-30_at_17.06.31 Screenshot_2025-10-30_at_19.02.38

How to set up and validate locally

  1. Enable the feature flag: echo "Feature.enable(:ai_flow_triggers)" | rails c
  2. Go to http://gdk.test:3000/gitlab-duo/test/-/automate/flow-triggers
  3. Click on Create new flow trigger
  4. Test out the feature flags listed top of this MR description

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.

Edited by Vanessa Otto

Merge request reports

Loading