Skip to content

Commit b700b2c

Browse files
authored
Merge pull request #460 from intersystems/instance-settings-global
resolved issue with instance wide settings being in protected global
2 parents 1ab0d27 + 4498057 commit b700b2c

File tree

7 files changed

+14
-5
lines changed

7 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
### Added
1212
- New UI for the basic mode Sync (#415)
1313

14+
### Fixed
15+
- Instance wide settings are placed in proper global (#444)
16+
1417
## [2.4.1] - 2024-08-02
1518

1619
### Added

cls/SourceControl/Git/Change.cls

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,3 @@ Storage Default
237237
}
238238

239239
}
240-

cls/SourceControl/Git/Extension.cls

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,4 +403,3 @@ Method AddToSourceControl(InternalName As %String, Description As %String = "")
403403
}
404404

405405
}
406-

cls/SourceControl/Git/Utils.cls

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Parameter GitContextMenuItems = ",%Diff,%Blame,";
1818

1919
ClassMethod %SYSNamespaceStorage() As %String [ CodeMode = expression ]
2020
{
21-
$Replace(..#Storage,"^","^["""_..#InstallNamespace_"""]")
21+
$Replace(..#Storage,"^SYS","^%SYS")
2222
}
2323

2424
/// Returns root temp folder
@@ -183,6 +183,14 @@ ClassMethod IsImportAfter(menuItemName As %String) As %Boolean [ CodeMode = expr
183183
$Find(..#ImportAfterGitMenuItems, ","_menuItemName_",") > 0
184184
}
185185

186+
ClassMethod MigrateInstanceSettings()
187+
{
188+
if $data(^["%SYS"]SYS("SourceControl", "Git")) {
189+
merge ^%SYS("SourceControl", "Git") = ^["%SYS"]SYS("SourceControl", "Git")
190+
kill ^["%SYS"]SYS("SourceControl", "Git")
191+
}
192+
}
193+
186194
ClassMethod UserAction(InternalName As %String, MenuName As %String, ByRef Target As %String, ByRef Action As %String, ByRef Reload As %Boolean, ByRef Msg As %String) As %Status
187195
{
188196
#define Force 1
@@ -2563,4 +2571,3 @@ ClassMethod BaselineExport(pCommitMessage = "", pPushToRemote = "") As %Status
25632571
}
25642572

25652573
}
2566-

cls/SourceControl/Git/WebUIDriver.cls

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,3 @@ ClassMethod GetPackageVersion() As %Library.DynamicObject
269269
}
270270

271271
}
272-
Lines changed: 1 addition & 0 deletions
Loading

module.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<Invoke Class="SourceControl.Git.Utils" Method="Localize" />
3535
<Invoke Class="SourceControl.Git.Utils" Method="ConfigureWeb" />
3636
<Invoke Class="SourceControl.Git.Utils" Method="CheckInitialization" />
37+
<Invoke Class="SourceControl.Git.Utils" Method="MigrateInstanceSettings" />
3738

3839
<Invoke Class="SourceControl.Git.Utils" Method="ResetSourceControlClass" Phase="Unconfigure" />
3940
</Module>

0 commit comments

Comments
 (0)