]> source.dussan.org Git - gitea.git/commit
Add search mode option to /api/repo/search (#2756)
authorMorlinest <morlinest@gmail.com>
Thu, 26 Oct 2017 21:16:13 +0000 (23:16 +0200)
committerLauris BH <lauris@nix.lv>
Thu, 26 Oct 2017 21:16:13 +0000 (00:16 +0300)
commitddb7f59ef414ffad8dc2485055c246aaea0507d7
tree1e0f10f02b05896a43f609dd91a29d727e1b4a2a
parent4d01ecaef350c6df0c27913f05cc0537bed5f7e9
Add search mode option to /api/repo/search (#2756)

* Add repo type option to /api/repo/search

* Add tests and fix result of collaborative filter in specific condition

* Fix/optimize search & tests

* Improve integration tests

* Fix lint errors

* Fix unit tests

* Change and improve internal implementation of repo search

* Use NonexistentID

* Make search api more general

* Change mirror and fork search behaviour

* Fix tests & typo in comment
16 files changed:
integrations/api_repo_test.go
models/fixtures/access.yml
models/fixtures/org_user.yml
models/fixtures/repository.yml
models/fixtures/team.yml
models/fixtures/team_repo.yml
models/fixtures/team_user.yml
models/fixtures/user.yml
models/issue_indexer.go
models/repo_list.go
models/repo_list_test.go
models/user_test.go
public/swagger.v1.json
routers/api/v1/repo/repo.go
routers/home.go
routers/user/profile.go