File tree 4 files changed +43
-22
lines changed
4 files changed +43
-22
lines changed Original file line number Diff line number Diff line change 120
120
"@babel/preset-typescript" : " ^7.18.6" ,
121
121
"@chromatic-com/storybook" : " ^1.5.0" ,
122
122
"@grpc/grpc-js" : " ^1.8.22" ,
123
- "@playwright/test" : " ^1.44 .1" ,
123
+ "@playwright/test" : " ^1.49 .1" ,
124
124
"@storybook/addon-a11y" : " ^8.1.10" ,
125
125
"@storybook/addon-essentials" : " ^8.1.10" ,
126
126
"@storybook/addon-interactions" : " ^8.1.10" ,
Original file line number Diff line number Diff line change 19
19
import Tabs from ' $lib/holocene/tab/tabs.svelte' ;
20
20
import { translate } from ' $lib/i18n/translate' ;
21
21
import { fullEventHistory } from ' $lib/stores/events' ;
22
+ import { namespaces } from ' $lib/stores/namespaces' ;
22
23
import { resetWorkflows } from ' $lib/stores/reset-workflows' ;
23
24
import { workflowRun } from ' $lib/stores/workflow-run' ;
24
25
import { workflowsSearchParams } from ' $lib/stores/workflows' ;
25
26
import { isCancelInProgress } from ' $lib/utilities/cancel-in-progress' ;
27
+ import { getWorkflowRelationships } from ' $lib/utilities/get-workflow-relationships' ;
26
28
import { has } from ' $lib/utilities/has' ;
27
29
import { pathMatches } from ' $lib/utilities/path-matches' ;
28
30
import {
57
59
$ : workflowUsesVersioning =
58
60
workflow ?.assignedBuildId ??
59
61
workflow ?.mostRecentWorkerVersionStamp ?.useVersioning ;
62
+ $ : workflowRelationships = getWorkflowRelationships (
63
+ workflow ,
64
+ $fullEventHistory ,
65
+ $namespaces ,
66
+ );
60
67
61
68
$ : summary = $workflowRun ?.userMetadata ?.summary ;
62
69
$ : details = $workflowRun ?.userMetadata ?.details ;
223
230
$page .url .pathname ,
224
231
routeForRelationships (routeParameters ),
225
232
)}
226
- ></Tab >
233
+ >
234
+ <Badge type =" primary" class =" px-2 py-0" >
235
+ {workflowRelationships .relationshipCount }
236
+ </Badge ></Tab
237
+ >
227
238
<Tab
228
239
label ={translate (' workflows.workers-tab' )}
229
240
id =" workers-tab"
Original file line number Diff line number Diff line change @@ -710,9 +710,9 @@ export async function fetchAllRootWorkflows(
710
710
rootWorkflowId : string ,
711
711
rootRunId ?: string ,
712
712
) : Promise < RootNode | undefined > {
713
- let query = `RootWorkflowId = " ${ rootWorkflowId } " ` ;
713
+ let query = `RootWorkflowId = ' ${ rootWorkflowId } ' ` ;
714
714
if ( rootRunId ) {
715
- query += ` AND RootRunId = " ${ rootRunId } " ` ;
715
+ query += ` AND RootRunId = ' ${ rootRunId } ' ` ;
716
716
}
717
717
718
718
const root = await fetchWorkflow ( {
You can’t perform that action at this time.
0 commit comments