Parallelizing userstories and tag_colors for backlog
parent
1f4ffeb40c
commit
a0f5f8d982
|
@ -174,10 +174,10 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
|
||||||
@scope.httpParams = @.getUrlFilters()
|
@scope.httpParams = @.getUrlFilters()
|
||||||
@rs.userstories.storeQueryParams(@scope.projectId, @scope.httpParams)
|
@rs.userstories.storeQueryParams(@scope.projectId, @scope.httpParams)
|
||||||
|
|
||||||
promise = @.refreshTagsColors().then =>
|
promise = @q.all([@.refreshTagsColors(), @rs.userstories.listUnassigned(@scope.projectId, @scope.httpParams)])
|
||||||
return @rs.userstories.listUnassigned(@scope.projectId, @scope.httpParams)
|
|
||||||
|
|
||||||
return promise.then (userstories) =>
|
return promise.then (data) =>
|
||||||
|
userstories = data[1]
|
||||||
# NOTE: Fix order of USs because the filter orderBy does not work propertly in the partials files
|
# NOTE: Fix order of USs because the filter orderBy does not work propertly in the partials files
|
||||||
@scope.userstories = _.sortBy(userstories, "backlog_order")
|
@scope.userstories = _.sortBy(userstories, "backlog_order")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue