fix debugging in vscode
This commit is contained in:
+9
-2
@@ -15,6 +15,10 @@ Directory for pre-write search-response backups.
|
|||||||
|
|
||||||
.PARAMETER PageSize
|
.PARAMETER PageSize
|
||||||
Number of rows requested per search page. All reported pages are retrieved.
|
Number of rows requested per search page. All reported pages are retrieved.
|
||||||
|
|
||||||
|
.PARAMETER RunWhenDotSourced
|
||||||
|
Runs the interactive workflow even when the script is dot-sourced. Intended for
|
||||||
|
debuggers such as the VS Code PowerShell debugger that dot-source launch scripts.
|
||||||
#>
|
#>
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param(
|
param(
|
||||||
@@ -28,7 +32,10 @@ param(
|
|||||||
|
|
||||||
[Parameter()]
|
[Parameter()]
|
||||||
[ValidateRange(1, 1000)]
|
[ValidateRange(1, 1000)]
|
||||||
[int] $PageSize = 80
|
[int] $PageSize = 80,
|
||||||
|
|
||||||
|
[Parameter()]
|
||||||
|
[switch] $RunWhenDotSourced
|
||||||
)
|
)
|
||||||
|
|
||||||
Set-StrictMode -Version Latest
|
Set-StrictMode -Version Latest
|
||||||
@@ -681,6 +688,6 @@ function Invoke-ElixFormsMetadataBulkUpdate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($MyInvocation.InvocationName -ne '.') {
|
if ($MyInvocation.InvocationName -ne '.' -or $RunWhenDotSourced) {
|
||||||
Invoke-ElixFormsMetadataBulkUpdate -BaseUri $BaseUri -BackupDirectory $BackupDirectory -PageSize $PageSize
|
Invoke-ElixFormsMetadataBulkUpdate -BaseUri $BaseUri -BackupDirectory $BackupDirectory -PageSize $PageSize
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+10
@@ -10,6 +10,16 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"script": "${file}",
|
"script": "${file}",
|
||||||
"args": []
|
"args": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "PowerShell: Debug ElixForms Schema Bulk Update",
|
||||||
|
"type": "PowerShell",
|
||||||
|
"request": "launch",
|
||||||
|
"script": "${workspaceFolder}/.agents/skills/elixforms-schema-bulk-updater/scripts/Invoke-ElixFormsSchemaBulkUpdate.ps1",
|
||||||
|
"args": [
|
||||||
|
"-RunWhenDotSourced"
|
||||||
|
],
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
"backedUpAt": "2026-08-24T10:36:22.7629037+02:00",
|
||||||
|
"baseUri": "https://console-unipr.elixforms.it/AJSRV/metadata",
|
||||||
|
"schemaId": 616,
|
||||||
|
"pageSize": 80,
|
||||||
|
"filters": {
|
||||||
|
"COL0010": "azione_form_AUTOR_firmaAutorizzazione"
|
||||||
|
},
|
||||||
|
"pages": [
|
||||||
|
{
|
||||||
|
"totalRecords": 1,
|
||||||
|
"pageSize": 80,
|
||||||
|
"numPages": 1,
|
||||||
|
"currentPage": 1,
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"key": "ID_OBJECT",
|
||||||
|
"value": "ID_OBJECT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "S_616_ID_GENERICSCHEMA",
|
||||||
|
"value": "S_616_ID_GENERICSCHEMA"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "S_616_COL0014",
|
||||||
|
"value": "Titolo template"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "S_616_COL0010",
|
||||||
|
"value": "Tag azione"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "S_616_COL0011",
|
||||||
|
"value": "Tag procedimento"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "S_616_COL0009",
|
||||||
|
"value": "Template"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "S_616_COL0012",
|
||||||
|
"value": "Tag modulo"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"data": [
|
||||||
|
[
|
||||||
|
"35274",
|
||||||
|
"168008",
|
||||||
|
"Autorizzazione sottodominio",
|
||||||
|
"azione_form_AUTOR_firmaAutorizzazione",
|
||||||
|
"gestione_siti_web_nuovo_wf",
|
||||||
|
"Template autorizzazione sottodominio",
|
||||||
|
"RequestForm_GESTIONE_SITI_WEB_NUOVO"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"extraData": {}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user