oportunidades 8
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-14 08:25:30 +02:00
parent 287e991486
commit ba1c0340ea
9112 changed files with 2199795 additions and 856 deletions
@@ -0,0 +1,2 @@
<?php
ini_set('zend.exception_ignore_args','1');putenv('STABILITY_QA_MODE=consumers');$b8Root=dirname(__DIR__,2);$app=require $b8Root.'/storage/app/private/investmoz-v2/portal-audit/portal-stability-source-20261011_083742/tools/portal-stability-runtime.php';$db=Illuminate\Support\Facades\DB::connection();$t=(array)$db->selectOne('SELECT current_database() AS database,inet_server_port() AS port');if($t!==['database'=>'stability_consumers_20261011_084534_test','port'=>55441])throw new RuntimeException('QA required');$db->beginTransaction();$db->statement('SET TRANSACTION READ ONLY');try{$rows=$db->table('desk_cases as c')->join('investor_journeys as j','j.id','=','c.journey_id')->whereNotNull('j.path_definition_id')->whereNull('j.deleted_at')->whereNull('c.closed_at')->get(['c.id','c.user_id']);$p=['target'=>$t,'SQL_read_only'=>true,'owned21'=>$rows->filter(fn($r)=>(int)$r->user_id===21)->values(),'other'=>$rows->filter(fn($r)=>(int)$r->user_id!==21)->take(1)->values()];file_put_contents(__DIR__.'/option-B8-path-context-read.json',json_encode($p,JSON_PRETTY_PRINT|JSON_THROW_ON_ERROR));echo json_encode($p);}finally{$db->rollBack();}