Commit Graph

1921 Commits

Author SHA1 Message Date
Konrad Langenberg
fda0b71fce Moved struct inside migration
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-10 23:39:13 +02:00
Konrad
81dfd9e15e Merge branch 'master' of https://github.com/go-gitea/gitea 2017-10-10 22:57:04 +02:00
Morlinest
dff26e25ca Remove redudant functions and code (#2652)
* Remove redudant functions and code
2017-10-10 22:37:18 +02:00
Morlinest
c2346e4469 Add repository search unit and integration tests (#2575)
* Add more repo search tests

* Fix repo search tests

* Always test returned repos length

* Add test with lower pagesize limit (test more pages)

* Add and fix /api/repo/search integration tests

* Simplify unit tests code

* Simplify and unify integration tests code

* Improve test coverage

* Temporary fix tests due to bugs in current repo search implementation

* Revert removing not nil Searcher

* Add more checks to tests

* Simplify privacy checks in /api/repo tests

* Temporary remove privacy check from repo search tests
2017-10-10 09:23:29 +08:00
David Schneiderbauer
ebac051e72 Rewrite migrations to not depend on future code changes (#2604)
* v38 migration used an outdated version of RepoUnit model (#2602)

* change repoUnit model in migration

* fix v16 migration repo_unit table

* fix lint error

* move type definition inside function

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* fix lint error

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* Fix time tracking migration

* Refactor code

* Fix migration from Gogs

* v38 migration used an outdated version of RepoUnit model (#2602)

* change repoUnit model in migration

* fix v16 migration repo_unit table

* fix lint error

* move type definition inside function

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* fix lint error

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* Fix time tracking migration

* Refactor code

* Fix migration from Gogs

* add error check

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* Additiomal fixes for migrations

* Fix timetracking migration

* Add back nil check
2017-10-08 19:08:18 +08:00
Julian Scholle
92123fe82a GPG key email verification no longer case sensitive (#2661) (#2663)
* GPG key email verification no longer case sensitive (#2661)

* case insensitive GPG key email verification now cached (#2661)

Signed-off-by: Julian Scholle <julian.scholle@googlemail.com>
2017-10-06 23:28:21 +03:00
Kazuki Sawada
ffab139c91 table pull_request wasn't updated correctly (#2649)
* Fix: table `pull_request` won't be updated correctly

* Update also status column when manually merged
2017-10-06 00:25:40 +03:00
Ethan Koenig
aa962deec0 Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
Konrad Langenberg
752406c40c Reimplemented usage of Comment Depenendent Issue (in struct) in comments
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-04 23:37:39 +02:00
Konrad Langenberg
9609609627 Merge branch 'master' of https://github.com/go-gitea/gitea
Signed-off-by: Konrad <konrad@kola-entertainments.de>

# Conflicts:
#	models/migrations/migrations.go
#	models/migrations/v44.go
2017-10-04 23:36:38 +02:00
Konrad Langenberg
d7a2ffcc69 Merge branch 'master' of https://github.com/go-gitea/gitea
Signed-off-by: Konrad <konrad@kola-entertainments.de>

# Conflicts:
#	models/migrations/migrations.go
#	models/migrations/v44.go
2017-10-04 23:15:30 +02:00
Konrad Langenberg
de45d094fa Removed unused DependentIssue in Comment struct
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-04 23:10:10 +02:00
Morlinest
a79af9cf6f Fix index column deletion (#2651) 2017-10-04 14:26:13 +03:00
Konrad Langenberg
7507e89cee Optimized Issue Dependency Exists
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-03 15:28:06 +02:00
Konrad Langenberg
63ce7d0f82 Optimized Issue Dependency Left
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-03 15:27:06 +02:00
Konrad Langenberg
79f0315289 Improved Check for dependencies left
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-03 15:00:31 +02:00
Konrad Langenberg
b7e47f3bda Improved Check for dependencies left
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-03 14:55:18 +02:00
Ethan Koenig
4b2c8ca533 Use session when creating user (#2638) 2017-10-03 09:29:26 +03:00
Morlinest
a04718a2a6 Remove repo unit index (#2621)
* Remove repo unit index

* Fix sqlite
2017-10-02 23:22:25 +03:00
Lunny Xiao
a8717e5e3a Use AfterLoad instead of AfterSet on Structs (#2628)
* use AfterLoad instead of AfterSet on Structs

* fix the comments on AfterLoad

* fix the comments on action AfterLoad
2017-10-01 19:52:35 +03:00
Konrad Langenberg
4dd4fad251 Removed unessesary comment
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-10-01 18:00:31 +02:00
Morlinest
1ad902d529 Fix implementation of repo Home func (#2601)
* Fix implementation of repo Home func

* Make fixture changes for testing
2017-10-01 16:50:56 +03:00
David Schneiderbauer
26e49b8e3d Fix doubled issue tab introduced in migration v16 (#2611)
* fix duplicate issue tab as UnitTypeIssue and UnitTypeExternalTracker are existing at the same time

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-09-28 16:14:51 +03:00
Konrad
7a79dbc7ee Merge branch 'master' of https://github.com/go-gitea/gitea 2017-09-27 18:01:36 +02:00
Konrad Langenberg
b8d0fc2683 Fixed a bug with comments not showing correctly
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-27 17:49:56 +02:00
Morlinest
cc84ca40d7 Remove redudant issue LoadAttributes() calls (#2614) 2017-09-27 09:41:52 -03:00
Konrad Langenberg
a80fbb2a87 Fixed issuecanbeclosed
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-26 22:06:32 +02:00
Konrad
ab9f7b384d Merge branch 'master' of https://github.com/go-gitea/gitea 2017-09-26 16:44:47 +02:00
Lunny Xiao
dd55534b82 Reduce usage of allcols on update (#2596)
* reduce usage of allcols on update

* fix bug and tests
2017-09-25 12:59:27 +08:00
Ethan Koenig
fa28de820e Make indexer code more reusable (#2590) 2017-09-25 03:08:48 +03:00
Konrad Langenberg
98604985b1 fixed lint + gofmt
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 17:39:47 +02:00
Konrad Langenberg
29aafb3ef8 Implemented custom type DependencyType
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 17:31:47 +02:00
Konrad Langenberg
fe8181af73 Simplified checking for open dependencies
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 16:29:25 +02:00
Konrad Langenberg
837c917798 Moved error check before range
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 16:27:50 +02:00
Konrad Langenberg
e58f703b08 gofmt
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 13:29:45 +02:00
Konrad Langenberg
ae522299b9 Fixed Lint
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 13:25:55 +02:00
Konrad Langenberg
5fde62ba3a Re-Added Migration
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 13:25:27 +02:00
Konrad Langenberg
8b4a48c4bc Merge branch 'master' of https://github.com/go-gitea/gitea
Signed-off-by: Konrad <konrad@kola-entertainments.de>

# Conflicts:
#	models/migrations/migrations.go
#	models/migrations/v42.go
2017-09-24 13:20:34 +02:00
Konrad Langenberg
8207f32be6 Added migration
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 16:19:59 +02:00
Konrad Langenberg
c1ea3f588d Simplified listing all blocking & blocked by issues in one query
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 16:08:20 +02:00
Konrad Langenberg
8debb0a272 fixed typo
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 15:24:43 +02:00
Konrad Langenberg
d9aea3d646 fixed typo
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 15:24:03 +02:00
Konrad Langenberg
9b467a309e Simplified checking of open dependencies left
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 15:20:58 +02:00
Konrad Langenberg
163a0a3822 Simplified checking of open dependencies into one query
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 15:18:29 +02:00
Konrad Langenberg
f707d54598 simplified depExists method
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:59:31 +02:00
Konrad Langenberg
1f8ce67366 added error check for dependency exists function
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:29:41 +02:00
Konrad Langenberg
0eaf0404cc Switched to constants for dependency type
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:25:14 +02:00
Konrad Langenberg
bccb37c08c Beautified creation of new dependency
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:14:41 +02:00
Konrad Langenberg
301f247efe Fixed compatibility with newer xorm version
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:08:39 +02:00
Lauris BH
2db424c3f1 Fix broken migration to add can_push field back to table (#2574) 2017-09-23 16:45:41 +08:00