Cache project HEAD to prevent unnecessary Gitaly calls
What does this MR do?
Reduce Gitaly calls when listing project pipeline status.
From my estimates, if you have a full page of projects with CI pipelines in the dashboard, this still reaches the maximum call limit.
Though for the development seed data, it does enough to prevent the error on the first request from starting up GDK.
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process.
Edited by Grzegorz Bizon