From dae0dec0087c41b0e330009ad355a12df0e09cb8 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Sat, 31 Aug 2019 23:43:55 -0700 Subject: Limit diverging commit counts requests In https://gitlab.com/gitlab-org/gitlab-ce/issues/66200, we saw that many clients accidentally request diverging counts for all branches only because there are no stale/active branches in the project. This has been fixed on the frontend in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32496. To prevent this endpoint from calling Gitaly too many times, we require that branch names be specified if the total number of branches exceeds the limit (20). --- changelogs/unreleased/sh-limit-diverging-commit-counts.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changelogs/unreleased/sh-limit-diverging-commit-counts.yml (limited to 'changelogs/unreleased/sh-limit-diverging-commit-counts.yml') diff --git a/changelogs/unreleased/sh-limit-diverging-commit-counts.yml b/changelogs/unreleased/sh-limit-diverging-commit-counts.yml new file mode 100644 index 00000000000..3aa47bd1fbe --- /dev/null +++ b/changelogs/unreleased/sh-limit-diverging-commit-counts.yml @@ -0,0 +1,5 @@ +--- +title: Limit diverging commit counts requests +merge_request: 32497 +author: +type: performance -- cgit v1.2.1