Skip to content

Implement diffLlmSummaries property for MergeRequestType

Patrick Bajao requested to merge 408436-diff-llm-summaries-be into master

What does this MR do and why?

This adds a diffLlmSummaries property to MergeRequestType in GraphQL API.

It returns the following properties:

  • merge_request_diff_id
  • user
  • provider
  • content
  • created_at
  • updated_at

How to set up and validate locally

  1. Create MergeRequest::DiffLlmSummary records for a specific MR.

  2. Make a GraphQL query. Example:

    query {
      project(fullPath: "ai/ai") {
        id
        mergeRequest(iid: "1") {
          id
          diffLlmSummaries {
            edges {
              cursor
              node {
                user {
                  id
                }
                mergeRequestDiffId
                provider
                content
                createdAt
                updatedAt
              }
            }
          }
        }
      }
    }

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #408436 (closed)

Merge request reports