mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Remove active depoyment status (not relevant, always ready)
This commit is contained in:
@@ -579,17 +579,6 @@ return [
|
||||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('deploymentStatus'),
|
||||
'type' => Database::VAR_STRING,
|
||||
'format' => '',
|
||||
'size' => 16,
|
||||
'signed' => true,
|
||||
'required' => false,
|
||||
'default' => '',
|
||||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('deploymentCreatedAt'),
|
||||
'type' => Database::VAR_DATETIME,
|
||||
@@ -1025,17 +1014,6 @@ return [
|
||||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('deploymentStatus'),
|
||||
'type' => Database::VAR_STRING,
|
||||
'format' => '',
|
||||
'size' => 16,
|
||||
'signed' => true,
|
||||
'required' => false,
|
||||
'default' => '',
|
||||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('deploymentCreatedAt'),
|
||||
'type' => Database::VAR_DATETIME,
|
||||
|
||||
@@ -100,7 +100,6 @@ class Delete extends Action
|
||||
$function = $dbForProject->updateDocument('functions', $function->getId(), new Document(array_merge($function->getArrayCopy(), [
|
||||
'deploymentId' => '',
|
||||
'deploymentInternalId' => '',
|
||||
'deploymentStatus' => '',
|
||||
'deploymentCreatedAt' => '',
|
||||
])));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,6 @@ class Update extends Base
|
||||
$function = $dbForProject->updateDocument('functions', $function->getId(), new Document(array_merge($function->getArrayCopy(), [
|
||||
'deploymentInternalId' => $deployment->getInternalId(),
|
||||
'deploymentId' => $deployment->getId(),
|
||||
'deploymentStatus' => $deployment->getAttribute('status', ''),
|
||||
'deploymentCreatedAt' => $deployment->getCreatedAt(),
|
||||
])));
|
||||
|
||||
|
||||
@@ -868,7 +868,6 @@ class Builds extends Action
|
||||
|
||||
$resource->setAttribute('deploymentId', $deployment->getId());
|
||||
$resource->setAttribute('deploymentInternalId', $deployment->getInternalId());
|
||||
$resource->setAttribute('deploymentStatus', $deployment->getAttribute('status', ''));
|
||||
$resource->setAttribute('deploymentCreatedAt', $deployment->getCreatedAt());
|
||||
$resource = $dbForProject->updateDocument('functions', $resource->getId(), $resource);
|
||||
|
||||
@@ -902,7 +901,6 @@ class Builds extends Action
|
||||
$resource->setAttribute('deploymentInternalId', $deployment->getInternalId());
|
||||
$resource->setAttribute('deploymentScreenshotDark', $deployment->getAttribute('screenshotDark', ''));
|
||||
$resource->setAttribute('deploymentScreenshotLight', $deployment->getAttribute('screenshotLight', ''));
|
||||
$resource->setAttribute('deploymentStatus', $deployment->getAttribute('status', ''));
|
||||
$resource->setAttribute('deploymentCreatedAt', $deployment->getCreatedAt());
|
||||
$resource = $dbForProject->updateDocument('sites', $resource->getId(), $resource);
|
||||
$queries = [
|
||||
|
||||
@@ -102,7 +102,6 @@ class Delete extends Action
|
||||
'deploymentInternalId' => '',
|
||||
'deploymentScreenshotDark' => '',
|
||||
'deploymentScreenshotLight' => '',
|
||||
'deploymentStatus' => '',
|
||||
'deploymentCreatedAt' => '',
|
||||
])));
|
||||
}
|
||||
|
||||
@@ -92,7 +92,6 @@ class Update extends Base
|
||||
'deploymentId' => $deployment->getId(),
|
||||
'deploymentScreenshotDark' => $deployment->getAttribute('screenshotDark', ''),
|
||||
'deploymentScreenshotLight' => $deployment->getAttribute('screenshotLight', ''),
|
||||
'deploymentStatus' => $deployment->getAttribute('status', ''),
|
||||
'deploymentCreatedAt' => $deployment->getCreatedAt(),
|
||||
])));
|
||||
|
||||
|
||||
@@ -77,12 +77,6 @@ class Func extends Model
|
||||
'default' => '',
|
||||
'example' => self::TYPE_DATETIME_EXAMPLE,
|
||||
])
|
||||
->addRule('deploymentStatus', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Active deployment status. Possible values are "waiting", "processing", "building", "waiting", "ready", and "failed".',
|
||||
'default' => '',
|
||||
'example' => 'ready',
|
||||
])
|
||||
->addRule('scopes', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Allowed permission scopes.',
|
||||
|
||||
@@ -64,12 +64,6 @@ class Site extends Model
|
||||
'default' => '',
|
||||
'example' => self::TYPE_DATETIME_EXAMPLE,
|
||||
])
|
||||
->addRule('deploymentStatus', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Active deployment status. Possible values are "waiting", "processing", "building", "waiting", "ready", and "failed".',
|
||||
'default' => '',
|
||||
'example' => 'ready',
|
||||
])
|
||||
->addRule('deploymentScreenshotLight', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Screenshot of active deployment with light theme preference file ID.',
|
||||
|
||||
@@ -496,10 +496,8 @@ class FunctionsCustomServerTest extends Scope
|
||||
$function = $this->getFunction($functionId);
|
||||
$this->assertEquals(200, $function['headers']['status-code']);
|
||||
$this->assertNotEmpty($function['body']['deploymentId']);
|
||||
$this->assertNotEmpty($function['body']['deploymentStatus']);
|
||||
$this->assertNotEmpty($function['body']['deploymentCreatedAt']);
|
||||
$this->assertEquals($deployment['body']['$id'], $function['body']['deploymentId']);
|
||||
$this->assertEquals($deployment['body']['status'], $function['body']['deploymentStatus']);
|
||||
$this->assertEquals($deployment['body']['$createdAt'], $function['body']['deploymentCreatedAt']);
|
||||
|
||||
$function = $this->cleanupFunction($functionId);
|
||||
|
||||
@@ -370,10 +370,8 @@ class SitesCustomServerTest extends Scope
|
||||
$site = $this->getSite($siteId);
|
||||
$this->assertEquals(200, $site['headers']['status-code']);
|
||||
$this->assertNotEmpty($site['body']['deploymentId']);
|
||||
$this->assertNotEmpty($site['body']['deploymentStatus']);
|
||||
$this->assertNotEmpty($site['body']['deploymentCreatedAt']);
|
||||
$this->assertEquals($deployment['body']['$id'], $site['body']['deploymentId']);
|
||||
$this->assertEquals($deployment['body']['status'], $site['body']['deploymentStatus']);
|
||||
$this->assertEquals($deployment['body']['$createdAt'], $site['body']['deploymentCreatedAt']);
|
||||
|
||||
$this->cleanupSite($siteId);
|
||||
|
||||
Reference in New Issue
Block a user