diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-09-02 00:32:44 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-09-02 00:32:44 +0300 |
commit | f90c6a24b469cb1fe939f6e8fba5a835c62e477f (patch) | |
tree | fc18fca95d1802235b3d8e621bd5d094e402cc01 /spec/javascripts | |
parent | 2038e86772b3a7a02df5b01e454400e7d9314312 (diff) | |
parent | 25c84fd629e72acc753b920a35eb3cfe1cf93035 (diff) |
Merge branch 'issue-boards-issues-total-count' into 'master'
Add the total number of issues in the JSON response in issue board lists
## What does this MR do?
Add the total number of issues in the JSON response in issue board lists
## Why was this MR needed?
The issue board lists should always show the total number of issues in the list, not the current amount fetched by endless scroll.
Closes #21327
See merge request !5904
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/boards/mock_data.js.es6 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/spec/javascripts/boards/mock_data.js.es6 b/spec/javascripts/boards/mock_data.js.es6 index 0c37ec8354f..f3797ed44d4 100644 --- a/spec/javascripts/boards/mock_data.js.es6 +++ b/spec/javascripts/boards/mock_data.js.es6 @@ -26,12 +26,15 @@ const listObjDuplicate = { const BoardsMockData = { 'GET': { - '/test/issue-boards/board/lists{/id}/issues': [{ - title: 'Testing', - iid: 1, - confidential: false, - labels: [] - }] + '/test/issue-boards/board/lists{/id}/issues': { + issues: [{ + title: 'Testing', + iid: 1, + confidential: false, + labels: [] + }], + size: 1 + } }, 'POST': { '/test/issue-boards/board/lists{/id}': listObj |