Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
900d3079
Commit
900d3079
authored
May 28, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new Projects::TransferService class
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
aea79b80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+1
-1
lib/api/groups.rb
lib/api/groups.rb
+5
-3
No files found.
app/controllers/projects_controller.rb
View file @
900d3079
...
...
@@ -44,7 +44,7 @@ class ProjectsController < ApplicationController
end
def
transfer
::
Projects
::
TransferService
.
new
(
project
,
current_user
,
params
).
execute
::
Projects
::
TransferService
.
new
(
project
,
current_user
,
params
[
:project
]
).
execute
end
def
show
...
...
lib/api/groups.rb
View file @
900d3079
...
...
@@ -87,10 +87,12 @@ module API
# POST /groups/:id/projects/:project_id
post
":id/projects/:project_id"
do
authenticated_as_admin!
@
group
=
Group
.
find
(
params
[
:id
])
group
=
Group
.
find
(
params
[
:id
])
project
=
Project
.
find
(
params
[
:project_id
])
if
project
.
transfer
(
@group
)
present
@group
result
=
::
Projects
::
TransferService
.
new
(
project
,
current_user
,
namespace_id:
group
.
id
).
execute
if
result
present
group
else
not_found!
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment