Fix N+1 in warning_messages in GraphQL
What does this MR do and why?
Fixes an N+1 in the warning_messages
field in PipelineType
in GraphQL
References
This is a follow-up: #507535 (closed) from !174434 (merged)
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.