Skip to content

Commit fc9d6d0

Browse files
authored
Merge branch 'main' into Issue-#709
2 parents 7f2b6ff + a147078 commit fc9d6d0

File tree

7 files changed

+51
-25
lines changed

7 files changed

+51
-25
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Pull event handler that does an IPM uninstall and load to handle deletes (#631)
1212
- Partial support for production decomposition with the new interoperability editors
1313
- Added Lock Branch setting to prevent switching branches for a protected namespace (#709)
14+
- Tooltips on branch operations in Git UI (#725)
1415

1516
### Fixed
17+
- Changing system mode (environment name) in setting spersists after instance restart (#655)
18+
- Popping from stash is more responsive (#687)
1619
- Favorites links for Git pages now works on recent IRIS versions (#734)
1720

1821
## [2.10.0] - 2025-02-10

cls/SourceControl/Git/Settings.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Method %Save() As %Status
163163
set @storage@("settings", "user", $username, "basicMode") = ..basicMode
164164
}
165165
try {
166-
do $SYSTEM.Version.SystemMode(..environmentName)
166+
do ##class(%zpkg.isc.sc.git.SystemMode).SetSystemMode(..environmentName)
167167
} catch e {
168168
// no-op; user might not have privileges.
169169
}

cls/_zpkg/isc/sc/git/SystemMode.cls

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Class %zpkg.isc.sc.git.SystemMode
2+
{
3+
ClassMethod SetEnvironment(environment As %String) As %Status [ NotInheritable, Private ]
4+
{
5+
$$$AddAllRoleTemporary
6+
do $SYSTEM.Version.SystemMode(environment)
7+
new $namespace
8+
set $namespace = "%SYS"
9+
set obj = ##class(Config.Startup).Open()
10+
set obj.SystemMode = environment
11+
return obj.%Save()
12+
}
13+
14+
ClassMethod SetSystemMode(environment As %String) As %Status [ NotInheritable ]
15+
{
16+
try {
17+
do ..SetEnvironment(environment)
18+
} catch e {
19+
return e.AsStatus()
20+
}
21+
return $$$OK
22+
}
23+
}

docs/testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following is a testing plan that should be followed prior to release of a ne
1818
- Add, edit, and delete items through Studio / VS Code. Use the Sync option. All changes should be committed and pushed to the remote.
1919
- Add, edit, and delete items on the remote. Add, edit, and delete unrelated items through Studio/VSCode. All changes should be pulled, committed, and pushed.
2020
- Add an item to an interoperability production and sync. Check out a new feature branch. The item should no longer exist in the production. Set the previous branch as the remote merge branch. Sync. The new item should exist in the production.
21-
- Add an item to a production and sync. Check out a new feature branch. The item should no longer exist in the production. Set the previous branch as the remote merge branch. Add a new item to the production. Sync. The production should now have both new items, and the source control output should show it automatically resolved a conflict.
21+
- Make sure production decomposition is off. Add an item to a production and sync. Check out a new feature branch. The item should no longer exist in the production. Set the previous branch as the remote merge branch. Add a new item to the production. Sync. The production should now have both new items, and the source control output should show it automatically resolved a conflict.
2222

2323
## Testing production decomposition
2424
- Enable production decomposition in the git-source-control settings.

git-webui/release/share/git-webui/webui/js/git-webui.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1009,13 +1009,13 @@ webui.SideBarView = function(mainView, noEventHandlers) {
10091009
'</section>' +
10101010
'<section id="sidebar-local-branches">' +
10111011
'<h4 class="mt-1">Local Branches' +
1012-
'<button type="button" class="btn btn-default btn-sidebar-icon btn-add shadow-none" >' +
1012+
'<button type="button" class="btn btn-default btn-sidebar-icon btn-add shadow-none" title="Create new branch">' +
10131013
webui.circlePlusIcon+
10141014
'</button>' + '</h4>' +
10151015
'</section>' +
10161016
'<section id="sidebar-remote-branches">' +
10171017
'<h4 class="mt-1">Remote Branches' +
1018-
'<button type="button" class="btn btn-default btn-sidebar-icon btn-prune-remote-branches shadow-none" >'+
1018+
'<button type="button" class="btn btn-default btn-sidebar-icon btn-prune-remote-branches shadow-none" title="Git fetch of remote branches">'+
10191019
webui.refreshIcon+
10201020
'</button>' +'</h4>' +
10211021
'</section>' +
@@ -2005,10 +2005,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20052005
}
20062006
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20072007
webui.git_command(["stash", "apply", "stash@{"+stashIndex+"}"], function(output) {
2008-
webui.showSuccess(output);
2009-
parent.stashView.update(0);
2008+
webui.showSuccess("Applied stash item");
2009+
parent.update();
20102010
self.clear()
2011-
});
2011+
}, webui.showWarning(output), webui.showError(output));
20122012
}
20132013

20142014
self.popSelectedStash = function() {
@@ -2017,10 +2017,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20172017
}
20182018
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20192019
webui.git_command(["stash", "pop", "stash@{"+stashIndex+"}"], function(output) {
2020-
webui.showSuccess(output);
2021-
parent.stashView.update(0);
2020+
webui.showSuccess("Popped from stash");
2021+
parent.update();
20222022
self.clear()
2023-
});
2023+
}, webui.showWarning(output), webui.showError(output));
20242024
}
20252025

