Rename backend risk classification strings to risk assessment
What does this MR do and why?
The Product team decided to call the feature "Risk Assessment" instead of "Risk Classification". This MR updates the backend translatable strings to match the new name. The frontend strings, in the merge request widget, change in !257523 (merged). Later MRs will rename component names and the underlying namespaces to match the product name and avoid confusion.
This MR changes text only:
- For backend strings, the gettext namespace
RiskClassification|becomesRiskAssessment| - The foundational flow display name changes from "Risk Classification" to "Risk Assessment"
- GraphQL descriptions for
MergeRequestRiskAssessment,MergeRequest.riskAssessment, and theMergeRequestRiskAssessmentStatusenum values now say "assessment" instead of "classification". Type and field names do not change, so there is no schema change for clients. - One API error message changes: "workflow_id X is not a classification session for this merge request." becomes "workflow_id X is not a risk assessment session for this merge request."
References
- Tracking issue: #630589
- Frontend strings: !257523 (merged)
Screenshots or screen recordings
No visual change is expected in the merge request widget, because the English text stays the same. The flow name change is visible in the group GitLab Duo settings.
| Before | After |
|---|---|
![]() |
How to set up and validate locally
-
In a Rails console, enable the flags:
Feature.enable(:duo_mr_risk_classification)andFeature.enable(:show_duo_mr_risk_classification_widget). -
Go to the
gitlab-duogroup GitLab Duo configuration page (e.g. http://gdk.test:3000/groups/gitlab-duo/-/edit#js-gitlab-duo-settings). Find the list of foundational flows and confirm the flow shows as "Risk Assessment" with the description "Assess the risk of a merge request so review effort can be routed to the changes that warrant it." -
Create a merge request in
gitlab-duo/test. Confirm the risk assessment widget renders as before (for example "Risk assessment pending", then the tier and signal breakdown once the flow completes). -
In GraphQL Explorer (http://gdk.test:3000/-/graphql-explorer), run this query and confirm the descriptions say "assessment":
{ __type(name: "MergeRequestRiskAssessmentStatus") { description enumValues { name description } } }
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.
