Remove limit parameter from browsing
The API server will return all results if the limit parameter is not set. Because the web client does not support paging currently, remove the limit parameter from all API calls so that all results are returned. Change-Id: I46bbcf2194ce5eaf092d5f381390fb9baef82350
This commit is contained in:
parent
7230e03130
commit
650701f643
@ -25,16 +25,6 @@ angular.module('sb.services')
|
||||
Preference) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* This method is used in our API signature to return a recent value
|
||||
* for the user's pageSize preference.
|
||||
*
|
||||
* @returns {*}
|
||||
*/
|
||||
function getLimit() {
|
||||
return Preference.get('page_size');
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a full API signature for a specific resource. Includes
|
||||
* CRUD, Browse, and Search. If the resource doesn't support it,
|
||||
@ -66,20 +56,14 @@ angular.module('sb.services')
|
||||
method: 'GET',
|
||||
isArray: true,
|
||||
responseType: 'json',
|
||||
cache: cacheSearchResults,
|
||||
params: {
|
||||
limit: getLimit
|
||||
}
|
||||
cache: cacheSearchResults
|
||||
},
|
||||
'search': {
|
||||
method: 'GET',
|
||||
url: searchUrl,
|
||||
isArray: true,
|
||||
responseType: 'json',
|
||||
cache: cacheSearchResults,
|
||||
params: {
|
||||
limit: getLimit
|
||||
}
|
||||
cache: cacheSearchResults
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user