Skip to content

Commit cbdad3e

Browse files
committed
enh: reasonable defaults for ESD, HL7 and LUT (for Health products)
1 parent 749c582 commit cbdad3e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Settings page now warns if Embedded Git is not the configured source control extension (#857)
1313
- Settings page now has option to switch namespace (#856)
1414
- SourceControl.Git.Settings is now documented as part of the public API to allow programmatic configuration of settings (#262)
15+
- Newly configured instances start with default mappings for ESD, LUT and HL7 when relevant (#724)
1516

1617
### Fixed
1718
- When cloning a repo with Configure, that repo's embedded-git-config file will overwrite previous settings (#819)

cls/SourceControl/Git/Utils.cls

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,6 +3064,14 @@ ClassMethod SetDefaultMappings(mappingsNode As %String)
30643064
set @mappingsNode@("MAC","*")="rtn/"
30653065
set @mappingsNode@("DFI","*")="dfi/"
30663066
set @mappingsNode@("PTD","*")="ptd/"
3067+
set @mappingsNode@("ESD","*")="config/<env>/"
3068+
// for HealthShare, HealthConnect, or IRIS for Health
3069+
if ($System.Version.GetISCProduct() = 3) || $listfind($System.Version.GetISCComponents(4),"Health") {
3070+
set @mappingsNode@("HL7","*") = "data/hl7/"
3071+
set @mappingsNode@("HL7","*","NoFolders") = 1
3072+
set @mappingsNode@("LUT","*") = "data/lut/"
3073+
set @mappingsNode@("LUT","*","NoFolders") = 1
3074+
}
30673075
}
30683076

30693077
ClassMethod PrintStreams(streams... As %Stream.FileCharacter)
@@ -3320,3 +3328,4 @@ ClassMethod IsSchemaStandard(pName As %String = "") As %Boolean [ Internal ]
33203328
}
33213329

33223330
}
3331+

0 commit comments

Comments
 (0)