From cbdad3ed89f6553c2e3062019a5d3d90973e922e Mon Sep 17 00:00:00 2001 From: Pravin Barton <9560941+isc-pbarton@users.noreply.github.com> Date: Tue, 7 Oct 2025 10:44:36 -0400 Subject: [PATCH] enh: reasonable defaults for ESD, HL7 and LUT (for Health products) --- CHANGELOG.md | 1 + cls/SourceControl/Git/Utils.cls | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70e08d3c..7ab56e79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Settings page now warns if Embedded Git is not the configured source control extension (#857) - Settings page now has option to switch namespace (#856) - SourceControl.Git.Settings is now documented as part of the public API to allow programmatic configuration of settings (#262) +- Newly configured instances start with default mappings for ESD, LUT and HL7 when relevant (#724) ### Fixed - When cloning a repo with Configure, that repo's embedded-git-config file will overwrite previous settings (#819) diff --git a/cls/SourceControl/Git/Utils.cls b/cls/SourceControl/Git/Utils.cls index 605a977b..dcad182d 100644 --- a/cls/SourceControl/Git/Utils.cls +++ b/cls/SourceControl/Git/Utils.cls @@ -3064,6 +3064,14 @@ ClassMethod SetDefaultMappings(mappingsNode As %String) set @mappingsNode@("MAC","*")="rtn/" set @mappingsNode@("DFI","*")="dfi/" set @mappingsNode@("PTD","*")="ptd/" + set @mappingsNode@("ESD","*")="config//" + // for HealthShare, HealthConnect, or IRIS for Health + if ($System.Version.GetISCProduct() = 3) || $listfind($System.Version.GetISCComponents(4),"Health") { + set @mappingsNode@("HL7","*") = "data/hl7/" + set @mappingsNode@("HL7","*","NoFolders") = 1 + set @mappingsNode@("LUT","*") = "data/lut/" + set @mappingsNode@("LUT","*","NoFolders") = 1 + } } ClassMethod PrintStreams(streams... As %Stream.FileCharacter) @@ -3320,3 +3328,4 @@ ClassMethod IsSchemaStandard(pName As %String = "") As %Boolean [ Internal ] } } +