Display deployment build logs #8
@ -216,7 +216,8 @@ export class Database {
|
||||
relations: {
|
||||
project: true,
|
||||
domain: true,
|
||||
createdBy: true
|
||||
createdBy: true,
|
||||
deployer: true,
|
||||
},
|
||||
where: {
|
||||
project: {
|
||||
|
@ -104,7 +104,8 @@ type Deployment {
|
||||
commitMessage: String!
|
||||
url: String
|
||||
environment: Environment!
|
||||
deployerId: String
|
||||
deployer: Deployer
|
||||
applicationDeploymentRequestId: String
|
||||
isCurrent: Boolean!
|
||||
baseDomain: String
|
||||
status: DeploymentStatus!
|
||||
|
@ -72,6 +72,11 @@ const DeploymentDetailsCard = ({
|
||||
leftIcon={getIconByDeploymentStatus(deployment.status)}
|
||||
size="xs"
|
||||
type={STATUS_COLORS[deployment.status] ?? 'neutral'}
|
||||
onClick={async()=> {
|
||||
let url = `${deployment.deployer.deployerApiUrl}/log/${deployment.applicationDeploymentRequestId}`
|
||||
const res = await fetch(url);
|
||||
console.log(">>>>RESPONSE",await res.text())
|
||||
}}
|
||||
>
|
||||
{deployment.status}
|
||||
</Tag>
|
||||
@ -96,9 +101,9 @@ const DeploymentDetailsCard = ({
|
||||
</OverflownText>
|
||||
</Heading>
|
||||
)}
|
||||
{deployment.deployerLrn && (
|
||||
{deployment.deployer.deployerLrn && (
|
||||
<span className="text-sm text-elements-low-em tracking-tight block mt-2">
|
||||
Deployer LRN: {deployment.deployerLrn}
|
||||
Deployer LRN: {deployment.deployer.deployerLrn}
|
||||
</span>
|
||||
)}
|
||||
<span className="text-sm text-elements-low-em tracking-tight block">
|
||||
|
@ -136,7 +136,11 @@ query ($projectId: String!) {
|
||||
commitHash
|
||||
commitMessage
|
||||
url
|
||||
deployerLrn
|
||||
deployer {
|
||||
deployerId
|
||||
deployerLrn,
|
||||
deployerApiUrl,
|
||||
}
|
||||
environment
|
||||
isCurrent
|
||||
baseDomain
|
||||
@ -148,6 +152,7 @@ query ($projectId: String!) {
|
||||
name
|
||||
email
|
||||
}
|
||||
applicationDeploymentRequestId
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@ -105,7 +105,7 @@ export type Deployment = {
|
||||
commitHash: string;
|
||||
commitMessage: string;
|
||||
url?: string;
|
||||
deployerLrn: string;
|
||||
deployer: Deployer;
|
||||
environment: Environment;
|
||||
isCurrent: boolean;
|
||||
baseDomain?: string;
|
||||
@ -113,8 +113,15 @@ export type Deployment = {
|
||||
createdBy: User;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
applicationDeploymentRequestId: string;
|
||||
};
|
||||
|
||||
export type Deployer = {
|
||||
deployerApiUrl: string;
|
||||
deployerId: string;
|
||||
deployerLrn: string;
|
||||
}
|
||||
|
||||
export type OrganizationMember = {
|
||||
id: string;
|
||||
member: User;
|
||||
|
Loading…
Reference in New Issue
Block a user