Skip to content

Add Work Item as context for duo chat

What does this MR do and why?

It adds code needed to get work items working like issues and epics in duo chat. It uses the same unit primitive as issues ("ask_issue").

It has the MR in the AI gateway that is required so this code works: gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!2793 (merged)

References

Screenshots or screen recordings

Work item as "current context"

image

Work Item passed as url:

image

How to set up and validate locally

  1. go to ai gateway in your gdk and change branch to mk-add-wi-to-chat (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!2793 (merged))
  2. Restart gdk
  3. Find group where you have Duo seat assigned
  4. go to work items page (you can just go to issue page and change issues to work_items in the url)
  5. Ask chat about "current work item"
  6. See chat answering
  7. go to other page in the same group and ask about this work item using url, like "what is http://gdk.test:3000/gitlab-duo/test/-/work_items/2 about?"
  8. See chat answering

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

Edited by Gosia Ksionek

Merge request reports

Loading