summaryrefslogtreecommitdiff
path: root/app/services/projects/transfer_service.rb
Commit message (Collapse)AuthorAgeFilesLines
* Gitlab::Shell works on shard name, not pathZeger-Jan van de Weg2018-04-251-1/+1
| | | | | | | | | | | Direct disk access is done through Gitaly now, so the legacy path was deprecated. This path was used in Gitlab::Shell however. This required the refactoring in this commit. Added is the removal of direct path access on the project model, as that lookup wasn't needed anymore is most cases. Closes https://gitlab.com/gitlab-org/gitaly/issues/1111
* Cache personal projects count.Andreas Brandl2018-04-061-0/+2
| | | | Closes #37462.
* Fix Projects::TransferService#write_repository_config methodDouglas Barbosa Alexandre2018-01-031-1/+1
|
* Refactoring Project#write_repository_configDouglas Barbosa Alexandre2018-01-031-4/+1
|
* Update project full path in .git/config when transfering a projectDouglas Barbosa Alexandre2018-01-031-0/+10
|
* Fix project transfer with hashed-storage attachmentsNick Thomas2017-11-171-1/+11
|
* Fix hashed storage with project transfers to another namespacesh-port-hashed-storage-transfer-fixStan Hu2017-11-161-9/+17
| | | | | | | | With hashed storage enabled, we would fail to transfer a project to another namespace because the provided paths were wrong. Instead, we should not attempt to move paths at all. Closes gitlab-org/gitlab-ee#4056
* Added some extra TODOs for the Legacy Storage refactorGabriel Mazetto2017-08-011-0/+2
|
* Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-011-1/+1
|
* Expires full_path cache after repository is transferredDouglas Barbosa Alexandre2017-06-291-0/+1
|
* Rollback project folder move after error in Projects::TransferService30213-project-transfer-move-rollbackJames Edwards-Jones2017-06-201-40/+74
|
* Refactored transfer_service #execute actionprevent-project-transferJose Ivan Vargas2017-05-221-10/+6
|
* minor adjustments to the specsJose Ivan Vargas2017-05-221-1/+1
|
* Renamed some messages and refactored the project_edit class to a functionJose Ivan Vargas2017-05-221-2/+2
|
* Prevent project transfer if a new group is not selectedJose Ivan Vargas2017-05-221-1/+6
|
* Enable and autocorrect the CustomErrorClass copSean McGivern2017-03-011-1/+1
|
* Use Namespace#full_path instead of Namespace#pathDmitriy Zaporozhets2017-02-141-3/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Refresh authorizations when transferring projectsrefresh-permissions-when-moving-projectsYorick Peterse2017-02-071-2/+15
| | | | | | | | This ensures that project authorizations are refreshed when moving a project from one namespace to another. When doing so the permissions for all users of both the old and new namespaces are refreshed. See #26194 for more information.
* Rename pages namespace or project path when changedKamil Trzcinski2017-01-311-0/+3
| | | | - Move UploadsTransfer to ProjectTransfer and inherit from this to UploadsTransfer and PagesTransfer
* Remove event caching codeYorick Peterse2016-11-231-3/+0
| | | | | | | | | | | | | | | | | | | Flushing the events cache worked by updating a recent number of rows in the "events" table. This has the result that on PostgreSQL a lot of dead tuples are produced on a regular basis. This in turn means that PostgreSQL will spend considerable amounts of time vacuuming this table. This in turn can lead to an increase of database load. For GitLab.com we measured the impact of not using events caching and found no measurable increase in response timings. Meanwhile not flushing the events cache lead to the "events" table having no more dead tuples as now rows are only inserted into this table. As a result of this we are hereby removing events caching as it does not appear to help and only increases database load. For more information see the following comment: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6578#note_18864037
* Recreates missing group labels when moving project to another groupDouglas Barbosa Alexandre2016-10-191-0/+4
|
* Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-291-2/+2
|
* Fix CI testsKamil Trzcinski2016-05-121-1/+1
|
* Block renaming project or repository if it has container registry tagsKamil Trzcinski2016-05-091-0/+5
|
* Fix Error 500 due to stale cache when projects are renamed or transferredStan Hu2016-04-251-0/+2
| | | | Closes gitlab-org/gitlab-ee#506
* Change transfer service to use existing methodsFelipe Artur2016-04-141-15/+3
|
* Setup visibility level for project when transfering for a groupFelipe Artur2016-04-131-4/+17
|
* Added system hooks messages for renaming and transferring a projectSteve Norman2016-01-041-0/+3
|
* Fix: Images cannot show when projects' path was changeduploads_path_fixValery Sizov2015-10-141-0/+4
|
* Note the original location of a moved project when notifying users of the moveproject_movingValery Sizov2015-10-011-1/+1
|
* Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-111-6/+0
| | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-111-0/+6
| | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove satellitesDmitriy Zaporozhets2015-07-151-6/+0
|
* Fix transferring of project to another group using the API.Douwe Maan2015-07-111-8/+5
|
* notification on project movingnotification_on_project_movingValery Sizov2015-03-251-0/+3
|
* Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-1/+1
| | | | | | Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
* Make app works with strong paramsDmitriy Zaporozhets2014-06-261-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Refactor project transfer service. Add security check when create or ↵Dmitriy Zaporozhets2014-05-281-13/+62
| | | | | | transfer project into group Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Move all Context classes into ServicesDmitriy Zaporozhets2014-01-161-0/+22
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>