OPR v5 + Flutter starter

This commit is contained in:
Matej Bačo
2025-03-11 18:19:25 +01:00
parent 0170b4c9e8
commit 994e2faa42
16 changed files with 80 additions and 38 deletions
@@ -169,7 +169,7 @@ class Create extends Base
'commands' => $commands,
'scopes' => $scopes,
'search' => implode(' ', [$functionId, $name, $runtime]),
'version' => 'v4',
'version' => 'v5',
'installationId' => $installation->getId(),
'installationInternalId' => $installation->getInternalId(),
'providerRepositoryId' => $providerRepositoryId,
@@ -1102,7 +1102,7 @@ class Builds extends Action
{
return match ($resource->getCollection()) {
'functions' => $resource->getAttribute('version', 'v2'),
'sites' => 'v4',
'sites' => 'v5',
};
}
+1 -1
View File
@@ -119,7 +119,7 @@ class Func extends Model
->addRule('version', [
'type' => self::TYPE_STRING,
'description' => 'Version of Open Runtimes used for the function.',
'default' => 'v4',
'default' => 'v5',
'example' => 'v2',
])
->addRule('installationId', [
+4 -4
View File
@@ -74,8 +74,8 @@ class Executor
$route = "/runtimes";
// Remove after migration
if ($version == 'v3') {
$version = 'v4';
if ($version == 'v3' || $version === 'v4') {
$version = 'v5';
}
$params = [
@@ -201,8 +201,8 @@ class Executor
$route = '/runtimes/' . $runtimeId . '/executions';
// Remove after migration
if ($version == 'v3') {
$version = 'v4';
if ($version == 'v3' || $version === 'v4') {
$version = 'v5';
}
$params = [