Lunny Xiao
eabbddcd98
Restrict permission check on repositories and fix some problems ( #5314 )
...
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
6 years ago
Bo-Yi Wu
ea20adaa84
feat(repo): support search repository by topic name ( #4505 )
...
* feat(repo): support search repository by topic name
6 years ago
SagePtr
bf55276189
Fix redirect with non-ascii branch names ( #4764 ) ( #4810 )
...
* Fix redirect with non-ascii branch names (#4764 )
* Add integration tests for non-ascii branch redirect
* Fix mysql test and coverage test
6 years ago
David Schneiderbauer
0b3ea42847
hide issues from org private repos w/o team assignment ( #4034 )
6 years ago
Tris Forster
85d14cc229
Symlink icons ( #1416 ) ( #3826 )
...
* Updated vendor code for code.gitea.io/git
* Display symlinks correctly for files and directories
* Added symlink tests
* Applied silverwinds stylesheet patch
Signed-off-by: Tris Forster <tris.git@shoddynet.org>
7 years ago
Morlinest
ddb7f59ef4
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
7 years ago
Lunny Xiao
6eeadb2082
Hide unactive on explore users and some refactors ( #2741 )
...
* hide unactive on explore users and some refactors
* fix test for removed Organizations
* fix test for removed Organizations
* fix imports
* fix logic bug
* refactor the toConds
* Rename TestOrganizations to TestSearchUsers and add tests for users
* fix other tests
* fix other tests
* fix watchers tests
* fix comments and remove unused code
7 years ago
Morlinest
ccd3577970
Fix repository search function ( #2689 )
...
* Fix and remove FIXME
* Respect membership visibility
* Fix/rewrite searchRepositoryByName function
* Add unit tests
* Add integration tests
* Remove Searcher completely
* Remove trailing space
7 years ago
Morlinest
ca68a75b5b
Expand fixtures ( #2571 )
...
* Add more repo search tests
* Add and fix /api/repo/search integration tests
* Add owner to access table for organization repositories
* Remove tests
7 years ago
Antoine GIRARD
7c417bbb0d
Only check at least one email gpg key ( #2266 )
...
* Only require one email (possibly not yet validated)
* Update message error and check validation of commit
* Add integrations tests
* Complete integration for import
* Add pre-check/optimization
* Add some test (not finished)
* Finish
* Fix fixtures
* Fix typo
* Don't guess key ID
7 years ago
Ethan Koenig
fd45a032a7
Fix bare-repo bugs ( #2199 )
...
* Fix bare-repo bugs
* Integration tests
* Unused import
7 years ago
Ethan Koenig
ce9b86082c
Consolidate boilerplate in integration tests ( #1979 )
7 years ago
Ethan Koenig
7e6ff69c00
Fix 500 for GET /teams/:id endpoints ( #1811 )
...
* Fix 500 for GET /teams/:id endpoints
* Integration test for GET /team/:id
* Clean up integration test
8 years ago
Ethan Koenig
cf02cd7ba0
Fix and test for delete user ( #1713 )
...
* Fix and test for delete user
* Run updates in batches
* Unit test
8 years ago
Lauris BH
0144817971
Do not allow commiting to protected branch from online editor ( #1502 )
...
* Do not allow commiting to protected branch from online editor
* Add editor integration tests for adding new file and not allowing to add new file to protected branch
8 years ago
Ethan Koenig
3803f257fb
Move user_follow to separate file ( #1210 )
...
Also add unit tests
8 years ago
Bo-Yi Wu
83b6d03231
fix: Wrong repo list on Explore page if user already loggin. ( #1009 )
...
* fix: Wrong repo list on Explore page if user already loggin.
* fix: code readable.
* fix: declare variable
8 years ago
Bo-Yi Wu
43c94d0a6c
test: Add testing for GetUserFork function ( #944 )
8 years ago
Morgan Bazalgette
442145dbd3
Fix public activity showing private repos ( #892 )
...
* Fix public activity showing private repos (#811 )
Signed-off-by: Morgan Bazalgette <the@howl.moe>
* error check after setting is_private to true
* Add test for UpdateRepository w/ visibility change
8 years ago
Ethan Koenig
5fbab97373
Fix broken test fixture ( #859 )
8 years ago
Ethan Koenig
5972aa9af3
Fix inconsistencies in test fixtures
8 years ago
Bo-Yi Wu
b6da658553
test: Add user mail testing. ( #833 )
8 years ago
Bo-Yi Wu
d7d094bd8a
fix: ignore email notifications if user is not active. ( #820 )
8 years ago
Ethan Koenig
a2412492da
Unit tests and bug fix for models/org
8 years ago
Ethan Koenig
4b23e6a694
Unit tests for models/action ( #619 )
8 years ago
Ethan Koenig
6072b03291
Unit tests for models/access.go ( #606 )
8 years ago
Ethan Koenig
72bfabfada
Unit tests for models/pull.go
8 years ago