add internalId to collections

This commit is contained in:
shimon
2022-12-22 18:40:39 +02:00
parent fa5c8c5070
commit 1393df3dc0
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -98,7 +98,8 @@ class BuildsV1 extends Worker
'endTime' => null,
'duration' => 0
]));
$deployment->setAttribute('buildId', $buildId);
$deployment->setAttribute('buildId', $build->getId());
$deployment->setAttribute('buildInternalId', $build->getInternalId());
$deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment);
} else {
$build = $dbForProject->getDocument('builds', $buildId);
@@ -234,6 +235,7 @@ class BuildsV1 extends Worker
$usage = new Stats($statsd);
$usage
->setParam('projectId', $project->getId())
->setParam('projectInternalId', $project->getInternalId())
->setParam('functionId', $function->getId())
->setParam('builds.{scope}.compute', 1)
->setParam('buildStatus', $build->getAttribute('status', ''))
+1
View File
@@ -37,6 +37,7 @@ class EnvTest extends TestCase
$this->assertEquals("_APP_X=value1
_APP_Y=value2
_APP_Z=value3
_APP_W=value5=
", $this->object->export());
}
}