Exige motivo na reversão territorial e prepara novo plano

This commit is contained in:
2026-10-09 02:15:36 +02:00
parent 6a71aa47e3
commit 6c7a9c9442
9 changed files with 129 additions and 11 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ if ($applied['changed'] !== count($plan['updates']) || ! $replayed['replayed'] |
throw new RuntimeException('Application/idempotence failed.');
}
$sources = $service->sources('economic_clusters', $plan['rows'][array_search('economic_clusters', array_column($plan['rows'], 'kind'))]['record_id']);
$reversed = $service->apply($qaHash, $actor, true);
$reversed = $service->apply($qaHash, $actor, true, 'Ensaio de reversão na cópia QA restaurada.');
$after = $snapshot();
foreach ($after as $index => $row) {
$expected = $before[$index];