Loading
Add approvedAt to GraphQL merge request interaction
What does this MR do and why?
The REST API exposes approved_at for merge request approvals (API::Entities::Approvals, aliasing Approval#created_at), but GraphQL has no equivalent. This adds an approvedAt field to UserMergeRequestInteractionType, mirroring the existing approved boolean field.
Relates to #618872 (closed)
Changes
Users::MergeRequestInteraction#approved_atreturns the matchingApprovalrecord'screated_at;approved?refactored to reuse the same lookup instead of scanningapprovalstwice.Types::UserMergeRequestInteractionTypeexposesapprovedAt(Types::TimeType, nullable).- Updated model and GraphQL type specs.
- Updated
doc/api/graphql/reference/_index.md.
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.