Skip to content

Commit

Permalink
fix: pass count query param in rest to overcome default thirty reco…
Browse files Browse the repository at this point in the history
…rds limit
  • Loading branch information
harshpatel-crest committed Jul 6, 2021
1 parent d3c432c commit 245a3d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/src/main/webapp/components/MultiInputComponent.jsx
Expand Up @@ -58,15 +58,15 @@ function MultiInputComponent(props) {
const source = axios.CancelToken.source();

// eslint-disable-next-line no-shadow
const options = { CancelToken: source.token, handleError: true };
const options = { cancelToken: source.token, handleError: true, params: { count: -1 } };
if (referenceName) {
options.serviceName = referenceName;
} else if (endpointUrl) {
options.endpointUrl = endpointUrl;
}

if (dependencyValues) {
options.params = dependencyValues;
options.params = { ...options.params, ...dependencyValues };
}
if (!dependencies || dependencyValues) {
setLoading(true);
Expand Down
4 changes: 2 additions & 2 deletions ui/src/main/webapp/components/SingleInputComponent.jsx
Expand Up @@ -79,15 +79,15 @@ function SingleInputComponent(props) {
const source = axios.CancelToken.source();

// eslint-disable-next-line no-shadow
const options = { CancelToken: source.token, handleError: true };
const options = { cancelToken: source.token, handleError: true, params: { count: -1 } };
if (referenceName) {
options.serviceName = referenceName;
} else if (endpointUrl) {
options.endpointUrl = endpointUrl;
}

if (dependencyValues) {
options.params = dependencyValues;
options.params = { ...options.params, ...dependencyValues };
}
if (!dependencies || dependencyValues) {
setLoading(true);
Expand Down
1 change: 1 addition & 0 deletions ui/src/main/webapp/components/table/TableWrapper.jsx
Expand Up @@ -60,6 +60,7 @@ function TableWrapper({ page, serviceName, handleRequestModalOpen, handleOpenPag
requests.push(
axiosCallWrapper({
serviceName: service.name,
params: { count: -1 },
})
);
});
Expand Down

0 comments on commit 245a3d8

Please sign in to comment.