Skip to content

Commit 3477f86

Browse files
authored
Merge pull request #289 from intersystems/add-custom-pull-handlers
Add custom pull handlers
2 parents f4d4f8e + b140fba commit 3477f86

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- Fatal: bad revision HEAD fixed using an empty commmit (#228)
1717
- Fixed empty mappings when SourceControl.Git.Settings is instantiated (#250)
1818
- Studio export path doesn't get weird mixed slahes on Windows (#252)
19+
- Fixed custom PullHandlers not visible on settings UI (now all subclasses are visible) (#267)
1920
- Fixed bug with adding mappings through the Settings page (#270)
2021
- Pulling add/delete of multiple non-IRIS files no longer causes error (#273)
2122
- Fixed -2 timestamp for some items (#275)

csp/gitprojectsettings.csp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,14 @@ body {
237237
<label for="pullEventClass" class="col-sm-3 col-form-label" data-toggle="tooltip" data-placement="top" title="Handler class for git pull">Pull Event Class</label>
238238
<div class="col-sm-7">
239239
<select class="form-control" id="pullEventClass" name="pullEventClass">
240-
<option value="SourceControl.Git.PullEventHandler.Default" #($Case(settings.pullEventClass,"SourceControl.Git.PullEventHandler.Default":"selected",:""))#>Default</option>
241-
<option value="SourceControl.Git.PullEventHandler.PackageManager" #($Case(settings.pullEventClass,"SourceControl.Git.PullEventHandler.PackageManager":"selected",:""))#>PackageManager</option>
240+
<server>
241+
set rs = ##class(%Dictionary.ClassDefinition).SubclassOfFunc("SourceControl.Git.PullEventHandler")
242+
while rs.%Next() {
243+
set subclass = rs.%GetData(1)
244+
// create option with subclass, set selected if subclass == current pullEventClass
245+
&html<<option value=#(subclass)# #($CASE(subclass, settings.pullEventClass: "selected", :""))#>#($PIECE(subclass, ".", *-0))# </option>>
246+
}
247+
</server>
242248
</select>
243249
</div>
244250
</div>

0 commit comments

Comments
 (0)