Skip to content

Commit 0d836f1

Browse files
committed
fix: move appWorkflowId to artifact level from parent
1 parent e79240c commit 0d836f1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Common/Common.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const cdMaterialListModal = (artifacts: any[], offset: number, artifactId?: numb
145145
deployedOnEnvironments: material.deployedOnEnvironments ?? [],
146146
deploymentWindowArtifactMetadata: material.deploymentWindowArtifactMetadata ?? null,
147147
configuredInReleases: material.configuredInReleases ?? [],
148+
appWorkflowId: material.appWorkflowId ?? null,
148149
}
149150
})
150151
return materials
@@ -175,7 +176,6 @@ const processCDMaterialsMetaInfo = (cdMaterialsResult): CDMaterialsMetaInfo => {
175176
resourceFilters: [],
176177
totalCount: 0,
177178
requestedUserId: 0,
178-
appWorkflowId: 0,
179179
}
180180
}
181181

@@ -186,7 +186,6 @@ const processCDMaterialsMetaInfo = (cdMaterialsResult): CDMaterialsMetaInfo => {
186186
resourceFilters: cdMaterialsResult.resourceFilters ?? [],
187187
totalCount: cdMaterialsResult.totalCount ?? 0,
188188
requestedUserId: cdMaterialsResult.requestedUserId,
189-
appWorkflowId: cdMaterialsResult.appWorkflowId,
190189
}
191190
}
192191

src/Common/Types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ export interface CDMaterialType {
415415
* Will only be present in case of release
416416
*/
417417
configuredInReleases: ArtifactReleaseMappingType[]
418+
/**
419+
* Would currently only be received in case of release
420+
*/
421+
appWorkflowId: number
418422
}
419423

420424
export enum CDMaterialServiceEnum {
@@ -595,10 +599,6 @@ export interface CDMaterialsMetaInfo {
595599
* This is the ID of user that has request the material
596600
*/
597601
requestedUserId: number
598-
/**
599-
* Would currently only be received in case of release
600-
*/
601-
appWorkflowId: number
602602
}
603603

604604
export interface ImagePromotionMaterialInfo {

0 commit comments

Comments
 (0)