Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Schema
Commits
5d184f0b
Commit
5d184f0b
authored
May 25, 2021
by
Anuj Gupta
Browse files
Merge branch 'ibmopenselectlimit' into 'master'
Limit on open select for schema list added See merge request
!110
parents
dc3906a0
8a64daca
Pipeline
#42220
failed with stages
in 37 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
provider/schema-ibm/src/main/java/org/opengroup/osdu/schema/impl/schemainfostore/IbmSchemaInfoStore.java
View file @
5d184f0b
...
...
@@ -272,6 +272,9 @@ public class IbmSchemaInfoStore extends IbmDocumentStore implements ISchemaInfoS
}
@Override
/**
* Modefied the method on May 24th 2021, for having a configurable Max limit on a open select (select with no query params)
*/
public
List
<
SchemaInfo
>
getSchemaInfoList
(
QueryParams
queryParams
,
String
tenantId
)
throws
ApplicationException
{
try
{
tenant
.
getName
();
...
...
@@ -284,7 +287,7 @@ public class IbmSchemaInfoStore extends IbmDocumentStore implements ISchemaInfoS
numRecords
=
Long
.
valueOf
(
queryParams
.
getLimit
());
}
String
selectorWithoutFilter
=
"{ \"selector\": {} }"
;
String
selectorWithoutFilter
=
"{ \"selector\": {}
, \"limit\": "
+
numRecords
+
"
}"
;
String
finalQuery
=
null
;
Selector
selector
=
getSelector
(
queryParams
);
...
...
@@ -414,4 +417,4 @@ public class IbmSchemaInfoStore extends IbmDocumentStore implements ISchemaInfoS
}
\ No newline at end of file
}
provider/schema-ibm/src/main/resources/application.properties
View file @
5d184f0b
...
...
@@ -23,4 +23,4 @@ spring.main.allow-bean-definition-overriding=true
# Use this property to name your shared tenant name
shared.tenant.name
=
common
\ No newline at end of file
shared.tenant.name
=
common
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment