Add source_url to gitlab chat graphql response
What does this MR do and why?
Related: https://gitlab.com/gitlab-org/enablement-section/tanuki-bot/-/issues/31
Populate the source_url to the graphQL version of GitLab chat backend. This is currently done in the Rest API version here.
This is needed for the frontend to correct display links.
Screenshots or screen recordings
How to set up and validate locally
- enable gdk for pgvector:
gdk config set pgvector.enabled true - enable the embedding database:
gdk config set gitlab.rails.databases.embedding.enabled true gdk reconfigure- Enable checks:
Feature.enable(:openai_experimentation),Feature.enable(:tanuki_bot) - Add openAI api key:
Gitlab::CurrentSettings.update(openai_api_key: "<openai-api-token>") - Enable super sidebar:
Feature.enable(:super_sidebar_nav) - Enable the new nav in the GitLab UI for gdk
- Navigate to Help and select
Ask the GitLab Chat
- Ask a question
- Verify the links are working (they should link to gitlab.docs.com)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Terri Chu

