Skip to content

Commit 4ea1312

Browse files
committed
enabling production decomposition creates a default mapping for PTD items
1 parent 9fb2104 commit 4ea1312

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cls/SourceControl/Git/Settings.cls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ Method %Save() As %Status
144144
set ..userBasicMode = ##class(SourceControl.Git.Utils).UserBasicMode()
145145

146146
set @storage@("settings","decomposeProductions") = ..decomposeProductions
147+
if (..decomposeProductions & ($data(..Mappings("PTD"))<10)) {
148+
set ..Mappings("PTD","*") = "ptd/" // configure a default mapping for PTD items
149+
}
147150

148151
kill @##class(SourceControl.Git.Utils).MappingsNode()
149152
merge @##class(SourceControl.Git.Utils).MappingsNode() = ..Mappings

docs/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The following is a testing plan that should be followed prior to release of a ne
2121
- 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
24-
- Enable production decomposition in the git-source-control settings, and add a mapping for PTD items to the /ptd subdirectory.
24+
- Enable production decomposition in the git-source-control settings.
2525
- In Basic mode, check out a new branch. Create a new production, add some items, and sync. Confirm a file for production settings and a file for each production item has been added to the /ptd subdirectory and pushed to the remote repository.
2626
- In Advanced mode, create a new user. Log in and modify some items on the production. As the previous user, try to modify items in the production. I should not be able to modify those items modified by the other users.
2727
- Revert some production items through the workspace view in the Web UI. The production should automatically update.

0 commit comments

Comments
 (0)