File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
plugins/harness-ci-cd/src/hooks Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,6 @@ const useGetExecutionsList = ({
42
42
page : `${ page } ` ,
43
43
} ) ;
44
44
45
- if ( pipelineId && pipelineId . trim ( ) ) {
46
- pipelineId . split ( ',' ) . forEach ( ( item : string ) => {
47
- const trimmedString = item . trim ( ) ;
48
- if ( trimmedString ) {
49
- query . append ( 'pipelineIdentifier' , trimmedString ) ;
50
- }
51
- } ) ;
52
- }
53
-
54
45
const token = getSecureHarnessKey ( 'token' ) ;
55
46
const value = token ? `${ token } ` : '' ;
56
47
@@ -72,10 +63,24 @@ const useGetExecutionsList = ({
72
63
} ) ;
73
64
}
74
65
66
+ const identifiers : string [ ] = [ ] ;
67
+ if ( pipelineId && pipelineId . trim ( ) ) {
68
+ pipelineId . split ( ',' ) . forEach ( item => {
69
+ const trimmedString = item . trim ( ) ;
70
+ if ( trimmedString ) {
71
+ identifiers . push ( trimmedString ) ;
72
+ }
73
+ } ) ;
74
+ body = JSON . stringify ( {
75
+ filterType : 'PipelineExecution' ,
76
+ pipelineIdentifiers : identifiers ,
77
+ } ) ;
78
+ }
79
+
75
80
setStatus ( AsyncStatus . Loading ) ;
76
81
77
82
const response = await fetch (
78
- `${ await backendBaseUrl } /harness/${ env } /gateway/pipeline/api/pipelines/execution/v2/ summary?${ query } ` ,
83
+ `${ await backendBaseUrl } /harness/${ env } /gateway/pipeline/api/pipelines/execution/summary?${ query } ` ,
79
84
{
80
85
headers,
81
86
method : 'POST' ,
You can’t perform that action at this time.
0 commit comments