Update Ci::BuildMetadata with association
What does this MR do and why?
Following up !103998 (merged)
ci_builds_metadata has recently been partitioned and we cannot use find_by yet.
This MR loads build_metadata with the association to make sure partition_id is filtered automatically and it will not have to scan all partitions.
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.
Edited by Max Orefice