Skip to content

Add preload to todos for REST API

Marc Shaw requested to merge add_preload_to_todos into master

What does this MR do and why?

Preload related data for API responses as there are a number of N + 1's

Avoiding the rails controller as it doesn't hit the same N + 1's

To test:

Visit the api:

localhost:3000/api/v4/todos?type=MergeRequest

Edited by Heinrich Lee Yu

Merge request reports