Added project id to the internal workflow API get method
What does this MR do and why?
Added project id to the internal workflow API get method
We need the internal project id in the internal workflow API so that Duo Workflow Service can fetch project details and add it to the default prompt
References
- Issue: #503262 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Enable the duo_workflows feature flag
- Create a workflow from the IDE
- Curl the workflow endpoint with your workflow ID to see the project_id field added
curl -v -H "Authorization: Bearer $GITLAB_TOKEN_LOCAL" '``http://gdk.test:3000/api/v4/ai/duo_workflows/workflows/221``'