Skip to content

Add param to allow scoped caching of Repo#merge_to_ref

What does this MR do?

Adding caching to this endpoint for all use cases triggered a bug in an untested portion of Merge Trains. Adding this param will allow us to selectively apply caching, improving the performance characteristics of where we have a problem (MergeRequests::MergeabilityCheckService) but not in the problematic Merge Trains code.

This MR gives us the param - we'll actually enable using it in a subsequent MR.

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #337450 (closed)

Edited by Kerri Miller

Merge request reports