Commit Graph

26 Commits (dbe9c11238923d8442623fae5eddbac4226ebc96)

Author SHA1 Message Date
guillep2k 93860af542
Fix SQLite concurrency problems by using BEGIN IMMEDIATE () ()
Lunny Xiao d151503d34 Upgrade xorm to v0.8.0 ()
Lunny Xiao f83db078f0 Move database settings from models to setting ()
* 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
Tamal Saha 171b359877 Use gitea forked macaron ()
Signed-off-by: Tamal Saha <tamal@appscode.com>
Lunny Xiao e7d4895732
Move commit repo action from models to repofiles package ()
* move commit repo action from models to repofiles package

* fix unit tests
Lunny Xiao aa7c34cf86 Fix error log when loading issues caused by a xorm bug ()
* fix error log when loading issues caused by a xorm bug

* upgrade packages

* fix fmt

* fix Consistency

* fix tests
Richard Mahn 2262811e40 Fixes 4762 - Content API for Creating, Updating, Deleting Files ()
Lunny Xiao 0751153613
refactor issue indexer, add some testing and fix a bug ()
* refactor issue indexer, add some testing and fix a bug

* fix error copyright year on comment header

* issues indexer package import keep consistent
Lunny Xiao 830ae61456 Refactor issue indexer ()
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