[go: up one dir, main page]

Add AI catalog item consumer create mutation

What does this MR do and why?

We need a way to enable Ai catalog flows in groups and projects.

This MR introduces the service and mutation to support that.

References

Screenshots or screen recordings

image

How to set up and validate locally

  1. Enable global_ai_catalog feature flag
  2. Create a flow:
     mutation {
       aiCatalogFlowCreate(
         input: {
           projectId: "gid://gitlab/Project/1000000"
           name: "Test"
           description: "Test"
           public: true
         }
       ) {
         item {
           id
         }
         errors
       }
     }
  3. Create a consumer:
     mutation {
       aiCatalogItemConsumerCreate(
         input: {
           itemId: "gid://gitlab/Ai::Catalog::Item/45"
         	target: {
             projectId: "gid://gitlab/Project/1000000"
           }
         }
       ) {
         errors
       }
     }

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

Edited by Lee Tickett

Merge request reports

Loading