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"
Work Item passed as url:
How to set up and validate locally
- 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)) - Restart gdk
- Find group where you have Duo seat assigned
- go to work items page (you can just go to issue page and change
issues
towork_items
in the url) - Ask chat about "current work item"
- See chat answering
- 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?" - 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