Fix summarize review prompt version for DAP Duo Code Review
What does this MR do and why?
This MR is the counterpart for refactor: add summarize review prompts with duo... (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!4256 - merged).
During gitlab-org/modelops/applied-ml/code-suggestions/ai-assist#1802 (closed) investigation, we realized the DAP Duo Code Review prompts were using the old review_merge_request unit primitive used in Classic Duo Code Review.
gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!4253 (merged) fixed the issue for the main review_merge_request prompt but the summarize_review prompt had the same issue.
References
- Investigate WrongUnitPrimitives error for code_... (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist#1802 - closed)
- refactor: use duo_agent_platform unit primitive... (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!4253 - merged)
How to set up and validate locally
-
Enable
Feature.enable(:ai_catalog_flows)feature flag -
Seed foundational flows if not already seeded:
::Gitlab::Seeder::FoundationalFlows.seed -
Create a new group and enable GitLab Duo for it
-
Create a project under that group
-
Enable foundational flows (you can try enabling Duo Code Review for the test) under
Settings > General > GitLab Duo features: E.g. http://gdk.test:3000/groups/gitlab-duo/-/edit -
Create a MR under that project and add
@GitLabDuoto the reviewers list -
Check gitlab-ai-gateway logs and make sure the
3.0.0prompt version is being used for summarize_review
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.
