Skip to content

Commit 8c01c76

Browse files
committed
DHFPROD-3448: update version, npm values, tweak hub entities not to include 5.x stuff, and correct options test
1 parent 9fe75c0 commit 8c01c76

File tree

7 files changed

+2547
-1974
lines changed

7 files changed

+2547
-1974
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=2.0.6
1+
version=2.0.7

marklogic-data-hub/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ dependencies {
5656

5757
node {
5858
// Version of node to use.
59-
version = '8.9.3'
59+
version = '8.10.0'
6060

6161
// // Version of npm to use.
62-
npmVersion = '5.4.2'
62+
npmVersion = '6.9.0'
6363

6464
download = true
6565

marklogic-data-hub/src/main/resources/ml-modules/root/com.marklogic.hub/lib/hub-entities.xqy

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ declare %private function hent:fix-options($nodes as node()*)
121121
<search:field name="datahubCreatedByJob"/>
122122
</search:value>
123123
</search:constraint>,
124-
<search:constraint name="createdByStep">
125-
<search:value>
126-
<search:field name="datahubCreatedByStep"/>
127-
</search:value>
128-
</search:constraint>,
129124
hent:fix-options($n/node())
130125
}
131126
case element(search:additional-query) return ()

marklogic-data-hub/src/test/java/com/marklogic/hub/DataHubTest.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void testValidateServer807() {
103103
public void testValidateServer809() {
104104
assertFalse(dh.isServerVersionValid("8.0-9"));
105105
}
106-
106+
107107
@Test
108108
public void testValidateServer8nightly() {
109109
assertFalse(dh.isServerVersionValid("8.0-20160719"));
@@ -124,11 +124,6 @@ public void testValidateServer8nightlyValidEdge() {
124124
assertFalse(dh.isServerVersionValid("8.0-20170701"));
125125
}
126126

127-
@Test
128-
public void testValidateServer8nightlyInValid() {
129-
assertFalse(dh.isServerVersionValid("8.0-20170630"));
130-
}
131-
132127
@Test
133128
public void testInvalidServer9nightly() {
134129
assertFalse(dh.isServerVersionValid("9.0-20160719"));

marklogic-data-hub/src/test/resources/entity-manager-test/options.xml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<search:constraint name="Collection">
44
<search:collection/>
55
</search:constraint>
6+
<search:constraint name="createdByJob">
7+
<search:value>
8+
<search:field name="datahubCreatedByJob"/>
9+
</search:value>
10+
</search:constraint>
611
<search:constraint name="entity-type">
712
<search:value>
813
<search:element ns="http://marklogic.com/entity-services" name="title"/>
@@ -15,20 +20,22 @@
1520
</search:constraint>
1621
<search:constraint name="name">
1722
<search:range type="xs:string" facet="true" collation="http://marklogic.com/collation/codepoint">
18-
<search:path-index>//*:instance/Employee/name</search:path-index>
23+
<search:path-index xmlns:es="http://marklogic.com/entity-services">//*:instance/Employee/name</search:path-index>
24+
<search:facet-option>limit=25</search:facet-option>
1925
</search:range>
2026
</search:constraint>
2127
<search:constraint name="salary">
2228
<search:range type="xs:decimal" facet="true">
23-
<search:element ns="" name="salary"/>
29+
<search:element ns="" name="salary" xmlns:es="http://marklogic.com/entity-services"/>
30+
<search:facet-option>limit=25</search:facet-option>
2431
</search:range>
2532
</search:constraint>
2633
<search:tuples name="Employee">
2734
<search:range type="xs:string" facet="true" collation="http://marklogic.com/collation/codepoint">
28-
<search:path-index>//*:instance/Employee/name</search:path-index>
35+
<search:path-index xmlns:es="http://marklogic.com/entity-services">//*:instance/Employee/name</search:path-index>
2936
</search:range>
3037
<search:range type="xs:decimal" facet="true">
31-
<search:element ns="" name="salary"/>
38+
<search:element ns="" name="salary" xmlns:es="http://marklogic.com/entity-services"/>
3239
</search:range>
3340
</search:tuples>
3441
<!--Uncomment to return no results for a blank search, rather than the default of all results
@@ -43,7 +50,7 @@
4350
<search:search-option>unfiltered</search:search-option>
4451
<!--Modify document extraction to change results returned-->
4552
<search:extract-document-data selected="include">
46-
<search:extract-path>//*:instance/(Employee)</search:extract-path>
53+
<search:extract-path xmlns:es="http://marklogic.com/entity-services">//*:instance/(Employee)</search:extract-path>
4754
</search:extract-document-data>
4855
<!--Change or remove this additional-query to broaden search beyond entity instance documents-->
4956
<!--To return facets, change this option to 'true' and edit constraints-->

0 commit comments

Comments
 (0)