summaryrefslogtreecommitdiffstats
path: root/models/user_heatmap.go
Commit message (Collapse)AuthorAgeFilesLines
* Add hide activity option (#11353)l-jonas2020-06-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add hide activity option This closes https://github.com/go-gitea/gitea/issues/7927 * Adjust for linter * Adjust for linter * Add tests * Remove info that admins can view the activity * Adjust new tests for linter * Rename v139.go to v140.go * Rename v140.go to v141.go * properly indent * gofmt Co-authored-by: Jonas Lochmann <git@inkompetenz.org> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Move database settings from models to setting (#7806)Lunny Xiao2019-08-241-4/+4
| | | | | | | | | | | | | | | | | | * move database settings from models to setting * update docs * fix checkout pr * fix tests * fix lint * remove unsupported tidb options * correct wrong variable name * remove tidb totally
* Display ui time with customize time location (#7792)Lunny Xiao2019-08-151-4/+4
| | | | | | | | | | | | | | | | | | * display ui time with customize time location * fix lint * rename UILocation to DefaultUILocation * move time related functions to modules/timeutil * fix tests * fix tests * fix build * fix swagger
* Only count users own actions for heatmap contributions (#5647)Julian2019-01-061-3/+13
| | | | Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
* Fixing MSSQL timestamp type (#5511)Christopher2018-12-111-1/+1
| | | | | | MSSQL is using the wrong type here which results in a strconv.ParseInt: parsing "2018-12-07T00:00:00Z": invalid syntax error. The added datediff(SECOND, '19700101', x) results in the unix timestamp to be returned. Signed-off-by: Christopher Dziomba <christopher.dziomba@gmail.com>
* Fixed heatmap not working in mssql (#5248)kolaente2018-11-011-2/+4
|
* fix compatibility heatmap with mysql 8 (#5232)Stanislav2018-10-311-1/+1
|
* Fix JSON result of empty array (#5154)Antoine GIRARD2018-10-241-3/+4
|
* User action heatmap (#5131)kolaente2018-10-231-0/+40
* Added basic heatmap data * Added extra case for sqlite * Built basic heatmap into user profile * Get contribution data from api & styling * Fixed lint & added extra group by statements for all database types * generated swagger spec * generated swagger spec * generated swagger spec * fixed swagger spec * fmt * Added tests * Added setting to enable/disable user heatmap * Added locale for loading text * Removed UseTiDB * Updated librejs & moment.js * Fixed import order * Fixed heatmap in postgresql * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: kolaente <konrad@kola-entertainments.de> * Added copyright header * Fixed a bug to show the heatmap for the actual user instead of the currently logged in * Added integration test for heatmaps * Added a heatmap on the dashboard * Fixed timestamp parsing * Hide heatmap on mobile * optimized postgresql group by query * Improved sqlite group by statement