Commit Graph

14 Commits (25c49cf930cb0add769c5596a7317ada1c5f9da7)

Author SHA1 Message Date
Ethan Koenig a89592d4ab Reduce repo indexer disk usage ()
Sandro Santilli 8cd987af0c Add repo-sync-releases admin command ()
* Add repo-sync-releases admin command

Will help recovering corrupted database, see 

* Load repos in chunks of 10, exit with error if unable to get a list, scan private repos, fix typo

* Fix debug output about num releases

* Introduce RepositoryListDefaultPageSize constant, set to 64

Use it from the new admin command

* Use RepositoryListDefaultPageSize in more places

* Document RepositoryListDefaultPageSize
Ethan Koenig 4c9341f689 Fix bugs in issue dashboard stats ()
Ethan Koenig 6abfa48c0e Remove unnecessary updates to issue indexer ()
Ethan Koenig 0f6dc411df Remove unnecessary IssueList attribute loads ()
Morlinest ddb7f59ef4 Add search mode option to /api/repo/search ()
* 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
Morlinest dff26e25ca Remove redudant functions and code ()
* Remove redudant functions and code
Ethan Koenig fa28de820e Make indexer code more reusable ()
Ethan Koenig b0f7457d9e Improve issue search ()
* Improve issue indexer

* Fix new issue sqlite bug

* Different test indexer paths for each db

* Add integration indexer paths to make clean
Ethan Koenig 7e0654bd9e Fix counts on issues dashboard ()
* Fix counts on issues dashboard

* setupSess -> setupSession

* Unit test

* Load repo owners for issues
Ethan Koenig b38b61bbc1 Fix import order ()
Bo-Yi Wu 95574a3640 fix: Admin can see all private repositories on Explore page. ()
* fix: Admin can see all private repositories on Explore page.

* refactor: fix session
bit 490d3771f7 s/fields/terms ()
use terms instead of fields as variable name to avoid confusion: NewPhraseQuery(terms []string, field string)
Ethan Koenig 833f8b94c2 Search bar for issues/pulls ()