mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-16 15:55:16 +03:00
feat(skd-edit): modify-structure + фиксы set-structure/parameter/patch-query
- modify-structure: новая операция, меняет groupItems группы по @name=, сохраняя Selection/order/filter/conditionalAppearance (Bug 1) - set-structure: shorthand поддерживает запятую для нескольких полей в одном уровне группировки (Bug 2) - set-structure: @name= с обрамляющими кавычками (двойными/одинарными) снимает их при записи в <dcsset:name> (Bug 3) - add-parameter: ссылочные типы (CatalogRef, ChartOfAccountsRef, …) пишут <value xsi:type="dcscor:DesignTimeValue">, не xs:string (Bug 4a) - modify-parameter: namespace-aware lookup существующих свойств — обновляет inplace, не плодит дубли (Bug 4b) - modify-parameter value=…: пересборка <value> с корректным xsi:type из <valueType> (попутно лечит ранее битый XML) - patch-query: батч ;;-сегментов триммится по краям (Bug 5) - skd-compile: симметричный фикс ссылочных типов в emit_value Регресс: 23/23 PS, 23/23 PY (skd-edit), 21/21 PS+PY (skd-compile), 23/23 платформенный verify-snapshots. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "modify-parameter value=... обновляет существующий <value> (не дублирует)",
|
||||
"preRun": [
|
||||
{
|
||||
"script": "skd-compile/scripts/skd-compile",
|
||||
"input": {
|
||||
"dataSets": [{
|
||||
"name": "Основной",
|
||||
"query": "ВЫБРАТЬ Т.Счет ИЗ Регистр КАК Т",
|
||||
"fields": ["Счет: string"]
|
||||
}]
|
||||
},
|
||||
"args": { "-DefinitionFile": "{inputFile}", "-OutputPath": "{workDir}/Template.xml" }
|
||||
},
|
||||
{
|
||||
"script": "skd-edit/scripts/skd-edit",
|
||||
"args": { "-TemplatePath": "{workDir}/Template.xml", "-Operation": "add-parameter", "-Value": "Контрагент: CatalogRef.Контрагенты = Справочник.Контрагенты.ПустаяСсылка" }
|
||||
}
|
||||
],
|
||||
"params": {
|
||||
"templatePath": "Template.xml",
|
||||
"operation": "modify-parameter",
|
||||
"value": "Контрагент value=Справочник.Контрагенты.НашаОрганизация"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user