Refactor flow triggers JSON data

What does this MR do and why?

We don't need flowTriggersEventTypeOptions at the group level, so they have been moved to project-specific properties.

  • Add util in DAP code to parse JSON properties.
  • Pass flowTriggersEventTypeOptions only to the project index.
  • Add missing required prop.

References

Related to #578364

Screenshots or screen recordings

No changes to UI.

How to set up and validate locally

  1. Prerequisite: You have a Duo workflow-enabled project.
  2. Enable the feature flags global_ai_catalog, and ai_catalog_flows.
  3. Go to Project > Automate > Flows. For example, https://gdk.test:3443/gitlab-duo/test/-/automate/flows.
  4. Go to Project > Automate > Flow triggers. For example, https://gdk.test:3443/gitlab-duo/test/-/automate/flow-triggers.

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.

Merge request reports

Loading