20262026
self.dropSelectedStash = function() {
@@ -2029,10 +2029,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20292029
}
20302030
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20312031
webui.git_command(["stash", "drop", "stash@{"+stashIndex+"}"], function() {
2032-
webui.showSuccess(output.substring(output.indexOf("Dropped")));
2033-
parent.stashView.update(0);
2032+
webui.showSuccess("Dropped from stash");
2033+
parent.update();
20342034
self.clear();
2035-
});
2035+
}, webui.showWarning(output), webui.showError(output));
20362036
}
20372037

20382038
var html = '<div class="diff-view-container panel panel-default">';

git-webui/src/share/git-webui/webui/js/git-webui.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1009,13 +1009,13 @@ webui.SideBarView = function(mainView, noEventHandlers) {
10091009
'</section>' +
10101010
'<section id="sidebar-local-branches">' +
10111011
'<h4 class="mt-1">Local Branches' +
1012-
'<button type="button" class="btn btn-default btn-sidebar-icon btn-add shadow-none" >' +
1012+
'<button type="button" class="btn btn-default btn-sidebar-icon btn-add shadow-none" title="Create new branch">' +
10131013
webui.circlePlusIcon+
10141014
'</button>' + '</h4>' +
10151015
'</section>' +
10161016
'<section id="sidebar-remote-branches">' +
10171017
'<h4 class="mt-1">Remote Branches' +
1018-
'<button type="button" class="btn btn-default btn-sidebar-icon btn-prune-remote-branches shadow-none" >'+
1018+
'<button type="button" class="btn btn-default btn-sidebar-icon btn-prune-remote-branches shadow-none" title="Git fetch of remote branches">'+
10191019
webui.refreshIcon+
10201020
'</button>' +'</h4>' +
10211021
'</section>' +
@@ -2005,10 +2005,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20052005
}
20062006
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20072007
webui.git_command(["stash", "apply", "stash@{"+stashIndex+"}"], function(output) {
2008-
webui.showSuccess(output);
2009-
parent.stashView.update(0);
2008+
webui.showSuccess("Applied stash item");
2009+
parent.update();
20102010
self.clear()
2011-
});
2011+
}, webui.showWarning(output), webui.showError(output));
20122012
}
20132013

20142014
self.popSelectedStash = function() {
@@ -2017,10 +2017,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20172017
}
20182018
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20192019
webui.git_command(["stash", "pop", "stash@{"+stashIndex+"}"], function(output) {
2020-
webui.showSuccess(output);
2021-
parent.stashView.update(0);
2020+
webui.showSuccess("Popped from stash");
2021+
parent.update();
20222022
self.clear()
2023-
});
2023+
}, webui.showWarning(output), webui.showError(output));
20242024
}
20252025

20262026
self.dropSelectedStash = function() {
@@ -2029,10 +2029,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20292029
}
20302030
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20312031
webui.git_command(["stash", "drop", "stash@{"+stashIndex+"}"], function() {
2032-
webui.showSuccess(output.substring(output.indexOf("Dropped")));
2033-
parent.stashView.update(0);
2032+
webui.showSuccess("Dropped from stash");
2033+
parent.update();
20342034
self.clear();
2035-
});
2035+
}, webui.showWarning(output), webui.showError(output));
20362036
}
20372037

20382038
var html = '<div class="diff-view-container panel panel-default">';

module.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Document name="git-source-control.ZPM">
44
<Module>
55
<Name>git-source-control</Name>
6-
<Version>2.10.0</Version>
6+
<Version>2.11.0</Version>
77
<Description>Server-side source control extension for use of Git on InterSystems platforms</Description>
88
<Keywords>git source control studio vscode</Keywords>
99
<Packaging>module</Packaging>

0 commit comments

Comments
 (0)