Fix enabling catalog item at project level

What does this MR do and why?

Fix enabling catalog item at project level (Agents and Flows)

  • Adds required parentItemConsumerId as a parameter when creating an item consumer

Behind :global_ai_catalog feature flag

References

Screenshots or screen recordings

Screen_Recording_2025-12-03_at_11.01.36_am

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_item_project_curation.
  3. Create and enable agent(s) in a group from the Explore AI catalog
  4. Go to Project > Automate > Agents. For example, https://gdk.test:3443/gitlab-duo/test/-/automate/agents. (project contained in group in which you've enabled the agent above)
  5. Go to Managed tab and click on the agent you just enabled in the parent group
  6. In the top right corner, click `Enable.

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 #579520 (closed)

Merge request reports

Loading