Add comment for the design of "user activity time" (#37195)

This commit is contained in:
wxiaoguang
2026-04-14 04:01:29 +08:00
committed by GitHub
parent 37396fff13
commit 0593b58ff7
3 changed files with 8 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ func getUserHeatmapData(ctx context.Context, user *user_model.User, team *organi
return nil, err
}
// HINT: USER-ACTIVITY-PUSH-COMMITS: it only uses the doer's action time, it doesn't use git commit's time
return hdata, db.GetEngine(ctx).
Select(groupBy+" AS timestamp, count(user_id) as contributions").
Table("action").