Fetch the merged branches at once in the `/projects/:id/repository/branches` endpoint
requested to merge 37442-api-branches-id-repository-branches-is-calling-gitaly-n-1-times-per-request into master
What does this MR do?
This ports the improvements made on the branches page (!14729 (merged)) to the branches API.
Are there points in the code the reviewer needs to double check?
Not really.
Why was this MR needed?
Because !14729 (merged) didn't improve the API endpoint.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
API support added - Review
-
Has been reviewed by Backend -
Has been reviewed by Database
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together
What are the relevant issue numbers?
Solves #37442 (closed).
/cc @godfat
Edited by Rémy Coutable