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

Conversation

isc-hwojnick
Copy link
Contributor

Fixes #444

@@ -183,6 +183,13 @@ ClassMethod IsImportAfter(menuItemName As %String) As %Boolean [ CodeMode = expr
$Find(..#ImportAfterGitMenuItems, ","_menuItemName_",") > 0
}

ClassMethod MigrateInstanceSettings()
{
if '$data(@..%SYSNamespaceStorage()@("%gitBinPath")) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is no gitBinPath configured on the system, this will run every time git-source-control is installed, which could lead to weird behavior. I think instead we should check if any subscripts are defined in the old global (not just "%gitBinPath"). If yes, then we merge the old global to the new and kill the old global.

cls/SourceControl/Git/Utils.cls Outdated Show resolved Hide resolved
@isc-tleavitt isc-tleavitt self-requested a review August 16, 2024 11:19
@isc-hwojnick isc-hwojnick merged commit b700b2c into main Aug 16, 2024
2 checks passed
@isc-hwojnick isc-hwojnick deleted the instance-settings-global branch August 16, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git commands fail for %Developer user if git not on path
3 participants