Activity shows push, not commit. #6171

Closed
opened 2025-11-02 06:46:59 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @spacehobo on GitHub (Oct 19, 2020).

  • Gitea version (or commit ref): b2aa478
  • Git version: 2.28.0
  • Operating system: android (running in termux)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (would take days)
  • Log gist: N/A

Description

The "Activity" heat map seems to show commits on the day they were pushed, rather than the day they were committed. If you start a repo, commit something every day for a week, and push to gitea after seven days, it shows a seven-commit block on the current day instead of a one-commit block across the whole week.

I don't use github when I can help it, so I don't know if this is expected behaviour to github users, but it seems entirely misleading about when the work was actually done, and does not help me in the slightest.

Screenshots

A screenshot showing a week's worth of commits compressed down to the one day I pushed them to gitea.

Originally created by @spacehobo on GitHub (Oct 19, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): `b2aa478` - Git version: `2.28.0` - Operating system: `android (running in termux)` - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No `(would take days)` - Log gist: `N/A` ## Description The "Activity" heat map seems to show commits on the day they were pushed, rather than the day they were committed. If you start a repo, commit something every day for a week, and push to gitea after seven days, it shows a seven-commit block on the current day instead of a one-commit block across the whole week. I don't use github when I can help it, so I don't know if this is expected behaviour to github users, but it seems entirely misleading about when the work was actually done, and does not help me in the slightest. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> ![A screenshot showing a week's worth of commits compressed down to the one day I pushed them to gitea.](https://user-images.githubusercontent.com/8015250/96415318-50c26700-11e6-11eb-929d-7b032e922753.png)
Author
Owner

@lafriks commented on GitHub (Oct 31, 2020):

That's because they are calculated from database not git data and database does not contain such data about commit time. Calculating such data from git would take too much time

@lafriks commented on GitHub (Oct 31, 2020): That's because they are calculated from database not git data and database does not contain such data about commit time. Calculating such data from git would take too much time
Author
Owner

@techknowlogick commented on GitHub (Oct 31, 2020):

Closing per @lafriks comment. If you are inclined to have it for before your import you could parse git dat and insert items into the DB that way.

@techknowlogick commented on GitHub (Oct 31, 2020): Closing per @lafriks comment. If you are inclined to have it for before your import you could parse git dat and insert items into the DB that way.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6171