Commit Graph

15 Commits (3708ca8e2849ca7e36e6bd15ec6935a2a2d81e55)

Author SHA1 Message Date
Lunny Xiao cbd45471b1
Move access and repo permission to models/perm/access ()
* Move access and repo permission to models/perm/access

* Remove unnecessary code
6543 f034ee6cf0
PullService lock via pullID ()
* lock pull on git&db actions ...

* add TODO notes

* rename prQueue 2 prPatchCheckerQueue

* fmt
Lunny Xiao b06b9a056c
Move organization related structs into sub package ()
* Move organization related structs into sub package

* Fix test

* Fix lint

* Move more functions into sub packages

* Fix bug

* Fix test

* Update models/organization/team_repo.go

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>

* Apply suggestions from code review

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>

* Fix fmt

* Follow suggestion from @Gusted

* Fix test

* Fix test

* Fix bug

* Use ctx but db.DefaultContext on routers

* Fix bug

* Fix bug

* fix bug

* Update models/organization/team_user.go

* Fix bug

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao a6d4a8546a
Fix rename notification bug ()
Lunny Xiao 5723240490
Some repository refactors ()
* some repository refactors

* remove unnecessary code

* Fix test

* Remove unnecessary banner
Lunny Xiao 719bddcd76
Move repository model into models/repo ()
* Some refactors related repository model

* Move more methods out of repository

* Move repository into models/repo

* Fix test

* Fix test

* some improvements

* Remove unnecessary function
Lunny Xiao 1fee11d69a
Move accessmode into models/perm ()
Lunny Xiao a666829a37
Move user related model into models/user ()
* Move user related model into models/user

* Fix lint for windows

* Fix windows lint

* Fix windows lint

* Move some tests in models

* Merge
Nils Dralle f374789fe2
Fix private repo permission problem ()
* Change user access permission

* Add string 'transfer_notices_3'

* Add 3rd transfer note to transfer dialog

* Add test

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
6543 a4148c0f12
Repository transfer has to be confirmed, if user can not create repo for new owner ()
* make repo as "pending transfer" if on transfer start doer has no right to create repo in new destination

* if new pending transfer ocured, create UI & Mail notifications
6543 a19447aed1
migrate from com.* to alternatives ()
* remove github.com/unknwon/com from models

* dont use "com.ToStr()"

* replace "com.ToStr" with "fmt.Sprint" where its easy to do

* more refactor

* fix test

* just "proxy" Copy func for now

* as per @lunny
6543 13bc82009c
API endpoint for repo transfer ()
* squash

* optimize

* fail before make any changes

* fix-header
Lunny Xiao d32eac44b1 Move RepoWorkingPool to services/repository package ()
* Move RepoWorkingPool to services/repository package

* Make repoWorkingPool private

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Lunny Xiao 77730db257
Move repoWorkPool outside rename/transfer repository ()
* Move repoWorkPool outside rename/transfer repository

* fix import

* Fix test
Lunny Xiao 21ae9838e0
Move transfer repository and rename repository on a service package and start action notification ()
* move transfer repository and rename repository on a service package and start action notification

* remove unused codes

* fix lint

* fix bugs

* fix test

* fix test

* fix test

* fix lint

* update go mod and sum