Commit Graph

1691 Commits (c7fb6e30870ea1abff13a8214107e0747d293320)

Author SHA1 Message Date
Ethan Koenig c0a7899416 Sort repos in issues dashboard sidebar ()
* Sort repos in issues dashboard sidebar

* Sort repos by name
Ethan Koenig 3c1b1ca78e Fix error message sanitiziation ()
Lauris BH 5dc37b187c
Add reactions to issues/PR and comments ()
Lunny Xiao b3d5ba6f90 Fix missing password length check when change password ()
* fix missing password length check when change password

* add tests for change password
Lunny Xiao 35cc5b0402
Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName ()
* remove GetRepositoryByRef and add GetRepositoryByOwnerAndName

* fix tests

* fix tests bug

* some improvements
Piotr Orzechowski 57edc3155f Default log level to Info without hardcoding it in installer ()
Lunny Xiao 13e59c8b7a remove unused variable ()
Ethan Koenig 91f3d77ceb Unit tests for wiki routers ()
Sandro Santilli 67b0d2175d Set OpenID support on by default when installing new instance ()
Duncan Ogilvie 551f3cbe42 Memory usage improvements ()
* govendor update code.gitea.io/git

Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>

* Greatly improve memory usage

Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
Antoine GIRARD 4035ab05fa Fix git lfs path ()
* add suffix .git

* Remove Content-Type on GET methods

* Add migrations to force creation before any further potential migration
Antoine GIRARD d99f4ab003 Git LFS lock api ()
* Implement routes

* move to api/sdk and create model

* Implement add + list

* List return 200 empty list no 404

* Add verify lfs lock api

* Add delete and start implementing auth control

* Revert to code.gitea.io/sdk/gitea vendor

* Apply needed check for all lfs locks route

* Add simple tests

* fix lint

* Improve tests

* Add delete test + fix

* Add lfs ascii header

* Various fixes from review + remove useless code + add more corner case testing

* Remove repo link since only id is needed.

Save a little of memory and cpu time.

* Improve tests

* Use TEXT column format for path + test

* fix mispell

* Use NewRequestWithJSON for POST tests

* Clean path

* Improve DB format

* Revert uniquess repoid+path

* (Re)-setup uniqueness + max path length

* Fixed TEXT in place of VARCHAR

* Settle back to maximum VARCHAR(3072)

* Let place for repoid in key

* Let place for repoid in key

* Let place for repoid in key

* Revert back
Vlad Temian 6ad4990a65 Add fingerprint to ssh key endpoints. ()
* Add fingerprint to ssh key endpoints.

* Update gitea sdk vendor
Ethan Koenig b7ebaf6d20 Various wiki bug fixes ()
* Update macaron

* Various wiki bug fixes
Lauris BH 0d4c63fd70
Fix go-get, src and raw urls to new scheme ()
Ethan Koenig 716ac1214f Enable admin to search by email ()
Lunny Xiao 061c501d54 Fix error when add user has full name to team ()
* fix error when add user has full name to team

* add comment for extra uname check
Ethan Koenig 40c545ddbc Fix files/commits of merged PRs ()
Timur Makarchuk dbb7715b0b Remove render issue link ()
* Remove function that does nothing

* Remove unused import
Lunny Xiao 10b54df2b2 Add dingtalk webhook ()
* add dingtalk webhook type

* add vendor

* some fixes

* fix name check

* fix name check & improvment
Michael Kuhn 420fc8efc2 Disable add key button if SSH is disabled ()
schaffman5 7e6c198f21 Apply LANDING_PAGE config options for logged in users ()
* Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'.

* Updated comments.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'.

* Updated comments.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Removed superfluous conditional and correct whitespace.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Update app.ini

Reverted new line.

* Formatting.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>
Ethan Koenig c3b6383b3a Fix comment API paths ()
Ethan Koenig 876bafb7ef Fix API status code for hook creation ()
* Fix API status code for hook creation

* Named constants for response statuses
Ethan Koenig d22a8dc022 Page parameter for repo search API ()
Ethan Koenig f26f4a7e01 Update swagger documentation ()
* Update swagger documentation

Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation

* Restore delete comments
Lauris BH ba2e0240c6
Add LFS object verification step after upload ()
* Add LFS object verification step after upload

* Fix file verification condition and small refactor

* Fix URLs

* Remove newline and return status 422 on failed verification

* Better error hadling
Lunny Xiao cdc4600725
Fix fork repository cycle to self ()
* fix fork repository cycle to self

* rename testForkRepo to traverseParentRepo
Ethan Koenig d91fe5254d Fix ignored errors in API route ()
* Fix ignored errors in API route
Lauris BH 08b124dd47
Fix API raw requests for commits and tags ()
Guillaume Dube 8798cf4e3b Set session and indexers' data files rel to AppDataPath ()
* Set session and indexers' data files rel to AppDataPath

The setting AppDataPath is now relative to the working directory.
The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions.
The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves.

* fix bug
Cum Gun eecaba2031 Configurable SSH key exchange algorithm and MAC suite ()
Ethan Koenig e6a97b6675 Use api.TrackedTime in API ()
* Use api.TrackedTime in API

* APIFormat() method

* Rename function
Ethan Koenig 513375c429 Make URL scheme unambiguous ()
* Make URL scheme unambiguous

Redirect old routes to new routes

* Fix redirects to new URL scheme, and update template

* Fix branches/_new endpoints, and update integration test
Ethan Koenig 5866eb2321 Code/repo search ()
Indexed search of repository contents (for default branch only)
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
Lauris BH eca05b09aa Add commit count caching ()
* Add commit count caching

* Small refactoring

* Add different key prefix for refs and commits

* Add configuratuion option to allow to change caching time or disable it
Bwko 3ab580c8d6 Add branch overiew page ()
* Add branch overiew page

* fix changed method name on sub menu

* remove unused code
Lunny Xiao 178bd498b9
fix imports
Lunny Xiao 219ca5cadb
some fixes
Lunny Xiao 6eeadb2082 Hide unactive on explore users and some refactors ()
* 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
Antoine GIRARD 619b9b5547 Move swagger-ui under /api/v1 ()
* Move swagger interface under /api/v1

* Update swagger-ui

* Add /api/swagger and prepare for multiple api version

* Update test links

* Fix footer link
spacetourist 7131c7d40d Configurable SSH cipher suite ()
* Configurable SSH cipher suite

* Update configuration file comment

* Add default in settings loading code

* Fix fmt and log messsage

* Remove default from code as this could probably might not be good idea
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
Jonas Franz f4190f8df8 Render plain text README.txt monospaced ()
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Lunny Xiao 9e865cee67 Merge password and 2fa page on user settings ()
* merge password and 2fa page on user settings
Lauris BH c1b0c9e7c4 Fix PR, milestone and label functionality if issue unit is disabled ()
* Fix PR, milestone and label functionality if issue unit is disabled or not assigned to user

* Fix multi-actions in PR page

* Change error message

* Fix comment update and delete functionality in PR
Lunny Xiao a75d5c72bb Fix plain readme didn't render correctly on repo home page ()
* fix plain readme didn't render correctly on repo home page

* fix missing render

* remove unused template variables
Lauris BH c7f4f07765 Integration test for activity page ()
* Integration test for activity page

* Small code refactoring for acitvity page

* Move activity stats calculation logic to model
Lauris BH f3833b7ce4 Create new branch from branch selection dropdown ()
* Create new branch from branch selection dropdown and rewrite it to VueJS

* Make updateLocalCopyToCommit as not exported

* Move branch name validation to model

* Fix possible race condition