From 18f3daed7502384464b7fbb86824279a198301a8 Mon Sep 17 00:00:00 2001 From: Norbi <37236152+KatunaNorbert@users.noreply.github.com> Date: Wed, 26 May 2021 17:16:46 +0300 Subject: [PATCH] List of algorithms to select seems capped (#618) * removed paginations from the algorithms query and set offset * changed offset to 500 for compute algorithms query Co-authored-by: Norbi --- src/components/organisms/AssetActions/Compute/index.tsx | 2 +- .../organisms/AssetActions/Edit/FormEditComputeDataset.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/organisms/AssetActions/Compute/index.tsx b/src/components/organisms/AssetActions/Compute/index.tsx index f09fae7d9..aa7fa2bd2 100644 --- a/src/components/organisms/AssetActions/Compute/index.tsx +++ b/src/components/organisms/AssetActions/Compute/index.tsx @@ -126,7 +126,7 @@ export default function Compute({ const algorithmQuery = trustedAlgorithmList.length > 0 ? `(${algoQuerry}) AND` : `` const query = { - page: 1, + offset: 500, query: { query_string: { query: `${algorithmQuery} service.attributes.main.type:algorithm -isInPurgatory:true` diff --git a/src/components/organisms/AssetActions/Edit/FormEditComputeDataset.tsx b/src/components/organisms/AssetActions/Edit/FormEditComputeDataset.tsx index b85b52854..7aa9e5c42 100644 --- a/src/components/organisms/AssetActions/Edit/FormEditComputeDataset.tsx +++ b/src/components/organisms/AssetActions/Edit/FormEditComputeDataset.tsx @@ -44,7 +44,7 @@ export default function FormEditComputeDataset({ ): Promise { const source = axios.CancelToken.source() const query = { - page: 1, + offset: 500, query: { query_string: { query: `service.attributes.main.type:algorithm -isInPurgatory:true`