diff options
author | Morlinest <morlinest@gmail.com> | 2017-10-26 23:16:13 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-10-27 00:16:13 +0300 |
commit | ddb7f59ef414ffad8dc2485055c246aaea0507d7 (patch) | |
tree | 1e0f10f02b05896a43f609dd91a29d727e1b4a2a /models/issue_indexer.go | |
parent | 4d01ecaef350c6df0c27913f05cc0537bed5f7e9 (diff) | |
download | gitea-ddb7f59ef414ffad8dc2485055c246aaea0507d7.tar.gz gitea-ddb7f59ef414ffad8dc2485055c246aaea0507d7.zip |
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
Diffstat (limited to 'models/issue_indexer.go')
-rw-r--r-- | models/issue_indexer.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/models/issue_indexer.go b/models/issue_indexer.go index 18c6f281b2..e43dfc9fae 100644 --- a/models/issue_indexer.go +++ b/models/issue_indexer.go @@ -28,10 +28,11 @@ func populateIssueIndexer() error { batch := indexer.IssueIndexerBatch() for page := 1; ; page++ { repos, _, err := SearchRepositoryByName(&SearchRepoOptions{ - Page: page, - PageSize: 10, - OrderBy: SearchOrderByID, - Private: true, + Page: page, + PageSize: 10, + OrderBy: SearchOrderByID, + Private: true, + Collaborate: util.OptionalBoolFalse, }) if err != nil { return fmt.Errorf("Repositories: %v", err) |