-
Notifications
You must be signed in to change notification settings - Fork 117
Mixed up dates in contributors statistics graph #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this is linked to http://www.redmine.org/issues/5357
I don't know if it can be easily fixed. |
Hi Nicolas, Thank you for investigating this issue. I am not familiar with the database model of Redmine but what do you think about the following kind of query ? SELECT c.commit_date AS date, COUNT(c.id) AS changes FROM changesets AS c JOIN repositories AS r ON c.repository_id = r.id JOIN users AS u ON c.user_id = u.id WHERE r.identifier = 'zoinx-orekit' AND u.mail = '[email protected]' GROUP BY c.commit_date ORDER BY c.commit_date DESC;
|
Administration => Informations:
|
I think that I have found the problem. There are some missing ".order(:commit_date)" in the repository_patch.rb file: |
I've tested your patch and it's still working for me :) |
Yes, my patch works for me. |
Maybe. That's very possible. Thank you! |
For testing purpose:
I created an empty repository (zoinx/zoinx-orekit.git) using Redmine Git Hosting interface
I imported a third party repository (Orekit sources) :
$ git clone http://www.orekit.org/git/orekit
$ cd orekit
$ git remote add myforge ssh://[email protected]/zoinx/zoinx-orekit.git
$ git push myforge master
Dates are mixed up in the contributors statistics tab:
The text was updated successfully, but these errors were encountered: