Integrate SP auctions for app deployment #2

Merged
nabarun merged 42 commits from ng-integrate-auction into main 2024-10-18 12:37:01 +00:00
4 changed files with 9 additions and 5 deletions
Showing only changes of commit fb873d9bc1 - Show all commits

View File

@ -130,6 +130,9 @@ export class Deployment {
@Column('varchar')
deployerLrn!: string;
@Column('varchar', { nullable: true })
auctionId!: string | null;
@Column({
enum: Environment
})

View File

@ -47,7 +47,7 @@ export class Project {
description!: string;
@Column('varchar', { nullable: true })
auctionId?: string | null;
auctionId!: string | null;
@Column({ type: 'simple-array', nullable: true })
deployerLrn!: string[] | null;

View File

@ -377,8 +377,7 @@ export class Registry {
return records.filter((record: AppDeploymentRecord) =>
deployments.some(
(deployment) =>
deployment.applicationRecordId === record.attributes.application &&
record.attributes.url.includes(deployment.id)
deployment.applicationRecordId === record.attributes.application
)
);
}

View File

@ -746,7 +746,8 @@ export class Service {
createdBy: Object.assign(new User(), {
id: project.ownerId!,
}),
deployerLrn: deployer
deployerLrn: deployer,
auctionId: project.auctionId
});
log(
@ -777,7 +778,8 @@ export class Service {
repository: repoUrl,
environmentVariables: environmentVariablesObj,
dns: `${newDeployment.project.name}`,
lrn
auctionId: project.auctionId!,
lrn: deployer,
});
}