revert: undo the app changes from the test clean-up

Revert the app code changes of d666a0a95, 69eeb2f62, 1e66c9f9b and
a32082b03, so login, registration, OAuth, team danger zone, service
templates, and the other touched files are back to their earlier state.
Keep the removal of unused components and markup-only tests (d666a0a95
also contained those deletions by mistake).

StartupExecutionCleanupTest now fakes the template CDN with the current
file content, so app:init in the test no longer empties
templates/service-templates-latest.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-09-28 08:06:34 +02:00
co-authored by Claude Opus 5.5
parent a79ee909c6
commit a6a3b1d26b
25 changed files with 58 additions and 170 deletions
+4 -3
View File
@@ -17,6 +17,7 @@ use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Http;
use Visus\Cuid2\Cuid2;
class Gitlab extends Controller
{
@@ -184,7 +185,7 @@ class Gitlab extends Controller
continue;
}
$deployment_uuid = new_public_id();
$deployment_uuid = new Cuid2;
$result = queue_application_deployment(
application: $application,
deployment_uuid: $deployment_uuid,
@@ -202,7 +203,7 @@ class Gitlab extends Controller
'mode' => 'app',
'application_uuid' => $application->uuid,
'application_name' => $application->name,
'deployment_uuid' => $deployment_uuid,
'deployment_uuid' => $deployment_uuid->toString(),
'commit' => $commit,
]);
@@ -274,7 +275,7 @@ class Gitlab extends Controller
continue;
}
$deployment_uuid = new_public_id();
$deployment_uuid = new Cuid2;
$found = ApplicationPreview::where('application_id', $application->id)
->where('pull_request_id', $pull_request_id)
->first();