stable

Clone or download

Read-only

Load all last_push_date at once

When using /projects/:id/git fetching last_push_date generated 1 query per repo listed. With this patch, there is 1 query for all repositories. Part of story #10408 have a burning parrot git repository list Change-Id: I013b2966f03086b2e5a3abdcaf80a725ac54d5ff

Modified Files

Name
M plugins/git/include/Git_LogDao.class.php +10 −0 Go to diff View file
M plugins/git/include/REST/v1/ProjectResource.class.php +2 −9 Go to diff View file
M plugins/git/include/REST/v1/RepositoryRepresentationBuilder.class.php +40 −3 Go to diff View file
M plugins/git/include/gitPlugin.class.php +1 −1 Go to diff View file
A src/common/REST/v1/GitRepositoryListRepresentation.php +30 −0 Go to diff View file
M src/common/autoload.php +3 −2 Go to diff View file
M src/common/project/REST/v1/ProjectResource.class.php +4 −3 Go to diff View file