mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-26 06:54:38 +03:00
384e68cab4
- Default structure item type to 'group' when omitted; accept groupFields as alias for groupBy
- Parse string shorthand items inside OrGroup/AndGroup/NotGroup filter recursion
- Accept useRestriction key (object form { field: true }) alongside restrict array
- Deduplicate SelectedItemAuto in skd-edit add-selection
- Update SKILL.md with object structure and useRestriction docs
- Add test cases for all 4 fixes
skd-compile v1.9→v1.10, skd-edit v1.8→v1.9
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
32 lines
908 B
JSON
32 lines
908 B
JSON
{
|
|
"name": "add-selection Auto не дублируется если уже существует",
|
|
"preRun": [
|
|
{
|
|
"script": "skd-compile/scripts/skd-compile",
|
|
"input": {
|
|
"dataSets": [{
|
|
"name": "Основной",
|
|
"query": "ВЫБРАТЬ Т.Поле1, Т.Поле2 ИЗ Регистр КАК Т",
|
|
"fields": ["Поле1", "Поле2"]
|
|
}],
|
|
"settingsVariants": [{
|
|
"name": "Основной",
|
|
"settings": {
|
|
"selection": ["Auto"],
|
|
"structure": "details"
|
|
}
|
|
}]
|
|
},
|
|
"args": { "-DefinitionFile": "{inputFile}", "-OutputPath": "{workDir}/Template.xml" }
|
|
}
|
|
],
|
|
"params": {
|
|
"templatePath": "Template.xml",
|
|
"operation": "add-selection",
|
|
"value": "Auto ;; Поле1 ;; Поле2"
|
|
},
|
|
"expect": {
|
|
"stdout": "WARN.*SelectedItemAuto already exists"
|
|
}
|
|
}
|