From 6b6a7606d7d82701e2ff316c32ed123bc236dd5d Mon Sep 17 00:00:00 2001 From: Pravin Barton <9560941+isc-pbarton@users.noreply.github.com> Date: Wed, 17 Sep 2025 16:57:04 -0400 Subject: [PATCH] enh: settings page has control to lock / unlock namespace for edits --- CHANGELOG.md | 5 +++++ csp/gitprojectsettings.csp | 28 +++++++++++++++++++++++++++- module.xml | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a5d6142..f2fb713a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.14.0] - Unreleased + +### Added +- Option to lock/unlock namespace is now available on the settings page (#650) + ## [2.13.1] - 2025-09-16 ### Fixed diff --git a/csp/gitprojectsettings.csp b/csp/gitprojectsettings.csp index 9ed384b9..3391baae 100644 --- a/csp/gitprojectsettings.csp +++ b/csp/gitprojectsettings.csp @@ -119,6 +119,7 @@ body { } if ('settings.settingsUIReadOnly) { + do ##class(SourceControl.Git.Utils).Locked($get(%request.Data("lockNamespace",1))) for param="gitBinPath","namespaceTemp","privateKeyFile","pullEventClass","percentClassReplace", "defaultMergeBranch","environmentName","mappingsToken" { set $Property(settings,param) = $Get(%request.Data(param,1)) } @@ -215,7 +216,7 @@ body { Success! Your changes have been saved. -