@@ -17,16 +17,22 @@ import { useReleaseStatus } from '../../hooks/useReleaseStatus';
17
17
import { useWorkspaceResource } from '../../hooks/useWorkspaceResource' ;
18
18
import { RouterParams } from '../../routes/utils' ;
19
19
import { Timestamp } from '../../shared/components/timestamp/Timestamp' ;
20
+ import { ReleaseKind } from '../../types/release' ;
20
21
import { calculateDuration } from '../../utils/pipeline-utils' ;
21
22
import MetadataList from '../MetadataList' ;
22
23
import { StatusIconWithText } from '../StatusIcon/StatusIcon' ;
23
24
import { useWorkspaceInfo } from '../Workspace/useWorkspaceInfo' ;
24
25
26
+ const getPipelineRunFromRelease = ( release : ReleaseKind ) : string => {
27
+ // backward compatibility until https://issues.redhat.com/browse/RELEASE-1109 is released.
28
+ return release . status ?. processing ?. pipelineRun ?? release . status ?. managedProcessing ?. pipelineRun ;
29
+ } ;
30
+
25
31
const ReleaseOverviewTab : React . FC = ( ) => {
26
32
const { releaseName } = useParams < RouterParams > ( ) ;
27
33
const { namespace, workspace } = useWorkspaceInfo ( ) ;
28
34
const [ release ] = useRelease ( workspace , namespace , releaseName ) ;
29
- const [ pipelineRun , prWorkspace ] = useWorkspaceResource ( release . status ?. processing ?. pipelineRun ) ;
35
+ const [ pipelineRun , prWorkspace ] = useWorkspaceResource ( getPipelineRunFromRelease ( release ) ) ;
30
36
const [ releasePlan , releasePlanLoaded ] = useReleasePlan (
31
37
namespace ,
32
38
workspace ,
@@ -128,12 +134,6 @@ const ReleaseOverviewTab: React.FC = () => {
128
134
< > { release . status ?. target ?? '-' } </ >
129
135
</ DescriptionListDescription >
130
136
</ DescriptionListGroup >
131
- < DescriptionListGroup >
132
- < DescriptionListTerm > Release Strategy</ DescriptionListTerm >
133
- < DescriptionListDescription >
134
- { release . status ?. processing ?. releaseStrategy ?. split ( '/' ) [ 1 ] ?? '-' }
135
- </ DescriptionListDescription >
136
- </ DescriptionListGroup >
137
137
< DescriptionListGroup >
138
138
< DescriptionListTerm > Pipeline Run</ DescriptionListTerm >
139
139
< DescriptionListDescription >
0 commit comments