Graphs page wrong time interval
Closed
Graphs page wrong time interval
Created by: limansky
Hi,
I have fresh installation of GitLab-5.4. I've found that the graphs for one of the repositories is drawn only for the period June 7 2013 - August 2 2013, but the repo contains commits since July 26 2012. I have no idea how this date was chosen. It not related of the date of GitLab project creation or something like this.
Created by: limansky
One more detail I've remembered (maybe it can be important). When I initially push the repository to gitlab, there was one of the developers branches selected instead of master. I switched default branch in project settings after, but it doesn't changed the graph.
By Administrator on 2013-08-13T18:04:26 (imported from GitLab project)
Created by: RaumZeit
Same here with fresh update to gitlab 6.0. My active branch is not 'master' so my graphs stop in 2009 although there were hundreds of commits meanwhile.
I found in the sources that the graph not only is limited to max of 6000 commits, it also displays commits to the master branch only. The arguments passed over to git to retrieve the data seems to consist of
args = ['-6000', '--format=%aN%x0a%aE%x0a%cd', '--date=short', '--shortstat', '--no-merges'] log = repo.git.run(nil, 'log', nil, {}, args)
The '-b' parameter specifying the branch is missing...
By Administrator on 2013-08-24T22:32:04 (imported from GitLab project)
Created by: RaumZeit
Seems this issue has been targeted by gitlab/gitlab_git repository already. See
https://github.com/gitlabhq/gitlab_git/pull/7
adding ref to the arguments array in gitlab_git/git_stats.rb
args = [ref, '-10000', '--format=%aN%x0a%aE%x0a%cd', '--date=short', '--shortstat', '--no-merges']
partially solved the problem for me. After the next commit to my repo the log was updated and now activity for the default branch (according to the gitlab settings) is taken into account for graph statistics... A per branch graph would be much nicer though, since the URI to the graph page would allow for that
https://url/groupname/projectname/graphs/branchname
By Administrator on 2013-08-25T12:32:24 (imported from GitLab project)
Created by: limansky
I can, but I like to wait if some one else will confirm that issue has gone, 'couse I don't see any commits in this bug (and the gitlabhq/gitlab_git#7 is still opened as well). Anyway, it can be reopened if it still here.
By Administrator on 2013-09-09T19:52:44 (imported from GitLab project)