[go: up one dir, main page]

Skip to content

Expose gitlab url in duo workflow GraphQL API

What does this MR do and why?

This MR exposes gitlab_url attribute in the duo workflow GraphQL fetch API. Previously, we added the same attribute in rest API, however, gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!2879 (merged) changed the API to GraphQL from Rest.

References

Example of GraphQL Workflow query
query {
  duoWorkflowWorkflows(last: 1) {
    nodes {
      id
      gitlabUrl
    }
  }
}

Response:

{
  "data": {
    "duoWorkflowWorkflows": {
      "nodes": [
        {
          "id": "gid://gitlab/Ai::DuoWorkflows::Workflow/1",
          "gitlabUrl": "http://gdk.test:3000"
        }
      ]
    }
  },
  "correlationId": "01K069BWV86DNVMDB26VRHT0V7"
}

Screenshots or screen recordings

Before After

How to set up and validate locally

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 Shinya Maeda

Merge request reports

Loading