Reduce method calls while evaluating Projects::MergeRequestsController#show.json

Merged Oswaldo Ferreir requested to merge 36876-mr-show-json-controller-perf-improvements into master

What does this MR do?

Reduce method calls and general data being sent on when requesting Projects::MergeRequestsController#show.json.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Part of #36876

Edited by Oswaldo Ferreir