-
-
Notifications
You must be signed in to change notification settings - Fork 965
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
User profile commits stat not working #1744
Comments
I went to take a peek at the actual
Seems like something is wrong with the way we insert commits in the database (which I think is done via the If we could fix that, then option 1 would be my preferred approach. |
It looks like 2 issues, there's the patch author and then the commiter/merger but also the git commit author and your GitHub/Trac username don't match 🤔 might be fiddly |
I did some digging in the Trac source code (don't worry, I was wearing the appropriate safety equipment 🦺 ). Turns out this is a Trac "feature": https://github.com/edgewall/trac/blob/4e4d0529870bee221c6a4eb0861265487a630ec0/tracopt/versioncontrol/git/git_fs.py#L330-L333 Fixing this should be a oneline config change (PR incoming), but that will only take care of new commits. It should be possible to write a kind of migration to go fix things retroactively (I think Trac has a migration system but it seemed clunky to use the last time I briefly checked). |
THis should enable us to extract commit statistics per user. See django/djangoproject.com#1744
Small followup: it turns out it's fairly easy to retroactively fix the revisions in the database by running |
The commits stat in the user profile is not displayed as it's always 0
Options are:
The text was updated successfully, but these errors were encountered: