Commit Graph

17 Commits (fa165621ed8c94722652e76d6853d0a0a41bfc5e)

Author SHA1 Message Date
kolaente 6759237eda User action heatmap ()
* 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
Dennis Menschel 9c0a374f3f Fix integer constant overflows in tests ()
* Use integer limit value [1] instead of hard-coded magic constant for
  NonexistentID.

* Explicitly use int64 in order to avoid the following errors on 32 bit
  architectures:

  # code.gitea.io/gitea/integrations
  ./api_admin_test.go:50:34: constant 9223372036854775807 overflows int
  ./api_token_test.go:47:34: constant 9223372036854775807 overflows int
  [...]
  # code.gitea.io/gitea/models
  ./action_test.go:179:15: constant 9223372036854775807 overflows int

[1] https://golang.org/pkg/math/#pkg-constants

Signed-off-by: Dennis Menschel <menschel-d@posteo.de>
Ethan Koenig d27d720f05 Use unique temp dirs in unit tests ()
* Use unique temp dirs in unit tests

* Remove temp dirs after tests run

* os.RemoveAll -> removeAllWithRetry
Lauris BH 3a9c698821
Force remove test repo root path in case previous test is still locking it ()
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
Antoine GIRARD cc7b8e3379 Add more bench ()
* Improve makefile + Add benchs

* Apply recommendations of @ethantkoenig
Ethan Koenig befa7445d2 Unit tests for routers/repo/issue_label ()
Lunny Xiao 41d6afe0e7 Fix compile failed without gcc ()
* fix comile failed without gcc

* add sqlite tag for unit test
Ethan Koenig 91f3d77ceb Unit tests for wiki routers ()
Ethan Koenig 1028ef2def Don't print SQL in unit tests ()
* Add GITEA_UNIT_TESTS_VERBOSE environment variable to enable printing SQL
David Schneiderbauer 1eedd983ea Complete push webhooks ()
* implemented missing 'delete' push webhooks

moreover created ActionDeleteBranch and ActionDeleteTag

* add CommitRepoAction tests for tag/branch creation/deletion

* fixed error where push webhook not called if is new branch or tag
removed unnecessary code

* moved prepare unit test environment into separate method to be used across unit tests

* add missing if clause in pushUpdate

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Lunny Xiao 005900baea Use created & updated instead BeforeInsert & BeforeUpdate ()
* use created & updated instead BeforeInsert & BeforeUpdate

* fix vendor checksum

* only show generated SQL when development mode

* remove extra update column updated_unix

* remove trace config
Ethan Koenig 7e0654bd9e Fix counts on issues dashboard ()
* Fix counts on issues dashboard

* setupSess -> setupSession

* Unit test

* Load repo owners for issues
Ethan Koenig a27863b6d1 Fix issue updated_unix bug ()
Lauris BH 1d032f5220 Fix compiling without sqlite and gcc ()
Ethan Koenig 8fcda0442e Fix search by issue type ()
* Fix search by issue type
Ethan Koenig 9f9289fc68 Run unused test
Ethan Koenig cf02cd7ba0 Fix and test for delete user ()
* Fix and test for delete user

* Run updates in batches

* Unit test