Skip to content

Include file count in CommitLanguage response

Adam Hegyi requested to merge include-file-count-in-commit-language-reponse into master

Related Issue: https://gitlab.com/gitlab-org/gitlab-ee/issues/12104

We'd like to track language trends over time in GitLab DB, for the first iteration we want to store the language distribution and the file count (LOC is for later).

This change simply adds the file_count and bytes to CommitLanguageResponse. The implementation calls the linguist gem to extract the list of files per language. In a later step this could be further optimized to reduce the memory usage: print all the stats Gitaly needs with one command (gem upgrade is required).

Note: the RPC call frequency won't increase from the rails app.

Edited by GitLab Release Tools Bot

Merge request reports