Merge pull request #1429 from migonzalvar/fix/improve-sorting-performance
Send statusId to bulkUpdateKanbanOrder endpointstable
commit
e028478c2c
|
@ -302,13 +302,13 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
|
|||
|
||||
moveUs: (ctx, usList, newStatusId, index) ->
|
||||
@.cleanSelectedUss()
|
||||
|
||||
|
||||
usList = _.map usList, (us) =>
|
||||
return @kanbanUserstoriesService.getUsModel(us.id)
|
||||
|
||||
data = @kanbanUserstoriesService.move(usList, newStatusId, index)
|
||||
|
||||
promise = @rs.userstories.bulkUpdateKanbanOrder(@scope.projectId, data.bulkOrders)
|
||||
promise = @rs.userstories.bulkUpdateKanbanOrder(@scope.projectId, newStatusId, data.bulkOrders)
|
||||
|
||||
promise.then () =>
|
||||
# saving
|
||||
|
|
|
@ -107,9 +107,9 @@ resourceProvider = ($repo, $http, $urls, $storage, $q) ->
|
|||
params = {project_id: projectId, milestone_id: milestoneId, bulk_stories: data}
|
||||
return $http.post(url, params)
|
||||
|
||||
service.bulkUpdateKanbanOrder = (projectId, data) ->
|
||||
service.bulkUpdateKanbanOrder = (projectId, statusId, data) ->
|
||||
url = $urls.resolve("bulk-update-us-kanban-order")
|
||||
params = {project_id: projectId, bulk_stories: data}
|
||||
params = {project_id: projectId, status_id: statusId, bulk_stories: data}
|
||||
return $http.post(url, params)
|
||||
|
||||
service.listValues = (projectId, type) ->
|
||||
|
|
Loading…
Reference in New Issue