Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolved issue with instance wide settings being in protected global #460

Merged
merged 4 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- New UI for the basic mode Sync (#415)

### Fixed
- Instance wide settings are placed in proper global (#444)

## [2.4.1] - 2024-08-02

### Added
Expand Down
1 change: 0 additions & 1 deletion cls/SourceControl/Git/Change.cls
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,3 @@ Storage Default
}

}

1 change: 0 additions & 1 deletion cls/SourceControl/Git/Extension.cls
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,3 @@ Method AddToSourceControl(InternalName As %String, Description As %String = "")
}

}

11 changes: 9 additions & 2 deletions cls/SourceControl/Git/Utils.cls
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Parameter GitContextMenuItems = ",%Diff,%Blame,";

ClassMethod %SYSNamespaceStorage() As %String [ CodeMode = expression ]
{
$Replace(..#Storage,"^","^["""_..#InstallNamespace_"""]")
$Replace(..#Storage,"^SYS","^%SYS")
}

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

ClassMethod MigrateInstanceSettings()
{
if $data(^["%SYS"]SYS("SourceControl", "Git")) {
merge ^%SYS("SourceControl", "Git") = ^["%SYS"]SYS("SourceControl", "Git")
kill ^["%SYS"]SYS("SourceControl", "Git")
}
}

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
{
#define Force 1
Expand Down Expand Up @@ -2563,4 +2571,3 @@ ClassMethod BaselineExport(pCommitMessage = "", pPushToRemote = "") As %Status
}

}

1 change: 0 additions & 1 deletion cls/SourceControl/Git/WebUIDriver.cls
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,3 @@ ClassMethod GetPackageVersion() As %Library.DynamicObject
}

}

1 change: 1 addition & 0 deletions git-webui/release/share/git-webui/webui/img/discarded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<Invoke Class="SourceControl.Git.Utils" Method="Localize" />
<Invoke Class="SourceControl.Git.Utils" Method="ConfigureWeb" />
<Invoke Class="SourceControl.Git.Utils" Method="CheckInitialization" />
<Invoke Class="SourceControl.Git.Utils" Method="MigrateInstanceSettings" />

<Invoke Class="SourceControl.Git.Utils" Method="ResetSourceControlClass" Phase="Unconfigure" />
</Module>
Expand Down
Loading