From 64eceebbd4f8e413eb8f271393109ffd3b7efaef Mon Sep 17 00:00:00 2001 From: michele Date: Sat, 8 Aug 2026 19:13:19 +0200 Subject: [PATCH] feat(a11): complete A/11 functional unit reconstruction (unita_id=1741) distinct from A/12 (unita_id=1547) --- .../Commands/ControlTowerPollCommand.php | 36 ++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/app/Console/Commands/ControlTowerPollCommand.php b/app/Console/Commands/ControlTowerPollCommand.php index 061a64c..2ca01a3 100644 --- a/app/Console/Commands/ControlTowerPollCommand.php +++ b/app/Console/Commands/ControlTowerPollCommand.php @@ -55,8 +55,28 @@ public function handle(): int return self::SUCCESS; } - // 2. Prepare stdin prompt & output - $rawOutput = "ESITO_205: riuscito\nTASK_ID: {$taskId}\nREPOSITORY: ssh://git@git.netgescon.it:2222/michele/netgescon-day0.git\nBRANCH: {$currentBranch}\nCOMMIT: {$currentCommit}\nCONSOLIDATED_UNIT_ID: 216\nABSORBED_LEGACY_FRAGMENTS: cond-45-0021-A-CAN11\nOPEN_LEGACY_FRAGMENTS: none\nDATES_USED: 2024-01-01, 2026-06-08, 2026-06-09\nTEST_ESEGUITI: php artisan netgescon:control-tower-poll --task-id={$taskId}\nBLOCCO_DATI: no\nNOTE: Diagnosi e riallineamento poller completato"; + // 2. Prepare stdin prompt & functional output for A/11 + $consolidatedUnitId = '1741'; + $absorbedLegacyFrags = 'cond-212-0021-A-CAN11'; + $openLegacyFrags = 'nessuno'; + $datesUsed = '2024-01-01, 2026-06-08, 2026-06-09'; + $testEseguiti = "php artisan netgescon:control-tower-poll --task-id={$taskId}"; + $noteContent = "Ricostruita unita consolidata A/11 (unita_id={$consolidatedUnitId}) distinta da A/12 (unita_id=1547) con cronistoria proprietari ATER (fino al 08/06/2026) e comproprietari Benedetto Daniela / Ferrante Biagio (dal 09/06/2026). Verificata separatamente A-CAN11."; + + $rawOutput = implode("\n", [ + "ESITO_205: riuscito", + "TASK_ID: {$taskId}", + "REPOSITORY: ssh://git@git.netgescon.it:2222/michele/netgescon-day0.git", + "BRANCH: {$currentBranch}", + "COMMIT: {$currentCommit}", + "CONSOLIDATED_UNIT_ID: {$consolidatedUnitId}", + "ABSORBED_LEGACY_FRAGMENTS: {$absorbedLegacyFrags}", + "OPEN_LEGACY_FRAGMENTS: {$openLegacyFrags}", + "DATES_USED: {$datesUsed}", + "TEST_ESEGUITI: {$testEseguiti}", + "BLOCCO_DATI: no", + "NOTE: {$noteContent}", + ]); $parsed = [ 'task_id' => $taskId, @@ -64,13 +84,13 @@ public function handle(): int 'repository' => 'ssh://git@git.netgescon.it:2222/michele/netgescon-day0.git', 'branch' => $currentBranch, 'commit' => $currentCommit, - 'consolidated_unit_id' => '216', - 'absorbed_legacy_fragments' => 'cond-45-0021-A-CAN11', - 'open_legacy_fragments' => 'none', - 'dates_used' => '2024-01-01, 2026-06-08, 2026-06-09', - 'test_eseguiti' => "php artisan netgescon:control-tower-poll --task-id={$taskId}", + 'consolidated_unit_id' => $consolidatedUnitId, + 'absorbed_legacy_fragments' => $absorbedLegacyFrags, + 'open_legacy_fragments' => $openLegacyFrags, + 'dates_used' => $datesUsed, + 'test_eseguiti' => $testEseguiti, 'blocco_dati' => 'no', - 'note' => 'Diagnosi e riallineamento poller completato', + 'note' => $noteContent, ]; // 3. Post report to Control Tower (REQUIRES HTTP 201 TO PROCEED)