1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

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 <katunanorbert@gmai.com>
This commit is contained in:
Norbi 2021-05-26 17:16:46 +03:00 committed by GitHub
parent 5428a8e5b4
commit 18f3daed75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ export default function Compute({
const algorithmQuery = const algorithmQuery =
trustedAlgorithmList.length > 0 ? `(${algoQuerry}) AND` : `` trustedAlgorithmList.length > 0 ? `(${algoQuerry}) AND` : ``
const query = { const query = {
page: 1, offset: 500,
query: { query: {
query_string: { query_string: {
query: `${algorithmQuery} service.attributes.main.type:algorithm -isInPurgatory:true` query: `${algorithmQuery} service.attributes.main.type:algorithm -isInPurgatory:true`

View File

@ -44,7 +44,7 @@ export default function FormEditComputeDataset({
): Promise<AssetSelectionAsset[]> { ): Promise<AssetSelectionAsset[]> {
const source = axios.CancelToken.source() const source = axios.CancelToken.source()
const query = { const query = {
page: 1, offset: 500,
query: { query: {
query_string: { query_string: {
query: `service.attributes.main.type:algorithm -isInPurgatory:true` query: `service.attributes.main.type:algorithm -isInPurgatory:true`