Integrate SP auctions for app deployment #2
@ -130,6 +130,9 @@ export class Deployment {
|
|||||||
@Column('varchar')
|
@Column('varchar')
|
||||||
deployerLrn!: string;
|
deployerLrn!: string;
|
||||||
|
|
||||||
|
@Column('varchar', { nullable: true })
|
||||||
|
auctionId!: string | null;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
enum: Environment
|
enum: Environment
|
||||||
})
|
})
|
||||||
|
@ -47,7 +47,7 @@ export class Project {
|
|||||||
description!: string;
|
description!: string;
|
||||||
|
|
||||||
@Column('varchar', { nullable: true })
|
@Column('varchar', { nullable: true })
|
||||||
auctionId?: string | null;
|
auctionId!: string | null;
|
||||||
|
|
||||||
@Column({ type: 'simple-array', nullable: true })
|
@Column({ type: 'simple-array', nullable: true })
|
||||||
deployerLrn!: string[] | null;
|
deployerLrn!: string[] | null;
|
||||||
|
@ -377,8 +377,7 @@ export class Registry {
|
|||||||
return records.filter((record: AppDeploymentRecord) =>
|
return records.filter((record: AppDeploymentRecord) =>
|
||||||
deployments.some(
|
deployments.some(
|
||||||
(deployment) =>
|
(deployment) =>
|
||||||
deployment.applicationRecordId === record.attributes.application &&
|
deployment.applicationRecordId === record.attributes.application
|
||||||
record.attributes.url.includes(deployment.id)
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -746,7 +746,8 @@ export class Service {
|
|||||||
createdBy: Object.assign(new User(), {
|
createdBy: Object.assign(new User(), {
|
||||||
id: project.ownerId!,
|
id: project.ownerId!,
|
||||||
}),
|
}),
|
||||||
deployerLrn: deployer
|
deployerLrn: deployer,
|
||||||
|
auctionId: project.auctionId
|
||||||
});
|
});
|
||||||
|
|
||||||
log(
|
log(
|
||||||
@ -777,7 +778,8 @@ export class Service {
|
|||||||
repository: repoUrl,
|
repository: repoUrl,
|
||||||
environmentVariables: environmentVariablesObj,
|
environmentVariables: environmentVariablesObj,
|
||||||
dns: `${newDeployment.project.name}`,
|
dns: `${newDeployment.project.name}`,
|
||||||
lrn
|
auctionId: project.auctionId!,
|
||||||
|
lrn: deployer,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user