Commit Graph

66 Commits (989dd5502cad270b461f8c59cf186638dc9a4f16)

Author SHA1 Message Date
Lauris BH 69e2ab1611 Allow administrator to create repository for any organization ()
Lauris BH 4a8ee0b5cc
Check that repositories can only be migrated to own user or organizations ()
* Repositories can only migrated to own user or organizations

* Add check for organization that user does not belong to

* Allow admin to migrate repositories for other users
David Schneiderbauer 0b3ea42847 hide issues from org private repos w/o team assignment ()
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 ccd3577970 Fix repository search function ()
* Fix and remove FIXME

* Respect membership visibility

* Fix/rewrite searchRepositoryByName function

* Add unit tests

* Add integration tests

* Remove Searcher completely

* Remove trailing space
Morlinest c2346e4469 Add repository search unit and integration tests ()
* 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
Morlinest 80b430d7c0 Fix /api/repo/search integration tests ()
Ethan Koenig 49df677c47 Check for access in /repositories/:id ()
* Check for access in /repositories/:id

* Integration test
Aaron Walker 6a3c03762a API: support '/orgs/:org/repos' ()
* API: support '/orgs/:org/repos'
Ethan Koenig 93a1de4842 Fix repo API bug ()
Don't require token when not necessary
Ethan Koenig 8f1d62ad3b Fix GET /users/:username/repos endpoint ()
Ethan Koenig f1adaef458 Less verbose integration tests ()
* Helper functions for intergration test boilerplate
Ethan Koenig 4c0e567062 Fix improper setup for integration tests ()
Ethan Koenig 61716bd8f7 Display URLs in integration test logs ()
Lunny Xiao 0308d44a16 fix and improve integration test ()
Lunny Xiao 61b08b5c01 bug fixed for API to get user's repos ()
* bug fixed for API to get user's repos

* add tests and fix another place

* test user2 since user1 has no repos