Skip to content

Commit 3e0e232

Browse files
author
Charles Greer
committed
Merge branch 'develop' into bugfix/DHFPROD-653
2 parents 5426772 + e3a869a commit 3e0e232

File tree

53 files changed

+1930
-26375
lines changed

Some content is hidden

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

53 files changed

+1930
-26375
lines changed

NOTICES.txt

Lines changed: 1623 additions & 26062 deletions
Large diffs are not rendered by default.

examples/custom-tokens/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can see that we are referencing the new custom tokens within the `custom-tok
3131
"root": "/",
3232
"group-name": "%%GROUP%%",
3333
"port": "%%TEST_SERVER_PORT%%",
34-
"modules-database": "%%mlStagingModulesDbName%%",
34+
"modules-database": "%%mlModulesDbName%%",
3535
"content-database": "%%TEST_DATABASE_NAME%%",
3636
"authentication": "%%TEST_TRACE_AUTH%%",
3737
"default-error-format": "json",

examples/custom-tokens/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ mlJobDbName=data-hub-JOBS
6363
mlJobForestsPerHost=1
6464
mlJobAuth=digest
6565

66-
mlStagingModulesDbName=data-hub-MODULES
67-
mlStagingModulesForestsPerHost=1
66+
mlModulesDbName=data-hub-MODULES
67+
mlModulesForestsPerHost=1
6868

6969
mlStagingTriggersDbName=data-hub-TRIGGERS
7070
mlStagingTriggersForestsPerHost=1

examples/custom-tokens/user-config/servers/test-server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"root": "/",
55
"group-name": "%%GROUP%%",
66
"port": "%%TEST_SERVER_PORT%%",
7-
"modules-database": "%%mlStagingModulesDbName%%",
7+
"modules-database": "%%mlModulesDbName%%",
88
"content-database": "%%TEST_DATABASE_NAME%%",
99
"authentication": "%%TEST_TRACE_AUTH%%",
1010
"default-error-format": "json",

examples/external-security/gradle-example.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ mlJobDbName=data-hub-JOBS
6363
mlJobForestsPerHost=1
6464
mlJobAuth=digest
6565

66-
mlStagingModulesDbName=data-hub-MODULES
67-
mlStagingModulesForestsPerHost=1
66+
mlModulesDbName=data-hub-MODULES
67+
mlModulesForestsPerHost=1
6868

6969
mlStagingTriggersDbName=data-hub-TRIGGERS
7070
mlStagingTriggersForestsPerHost=1

examples/ssl/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ mlJobDbName=data-hub-JOBS
6363
mlJobForestsPerHost=1
6464
mlJobAuth=digest
6565

66-
mlStagingModulesDbName=data-hub-MODULES
67-
mlStagingModulesForestsPerHost=1
66+
mlModulesDbName=data-hub-MODULES
67+
mlModulesForestsPerHost=1
6868

6969
mlStagingTriggersDbName=data-hub-TRIGGERS
7070
mlStagingTriggersForestsPerHost=1

marklogic-data-hub/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ ext {
220220
moduleTokensPropertiesSources = new ArrayList<>()
221221

222222
// override some default values with our values
223-
modulesDatabaseName = mlStagingModulesDbName
223+
modulesDatabaseName = mlModulesDbName
224224
triggersDatabaseName = mlStagingTriggersDbName
225225
schemasDatabaseName = mlStagingSchemasDbName
226226
restPort = Integer.parseInt(mlJobPort)
@@ -238,7 +238,7 @@ ext {
238238
customTokens.put("%%mlJobPort%%", mlJobPort)
239239
customTokens.put("%%mlJobDbName%%", mlJobDbName)
240240

241-
customTokens.put("%%mlStagingModulesDbName%%", mlStagingModulesDbName)
241+
customTokens.put("%%mlModulesDbName%%", mlModulesDbName)
242242
customTokens.put("%%mlStagingTriggersDbName%%", mlStagingTriggersDbName)
243243
customTokens.put("%%mlStagingSchemasDbName%%", mlStagingSchemasDbName)
244244

marklogic-data-hub/gradle.properties

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ mlJobPort=8013
4040
mlJobDbName=data-hub-JOBS
4141
mlJobForestsPerHost=1
4242

43-
mlStagingModulesDbName=data-hub-MODULES
43+
mlModulesDbName=data-hub-MODULES
4444
mlStagingTriggersDbName=data-hub-staging-TRIGGERS
4545
mlStagingSchemasDbName=data-hub-staging-SCHEMAS
4646

47-
mlFinalModulesDbName=data-hub-final-MODULES
4847
mlFinalTriggersDbName=data-hub-final-TRIGGERS
4948
mlFinalSchemasDbName=data-hub-final-SCHEMAS
5049

@@ -60,5 +59,4 @@ mlHubAdminRole=hub-admin-role
6059
mlHubAdminUserName=hub-admin-user
6160
mlHubAdminUserPassword=fO3^)&X|j_O8m^k_2=xi
6261

63-
mlStagingModulePermissions=rest-reader,read,rest-writer,insert,rest-writer,update,rest-extension-user,execute,data-hub-role,read,data-hub-role,execute
64-
mlFinalModulePermissions=rest-reader,read,rest-writer,insert,rest-writer,update,rest-extension-user,execute,data-hub-role,read,data-hub-role,execute
62+
mlModulePermissions=rest-reader,read,rest-writer,insert,rest-writer,update,rest-extension-user,execute,data-hub-role,read,data-hub-role,execute

marklogic-data-hub/src/main/java/com/marklogic/hub/DatabaseKind.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ public enum DatabaseKind {
3333
FINAL_SCHEMAS,
3434
STAGING_TRIGGERS,
3535
FINAL_TRIGGERS,
36-
STAGING_MODULES,
37-
FINAL_MODULES;
36+
MODULES,
37+
@Deprecated STAGING_MODULES,
38+
@Deprecated FINAL_MODULES;
3839

3940
static private String[] databaseNames = {
4041
"staging",
@@ -45,8 +46,9 @@ public enum DatabaseKind {
4546
"final_schemas",
4647
"staging_triggers",
4748
"final_triggers",
48-
"staging_modules",
49-
"final_modules"
49+
"modules",
50+
"modules",
51+
"modules"
5052
};
5153

5254
/**

marklogic-data-hub/src/main/java/com/marklogic/hub/HubConfig.java

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public interface HubConfig {
5454
String DEFAULT_STAGING_NAME = "data-hub-STAGING";
5555
String DEFAULT_FINAL_NAME = "data-hub-FINAL";
5656
String DEFAULT_JOB_NAME = "data-hub-JOBS";
57-
String DEFAULT_STAGING_MODULES_DB_NAME = "data-hub-MODULES";
57+
String DEFAULT_MODULES_DB_NAME = "data-hub-MODULES";
5858
String DEFAULT_FINAL_MODULES_DB_NAME = "data-hub-final-MODULES";
5959
String DEFAULT_STAGING_TRIGGERS_DB_NAME = "data-hub-staging-TRIGGERS";
6060
String DEFAULT_FINAL_TRIGGERS_DB_NAME = "data-hub-final-TRIGGERS";
@@ -383,22 +383,10 @@ static HubConfig create(String projectDir) {
383383
DatabaseClient newModulesDbClient();
384384

385385
/**
386-
* Gets the path for the hub staging modules
387-
* @return the path for the hub staging modules
386+
* Gets the path for the modules directory
387+
* @return the path for the modules directory
388388
*/
389-
Path getHubStagingModulesDir();
390-
391-
/**
392-
* Gets the path for the user staging modules
393-
* @return the path for the user staging modules
394-
*/
395-
Path getUserStagingModulesDir();
396-
397-
/**
398-
* Gets the path for the user final modules
399-
* @return the path for the user final modules
400-
*/
401-
Path getUserFinalModulesDir();
389+
Path getModulesDir();
402390

403391
/**
404392
* Gets the path for the hub plugins directory

0 commit comments

Comments
 (0)