Remove 'pending' build state, update version numbers
This commit is contained in:
parent
58c7871388
commit
58e68088fa
|
@ -2089,7 +2089,7 @@ $collections = [
|
|||
'size' => 256,
|
||||
'signed' => true,
|
||||
'required' => true,
|
||||
'default' => 'pending',
|
||||
'default' => 'processing',
|
||||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
|
|
|
@ -438,7 +438,7 @@ return [
|
|||
[
|
||||
'name' => '_APP_FUNCTIONS_BUILD_TIMEOUT',
|
||||
'description' => 'The maximum number of seconds allowed as a timeout value when building a new function. The default value is 900 seconds.',
|
||||
'introduction' => '0.12.0',
|
||||
'introduction' => '0.13.0',
|
||||
'default' => '900',
|
||||
'required' => false,
|
||||
'question' => '',
|
||||
|
@ -491,8 +491,8 @@ return [
|
|||
],
|
||||
[
|
||||
'name' => '_APP_EXECUTOR_SECRET',
|
||||
'description' => 'The secret key used by appwrite to communicate with the function executor. Make sure to change this!',
|
||||
'introduction' => '0.11.0',
|
||||
'description' => 'The secret key used by Appwrite to communicate with the function executor. Make sure to change this!',
|
||||
'introduction' => '0.13.0',
|
||||
'default' => 'your-secret-key',
|
||||
'required' => false,
|
||||
'question' => '',
|
||||
|
|
|
@ -573,7 +573,7 @@ App::post('/v1/functions/:functionId/tags')
|
|||
'path' => $path,
|
||||
'size' => $size,
|
||||
'search' => implode(' ', [$tagId, $entrypoint]),
|
||||
'status' => 'pending',
|
||||
'status' => 'processing',
|
||||
'buildPath' => '',
|
||||
'buildStdout' => '',
|
||||
'buildStderr' => '',
|
||||
|
@ -677,7 +677,7 @@ App::get('/v1/functions/:functionId/tags')
|
|||
foreach ($results as &$tag) {
|
||||
$build = $dbForProject->getDocument('builds', $tag->getAttribute('buildId', ''));
|
||||
|
||||
$tag['status'] = $build->getAttribute('status', 'pending');
|
||||
$tag['status'] = $build->getAttribute('status', 'processing');
|
||||
$tag['buildStdout'] = $build->getAttribute('stdout', '');
|
||||
$tag['buildStderr'] = $build->getAttribute('stderr', '');
|
||||
}
|
||||
|
|
|
@ -281,7 +281,7 @@ App::post('/v1/tag')
|
|||
'$read' => (!empty($userId)) ? ['user:' . $userId] : [],
|
||||
'$write' => [],
|
||||
'dateCreated' => time(),
|
||||
'status' => 'pending',
|
||||
'status' => 'processing',
|
||||
'runtime' => $function->getAttribute('runtime'),
|
||||
'outputPath' => '',
|
||||
'source' => $tag->getAttribute('path'),
|
||||
|
@ -922,7 +922,7 @@ function execute(string $trigger, string $projectId, string $executionId, string
|
|||
'$read' => (!$userId == '') ? ['user:' . $userId] : [],
|
||||
'$write' => [],
|
||||
'dateCreated' => time(),
|
||||
'status' => 'pending',
|
||||
'status' => 'processing',
|
||||
'outputPath' => '',
|
||||
'runtime' => $function->getAttribute('runtime', ''),
|
||||
'source' => $tag->getAttribute('path'),
|
||||
|
|
|
@ -62,7 +62,7 @@ const APP_PAGING_LIMIT = 12;
|
|||
const APP_LIMIT_COUNT = 5000;
|
||||
const APP_LIMIT_USERS = 10000;
|
||||
const APP_CACHE_BUSTER = 200;
|
||||
const APP_VERSION_STABLE = '0.12.0';
|
||||
const APP_VERSION_STABLE = '0.13.0';
|
||||
const APP_DATABASE_ATTRIBUTE_EMAIL = 'email';
|
||||
const APP_DATABASE_ATTRIBUTE_ENUM = 'enum';
|
||||
const APP_DATABASE_ATTRIBUTE_IP = 'ip';
|
||||
|
|
|
@ -143,7 +143,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled', true);
|
|||
<div class="text-size-small margin-top-small clear">
|
||||
<span data-ls-if="{{tag.status}} == 'failed'" style="color: var(--config-color-danger)" class="pull-start" data-ls-bind="{{tag.status}}"></span>
|
||||
<span data-ls-if="{{tag.status}} == 'ready'" style="color: var(--config-color-success)" class="pull-start" data-ls-bind="{{tag.status}}"></span>
|
||||
<span data-ls-if="{{tag.status}} == 'processing' || {{tag.status}} == 'building' || {{tag.status}} == 'pending'" style="color: var(--config-color-info)" class="pull-start" data-ls-bind="{{tag.status}}"></span>
|
||||
<span data-ls-if="{{tag.status}} == 'processing' || {{tag.status}} == 'building'" style="color: var(--config-color-info)" class="pull-start" data-ls-bind="{{tag.status}}"></span>
|
||||
<span class="pull-start" data-ls-bind=" | Created {{tag.dateCreated|timeSince}} | {{tag.size|humanFileSize}}{{tag.size|humanFileUnit}}"></span>
|
||||
|
||||
<span data-ls-if="{{tag.status}} == 'failed'"> | <button type="button" class="link text-size-small" data-ls-ui-trigger="open-stderr-{{tag.$id}}">Logs</button></span>
|
||||
|
|
5
composer.lock
generated
5
composer.lock
generated
|
@ -3697,6 +3697,9 @@
|
|||
"require": {
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"replace": {
|
||||
"myclabs/deep-copy": "self.version"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/collections": "^1.0",
|
||||
"doctrine/common": "^2.6",
|
||||
|
@ -6662,5 +6665,5 @@
|
|||
"platform-overrides": {
|
||||
"php": "8.0"
|
||||
},
|
||||
"plugin-api-version": "2.2.0"
|
||||
"plugin-api-version": "2.1.0"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue