diff --git a/static/js/portico/team.js b/static/js/portico/team.js index 4e79f92228..8742eabb9a 100644 --- a/static/js/portico/team.js +++ b/static/js/portico/team.js @@ -21,6 +21,14 @@ function contrib_total_commits(contrib) { export default function render_tabs() { var template = _.template($('#contributors-template').html()); + // Since the Github API limits the number of output to 100, we want to + // remove anyone in the total tab with less commits than the 100th + // contributor to the server repo. (See #7470) + var least_server_commits = _.chain(contributors_list) + .filter('server') + .sortBy('server') + .value()[0].server; + var total_tab_html = _.chain(contributors_list) .map(function (c) { return { @@ -31,6 +39,7 @@ export default function render_tabs() { }) .sortBy('commits') .reverse() + .filter(function (c) { return c.commits >= least_server_commits; }) .map(function (c) { return template(c); }) .value() .join(''); diff --git a/templates/zerver/team.html b/templates/zerver/team.html index c71ea5887a..054d40c17c 100644 --- a/templates/zerver/team.html +++ b/templates/zerver/team.html @@ -131,7 +131,7 @@

- +