summaryrefslogtreecommitdiffstats
path: root/models/repo_list.go
Commit message (Collapse)AuthorAgeFilesLines
* Include description in repository search. (#7942)David Svantesson2019-08-251-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add description in repository search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Refactor SearchRepositoryByName with a general function SearchRepository Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Allow to specify if description shall be included in API repo search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add new app.ini setting for whether to search within repo description. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Search keyword in description (if setting enabled) on: - Explore page - Organization profile page - User profile page - Admin repo page Do not search keyword in description on: - Any non-keyword search (not relevant) - Incremental search (uses API) Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Put parameters related to keyword directly after it Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test cases for including (and not including) repository description in search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Rename test function from TestSearchRepositoryByName to TestSearchRepository. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make setting SEARCH_REPO_DESCRIPTION default to true Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Change repo search to use exact match for topic search. (#7941)David Svantesson2019-08-221-1/+5
| | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix error log when loading issues caused by a xorm bug (#7271)Lunny Xiao2019-06-231-1/+1
| | | | | | | | | | | | * fix error log when loading issues caused by a xorm bug * upgrade packages * fix fmt * fix Consistency * fix tests
* Add golangci (#6418)kolaente2019-06-121-13/+13
|
* SearchRepositoryByName improvements and unification (#6897)zeripath2019-05-151-62/+70
|
* Allow to set organization visibility (public, internal, private) (#1763)Rémy Boulanouar2019-02-181-0/+35
|
* This commit will reduce join star, repo_topic, topic tables on repo search, ↵Lunny Xiao2018-10-301-36/+16
| | | | | | | | so that fix extra columns problem on mssql (#5136) * This commit will reduce join star, repo_topic, topic tables on repo search, so that fix extra columns problem on mssql * fix tests
* feat(topic): search keyword by splitting provided values by , (#4939)Bo-Yi Wu2018-10-171-5/+8
|
* feat(repo): support search repository by topic name (#4505)Bo-Yi Wu2018-09-131-3/+30
| | | | * feat(repo): support search repository by topic name
* Added repository search ordered by stars or forks. Forks column in admin ↵Alexey Terentyev2018-05-241-0/+4
| | | | | | | | | | | | | repo list. (#3969) * Added repository search order by stars or forks. Added Forks column to admin repository list. Signed-off-by: Alexey Terentyev <axifnx@gmail.com> * Renamed search repo template Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Global code search support (#3664)Lunny Xiao2018-03-161-0/+25
| | | | | | | | | | | | * add global code search on explore * fix bug when no anyone public repos * change the icon * fix typo and add UnitTypeCode check for login non-admin user * fix ui description when no match
* Add repo-sync-releases admin command (#3254)Sandro Santilli2017-12-311-0/+7
| | | | | | | | | | | | | | | | | | * Add repo-sync-releases admin command Will help recovering corrupted database, see #3247 * 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
* Sort repos in issues dashboard sidebar (#3072)Ethan Koenig2017-12-041-0/+12
| | | | | | * Sort repos in issues dashboard sidebar * Sort repos by name
* Add search mode option to /api/repo/search (#2756)Morlinest2017-10-271-31/+42
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix repository search function (#2689)Morlinest2017-10-171-51/+38
| | | | | | | | | | | | | | | | * Fix and remove FIXME * Respect membership visibility * Fix/rewrite searchRepositoryByName function * Add unit tests * Add integration tests * Remove Searcher completely * Remove trailing space
* Remove redudant functions and code (#2652)Morlinest2017-10-101-80/+12
| | | * Remove redudant functions and code
* Use custom type and constants to hold order by options (#2572)Morlinest2017-09-221-13/+32
|
* Fix missing collabrative repos (#2367)Lunny Xiao2017-08-241-24/+26
| | | | | | | | * fix missing collabrative repos * fix bug of collabrative * fix SQL quotes
* Add collaborative repositories to the dashboard (#2205)Bwko2017-08-231-26/+30
| | | | | | | | | | * Add collaborative repositories to the dashboard Remove some unused code from the Dashboard func * fix some bug and some refactor * fix tests
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-031-0/+5
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* Improve dashboard repo search (#1652)Andrey Nering2017-05-091-3/+0
| | | | | | | | | | * Add VueJS * Improve dashboard search * Fix tab switching * Fix input autofocus
* Generate swagger json (#1402)Antoine GIRARD2017-05-021-9/+20
| | | | | | | - Generate swagger.json into public/ - Add swagger-ui auto-installation - Add footer link to local swagger-ui - Add /swagger url for using app url. - Fix Swagger-UI version via git tag
* Simplify RepositoryList.loadAttributes() (#1211)Ethan Koenig2017-03-111-12/+5
|
* move all repo list functions as a standalone file (#1061)Lunny Xiao2017-02-271-0/+271