Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Derichs <pderichs@gitlab.com>2019-07-05 13:50:20 +0300
committerPatrick Derichs <pderichs@gitlab.com>2019-07-16 17:18:16 +0300
commit1ebef4aae55adb5e17a76b92aea74467e49130bf (patch)
treeb39ccf8b45017903a4bad4438cad3518e6c41c0e /app/controllers
parent46fb73a372621918fae77c0d338d9a42a13071fd (diff)
Add result to MoveService#execute_multiple
It adds a hash response which includes the count, success state and the moved issues itself so the caller has additional information about the result of the process.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/boards/issues_controller.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/controllers/boards/issues_controller.rb b/app/controllers/boards/issues_controller.rb
index 353a9806fd1..90528f75ffd 100644
--- a/app/controllers/boards/issues_controller.rb
+++ b/app/controllers/boards/issues_controller.rb
@@ -58,11 +58,8 @@ module Boards
service = Boards::Issues::MoveService.new(board_parent, current_user, move_params(true))
issues = Issue.find(params[:ids])
- if service.execute_multiple(issues)
- head :ok
- else
- head :unprocessable_entity
- end
+
+ render json: service.execute_multiple(issues)
end
def update