Skip to content

Commit 53af1f0

Browse files
committed
Merge branch 'release/1.0.0-rc.5'
2 parents cfbdd91 + 77b3f66 commit 53af1f0

File tree

263 files changed

+3137
-5456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+3137
-5456
lines changed

CHANGELOG.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,37 @@
11
# Change Log
22

3-
## [v1.0.0-rc.4](https://github.com/marklogic/marklogic-data-hub/tree/v1.0.0-rc.4)
3+
## [v1.0.0-rc.5](https://github.com/marklogic/marklogic-data-hub/tree/v1.0.0-rc.5)
44

5+
[Full Changelog](https://github.com/marklogic/marklogic-data-hub/compare/v1.0.0-rc.4...v1.0.0-rc.5)
6+
7+
**Implemented enhancements:**
8+
9+
- Allow plugins to know then name of the entity [\#271](https://github.com/marklogic/marklogic-data-hub/issues/271)
10+
- Mark mlcp jobs with errors as failed? [\#268](https://github.com/marklogic/marklogic-data-hub/issues/268)
11+
12+
**Fixed bugs:**
13+
14+
- Tooltip comment for mlcp option wrong [\#270](https://github.com/marklogic/marklogic-data-hub/issues/270)
15+
- TimeAgo [\#267](https://github.com/marklogic/marklogic-data-hub/issues/267)
16+
17+
**Closed issues:**
18+
19+
- chore: update java dependencies [\#287](https://github.com/marklogic/marklogic-data-hub/issues/287)
20+
- Github pages link error [\#285](https://github.com/marklogic/marklogic-data-hub/issues/285)
21+
- Module watch fails when you switch projects [\#284](https://github.com/marklogic/marklogic-data-hub/issues/284)
22+
- chore: fix appveyor build [\#282](https://github.com/marklogic/marklogic-data-hub/issues/282)
23+
- Lots of cache warnings [\#281](https://github.com/marklogic/marklogic-data-hub/issues/281)
24+
- Trace settings gets wiped out when content database is cleared [\#280](https://github.com/marklogic/marklogic-data-hub/issues/280)
25+
- Better distinguish between Entities and Flows [\#275](https://github.com/marklogic/marklogic-data-hub/issues/275)
26+
- Exception in Quick Start [\#274](https://github.com/marklogic/marklogic-data-hub/issues/274)
27+
- Setting up on Mac causes an issue with .war file [\#273](https://github.com/marklogic/marklogic-data-hub/issues/273)
28+
- rc4 - input flow UI jacked up on chrome/windows [\#272](https://github.com/marklogic/marklogic-data-hub/issues/272)
29+
- MLCP command is using deprecated command line flags [\#265](https://github.com/marklogic/marklogic-data-hub/issues/265)
30+
- QuickStart App: Status indicator on installation screen is out of view when text is enlarged [\#262](https://github.com/marklogic/marklogic-data-hub/issues/262)
31+
- Run Flow buttons inconsistent b/c Harmonize runs immediately [\#257](https://github.com/marklogic/marklogic-data-hub/issues/257)
32+
- QuickStart App data not loaded to correct collection [\#250](https://github.com/marklogic/marklogic-data-hub/issues/250)
33+
34+
## [v1.0.0-rc.4](https://github.com/marklogic/marklogic-data-hub/tree/v1.0.0-rc.4) (2016-09-02)
535
[Full Changelog](https://github.com/marklogic/marklogic-data-hub/compare/v1.0.0-rc.3...v1.0.0-rc.4)
636

737
**Implemented enhancements:**
@@ -12,6 +42,7 @@
1242

1343
- MLCP Command for CSV files is generated incorrectly [\#261](https://github.com/marklogic/marklogic-data-hub/issues/261)
1444
- update examples now that rc.2 is out [\#247](https://github.com/marklogic/marklogic-data-hub/issues/247)
45+
- UI rework based on new screen designs [\#70](https://github.com/marklogic/marklogic-data-hub/issues/70)
1546

1647
## [v1.0.0-rc.3](https://github.com/marklogic/marklogic-data-hub/tree/v1.0.0-rc.3) (2016-08-25)
1748
[Full Changelog](https://github.com/marklogic/marklogic-data-hub/compare/v1.0.0-rc.2...v1.0.0-rc.3)
@@ -63,7 +94,6 @@
6394
- Performance tracing [\#193](https://github.com/marklogic/marklogic-data-hub/issues/193)
6495
- Refactor the Spring Boot API [\#145](https://github.com/marklogic/marklogic-data-hub/issues/145)
6596
- Support index configuration as a part of pushbutton deploy. [\#10](https://github.com/marklogic/marklogic-data-hub/issues/10)
66-
- UI rework based on new screen designs [\#70](https://github.com/marklogic/marklogic-data-hub/issues/70)
6797

6898
## [v1.0.0-beta.6](https://github.com/marklogic/marklogic-data-hub/tree/v1.0.0-beta.6) (2016-06-20)
6999
[Full Changelog](https://github.com/marklogic/marklogic-data-hub/compare/v1.0.0-beta.5...v1.0.0-beta.6)

appveyor.yml

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
1-
version: 1.0.{build}
2-
branches:
3-
only:
4-
- master
5-
image: WMF 5
6-
environment:
7-
ML_USER:
8-
secure: nioOZ/YaPcyFoqN9bVZHMllinShpPT+lG1uyi78H23c=
9-
ML_PASSWORD:
10-
secure: LaFtKimqM2zAtGUkciP5RA==
11-
ML_VERSION: 8.0-5.1
12-
install:
13-
- ps: >-
14-
function HttpPost($cookieContainer, $url, $postData) {
15-
$uri = New-Object "System.Uri" "$url"
16-
$webrequest = [System.Net.HTTPWebRequest]::Create($uri)
17-
$webrequest.CookieContainer = $cookieContainer
18-
$webrequest.ContentType = "application/x-www-form-urlencoded"
19-
$webrequest.Method = "POST"
20-
21-
$encoding = New-Object System.Text.ASCIIEncoding
22-
$bytes = $encoding.GetBytes($postData)
23-
$webrequest.ContentLength = $bytes.Length
24-
25-
$newStream = $webrequest.GetRequestStream()
26-
$newStream.Write($bytes, 0, $bytes.Length)
27-
$response = $webrequest.GetResponse().GetResponseStream()
28-
$sr = New-Object System.IO.StreamReader($response)
29-
$respTxt = $sr.ReadToEnd()
30-
$sr.Close()
31-
$response.Dispose()
32-
return $respTxt
33-
}
34-
35-
function downloadFile($cookieContainer, $url, $targetFile) {
36-
$cookie = $cookieContainer.GetCookies("https://developer.marklogic.com")[0]
37-
$cookieTxt = $cookie.NAME + "=" + $cookie.Value
38-
$wc = New-Object System.Net.WebClient
39-
$wc.Headers.Add([System.Net.HttpRequestHeader]::Cookie, $cookieTxt)
40-
$wc.DownloadFile($url, $targetFile)
41-
}
42-
43-
$cookieContainer = New-Object System.Net.CookieContainer
44-
$email = $env:ML_USER
45-
$password = $env:ML_PASSWORD
46-
$loginData = "email=$email&password=$password"
47-
48-
# Login
49-
$url = "https://developer.marklogic.com/login"
50-
$response = HttpPost $cookieContainer $url $loginData
51-
52-
# Get Download url
53-
$ver = $env:ML_VERSION
54-
$fname = "MarkLogic-$ver-amd64.msi"
55-
$url = "https://developer.marklogic.com/get-download-url"
56-
$postData = "download=/download/binaries/8.0/$fname"
57-
$response = HttpPost $cookieContainer $url $postData
58-
$json = $response | ConvertFrom-Json
59-
$downloadLink = $json.path
60-
$downloadLink = "https://developer.marklogic.com$downloadLink"
61-
62-
# Download File
63-
downloadFile $cookieContainer $downloadLink "$PSScriptRoot\$fname"
64-
msiexec /i "$PSScriptRoot\$fname" /quiet /qn /norestart /log install.log
65-
Start-Sleep -s 90
66-
cat .\install.log
67-
Start-Service -displayname "MarkLogic"
68-
HttpPost $cookieContainer "http://localhost:8001/admin/v1/init" ""
69-
Start-Sleep -s 10
70-
$postData = "admin-username=admin&admin-password=admin&realm=public"
71-
HttpPost $cookieContainer "http://localhost:8001/admin/v1/instance-admin" $postData
72-
Start-Sleep -s 10
73-
build: off
74-
test_script:
75-
- ps: >-
76-
c:
77-
cd \projects\marklogic-data-hub
78-
.\gradlew.bat test
1+
version: 1.0.{build}
2+
branches:
3+
only:
4+
- master
5+
image: WMF 5
6+
environment:
7+
ML_USER:
8+
secure: nioOZ/YaPcyFoqN9bVZHMllinShpPT+lG1uyi78H23c=
9+
ML_PASSWORD:
10+
secure: LaFtKimqM2zAtGUkciP5RA==
11+
ML_VERSION: 8.0-5.8
12+
install:
13+
- ps: >-
14+
function HttpPost($cookieContainer, $url, $postData) {
15+
$uri = New-Object "System.Uri" "$url"
16+
$webrequest = [System.Net.HTTPWebRequest]::Create($uri)
17+
$webrequest.CookieContainer = $cookieContainer
18+
$webrequest.ContentType = "application/x-www-form-urlencoded"
19+
$webrequest.Method = "POST"
20+
21+
$encoding = New-Object System.Text.ASCIIEncoding
22+
$bytes = $encoding.GetBytes($postData)
23+
$webrequest.ContentLength = $bytes.Length
24+
25+
$newStream = $webrequest.GetRequestStream()
26+
$newStream.Write($bytes, 0, $bytes.Length)
27+
$response = $webrequest.GetResponse().GetResponseStream()
28+
$sr = New-Object System.IO.StreamReader($response)
29+
$respTxt = $sr.ReadToEnd()
30+
$sr.Close()
31+
$response.Dispose()
32+
return $respTxt
33+
}
34+
35+
function downloadFile($cookieContainer, $url, $targetFile) {
36+
$cookie = $cookieContainer.GetCookies("https://developer.marklogic.com")[0]
37+
$cookieTxt = $cookie.NAME + "=" + $cookie.Value
38+
$wc = New-Object System.Net.WebClient
39+
$wc.Headers.Add([System.Net.HttpRequestHeader]::Cookie, $cookieTxt)
40+
$wc.DownloadFile($url, $targetFile)
41+
}
42+
43+
$cookieContainer = New-Object System.Net.CookieContainer
44+
$email = $env:ML_USER
45+
$password = $env:ML_PASSWORD
46+
$loginData = "email=$email&password=$password"
47+
48+
# Login
49+
$url = "https://developer.marklogic.com/login"
50+
$response = HttpPost $cookieContainer $url $loginData
51+
52+
# Get Download url
53+
$ver = $env:ML_VERSION
54+
$fname = "MarkLogic-$ver-amd64.msi"
55+
$url = "https://developer.marklogic.com/get-download-url"
56+
$postData = "download=/download/binaries/8.0/$fname"
57+
$response = HttpPost $cookieContainer $url $postData
58+
$json = $response | ConvertFrom-Json
59+
$downloadLink = $json.path
60+
$downloadLink = "https://developer.marklogic.com$downloadLink"
61+
62+
# Download File
63+
downloadFile $cookieContainer $downloadLink "$PSScriptRoot\$fname"
64+
msiexec /i "$PSScriptRoot\$fname" /quiet /qn /norestart /log install.log
65+
Start-Sleep -s 90
66+
cat .\install.log
67+
Start-Service -displayname "MarkLogic"
68+
HttpPost $cookieContainer "http://localhost:8001/admin/v1/init" ""
69+
Start-Sleep -s 10
70+
$postData = "admin-username=admin&admin-password=admin&realm=public"
71+
HttpPost $cookieContainer "http://localhost:8001/admin/v1/instance-admin" $postData
72+
Start-Sleep -s 10
73+
build: off
74+
test_script:
75+
- ps: >-
76+
c:
77+
cd \projects\marklogic-data-hub
78+
.\gradlew.bat test

examples/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ config
22
build.gradle
33
gradle.properties
44
gradle-local.properties
5+
marklogic-config/

examples/hr-hub/input/AcmeTech/32920.json

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"firstName": "Rosanne",
44
"lastName": "Henckle",
55
"dateOfBirth": "05/19/1979",
6-
"hireDate": "11/12/2015",
6+
"hireDate": "12/19/2005",
77
"salaryHistory": [
88
{
9-
"effectiveDate": "11/12/2015",
9+
"effectiveDate": "12/23/2005",
1010
"salary": 63439
1111
},
1212
{
13-
"effectiveDate": "01/14/2016",
13+
"effectiveDate": "01/14/2010",
1414
"salary": 66300
1515
}
1616
]

examples/hr-hub/input/AcmeTech/34324.json

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"firstName": "Robert",
44
"lastName": "Smith",
55
"dateOfBirth": "01/01/1981",
6-
"hireDate": "09/01/2014",
6+
"hireDate": "12/19/2005",
77
"salaryHistory": [
88
{
9-
"effectiveDate": "09/01/2014",
9+
"effectiveDate": "12/21/2005",
1010
"salary": 59832
1111
},
1212
{
13-
"effectiveDate": "09/14/2015",
13+
"effectiveDate": "05/14/2009",
1414
"salary": 60832
1515
}
1616
]

examples/hr-hub/plugins/entities/Employee/harmonize/harmonize-acme-tech/headers/headers.sjs

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createHeaders(id, content, options) {
2222

2323
return {
2424
employeeId: content.id,
25-
hireDate: xs.date(xdmp.parseDateTime('[M01]/[D01]/[Y0001]', content.hireDate)),
25+
dateOfHire: xs.date(xdmp.parseDateTime('[M01]/[D01]/[Y0001]', content.hireDate)),
2626
salary: xs.int(salary)
2727
};
2828
}

examples/hr-hub/plugins/entities/Employee/harmonize/harmonize-global-corp/headers/headers.sjs

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
function createHeaders(id, content, options) {
1111
return {
1212
employeeId: content.emp_id,
13-
hireDate: xs.date(xdmp.parseDateTime('[M01]/[D01]/[Y0001]', content.hire_date)),
13+
dateOfHire: fn.substring(xs.string(xdmp.parseDateTime('[M01]/[D01]/[Y0001]', content.hire_date)), 1, 10),
1414
salary: xs.int(content.base_salary) + xs.int(content.bonus)
1515
};
1616
}

examples/spring-batch/build.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
plugins {
2+
id 'java'
3+
id 'eclipse'
4+
id 'idea'
5+
id 'application'
6+
id 'net.saliman.properties' version '1.4.5'
7+
id 'com.marklogic.ml-gradle' version '2.3.1'
8+
id 'com.marklogic.ml-data-hub' version '1.0.0-rc.5'
9+
}
10+
11+
repositories {
12+
mavenLocal()
13+
jcenter()
14+
maven {url 'http://developer.marklogic.com/maven2/'}
15+
}
16+
17+
dependencies {
18+
compile 'com.marklogic:marklogic-data-hub:1.0.0-rc.5'
19+
compile "com.marklogic:marklogic-spring-batch-core:0.6.0"
20+
compile "com.marklogic:ml-javaclient-util:2.9.1"
21+
testCompile "com.marklogic:marklogic-spring-batch-test:0.6.0"
22+
}
23+
24+
distributions {
25+
main {
26+
baseName = 'baseJob'
27+
}
28+
}
29+
30+
mainClassName = "com.marklogic.spring.batch.hub.HubJobRunner"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# These settings are used by the Data Hub Framework when
2+
# communicating with MarkLogic.
3+
# The values in this file are meant as project-wide settings.
4+
# You can override these properties for a specific environment
5+
# by creating a gradle-{environment}.properties file.
6+
# For example, to create a properties file for your prod environment create a file
7+
# named gradle-prod.properties.
8+
#
9+
# ....
10+
mlHost=localhost
11+
mlAppName=data-hub
12+
13+
mlAdminUsername=admin
14+
mlAdminPassword=admin
15+
16+
mlStagingAppserverName=data-hub-STAGING
17+
mlStagingPort=8010
18+
mlStagingDbName=data-hub-STAGING
19+
mlStagingForestsPerHost=4
20+
21+
mlFinalAppserverName=data-hub-FINAL
22+
mlFinalPort=8011
23+
mlFinalDbName=data-hub-FINAL
24+
mlFinalForestsPerHost=4
25+
26+
mlTraceAppserverName=data-hub-TRACING
27+
mlTracePort=8012
28+
mlTraceDbName=data-hub-TRACING
29+
mlTraceForestsPerHost=1
30+
31+
mlJobAppserverName=data-hub-JOBS
32+
mlJobPort=8013
33+
mlJobDbName=data-hub-JOBS
34+
mlJobForestsPerHost=1
35+
36+
mlModulesDbName=data-hub-MODULES
37+
mlTriggersDbName=data-hub-TRIGGERS
38+
mlSchemasDbName=data-hub-SCHEMAS

marklogic-data-hub/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id 'idea'
66
id 'maven-publish'
77
id 'com.jfrog.bintray' version '1.6'
8-
id 'com.marklogic.ml-gradle' version '2.3.1'
8+
id 'com.marklogic.ml-gradle' version '2.3.4'
99
}
1010

1111
repositories {
@@ -22,10 +22,10 @@ targetCompatibility = 1.8
2222
dependencies {
2323
compile 'org.springframework.batch:spring-batch-core:3.0.6.RELEASE'
2424
compile 'org.springframework:spring-jdbc:4.2.6.RELEASE'
25-
compile 'com.marklogic:java-client-api:3.0.4'
26-
compile 'com.marklogic:ml-javaclient-util:2.9.0'
27-
compile 'com.marklogic:ml-app-deployer:2.2.0'
28-
compile 'com.marklogic:marklogic-spring-batch-core:0.5.2'
25+
compile 'com.marklogic:java-client-api:3.0.5'
26+
compile 'com.marklogic:ml-javaclient-util:2.9.1'
27+
compile 'com.marklogic:ml-app-deployer:2.3.0'
28+
compile 'com.marklogic:marklogic-spring-batch-core:0.7.0'
2929
compile 'commons-io:commons-io:2.4'
3030
testCompile 'org.springframework.batch:spring-batch-test:3.0.6.RELEASE'
3131
testCompile 'junit:junit:4.12'

0 commit comments

Comments
 (0)