@fluidgrids/fe-sdk 0.0.0-stage → 2026.1203.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +564 -2
- package/dist/ActivityOptionsFields-C2u-hY2U.js +142 -0
- package/dist/AiStudioPage-B_hNTj-_.js +1137 -0
- package/dist/ApprovalInboxPage-ClITra3n.js +1312 -0
- package/dist/ChoiceSelect-LkK-uS9J.js +65 -0
- package/dist/ConfirmActionDialog-DHWTDRbp.js +31 -0
- package/dist/ConnectionFormDialog-C0kDgcrZ.js +153 -0
- package/dist/CreateFluidgridsTagDocument-Dtp9KPLJ.js +1055 -0
- package/dist/DataSinkDashboardPage-b4ezeqa6.js +278 -0
- package/dist/DataTablesPage-C1d9YGHz.js +5575 -0
- package/dist/DateTimeField-B1qR4ruo.js +51 -0
- package/dist/Disclosure-BNKij7-v.js +45 -0
- package/dist/ElementLibraryPage-8jNO6YmE.js +2256 -0
- package/dist/ElementLibrarySequenceDocument-B-W8SPzn.js +3979 -0
- package/dist/EnsureThemeProvider-BvlNjAd0.js +24 -0
- package/dist/EntityTagBadge-1OlP6p0c.js +25 -0
- package/dist/EntityTagPicker-BBrU5cE0.js +137 -0
- package/dist/ExecuteStepDocument-B4j1mdRT.js +189 -0
- package/dist/ExecutionDetailDocument-D6QuM-kp.js +875 -0
- package/dist/ExecutionDetailPage-D4CBtFdo.js +12217 -0
- package/dist/ExecutionDetailPage-DvQ667OE.d.ts +10 -0
- package/dist/ExecutionStatusBadge-BsDVor9t.js +221 -0
- package/dist/ExecutionsListDocument-Dan7ZiqB.js +459 -0
- package/dist/ExecutionsListPage-B3XT8ITL.js +4307 -0
- package/dist/FailureTriagePanel-DOJMaJ0n.js +1285 -0
- package/dist/FileDownloadUrlDocument-CVOYKcL5.js +92 -0
- package/dist/FluidGridsDocsLink-bX0Hnhxr.js +66 -0
- package/dist/FluidGridsMark-CE2blT7K.js +74 -0
- package/dist/HeldLoadRegion-BtTxbvOW.js +34 -0
- package/dist/HistoryPage-BLoRpJ1R.d.ts +6 -0
- package/dist/HistoryPage-BSBISXoj.js +2835 -0
- package/dist/Icon-BtQ0HXLh.js +160 -0
- package/dist/InsightsPage-D7ybj8N9.js +11245 -0
- package/dist/IsolationSetting-vy911E8b.js +1153 -0
- package/dist/LibraryParts-DOeNgR8A.js +413 -0
- package/dist/ManagedAiPolicyAuthority-BxwJ3ptd.js +40 -0
- package/dist/ManagedAiPolicyAuthority-DM3t3wNr.d.ts +18 -0
- package/dist/ManagedAiPolicyAuthorityContext-CNkxIOZ1.js +10 -0
- package/dist/McpTriggerServers-BCPCAOWB.js +459 -0
- package/dist/MissingNodesInstallModal-rO_SEDrC.js +224 -0
- package/dist/NavigationV2Provider-DCDt35eG.js +17 -0
- package/dist/NodeSchemaIntrospectionDocument-C1vAIcHd.js +95 -0
- package/dist/NodesPage-DEbnz9iU.d.ts +6 -0
- package/dist/NodesPage-O7KeeKtd.js +653 -0
- package/dist/OfflineIcon-TwMKYWjA.js +207 -0
- package/dist/OpenTemplateAsCodeButton-BhWJWIF3.js +94 -0
- package/dist/PaidTemplateConfirm-_G3ag6S4.js +28 -0
- package/dist/PublishCustomNodeAction-CIySbK4c.js +134 -0
- package/dist/RecordTaskDialog-BkpCDvhR.js +2078 -0
- package/dist/RunActionsMenu-DodOgIQm.js +59 -0
- package/dist/RunnerStatusPill-C1v967iq.js +24 -0
- package/dist/RunnersPage-dB0RSdY_.js +1929 -0
- package/dist/SandboxRuntimeExhaustedNotice-BFOIF93C.js +120 -0
- package/dist/SchedulesPage-DPWr1yvf.js +1607 -0
- package/dist/SearchBox-BGtYjvfs.js +49 -0
- package/dist/SequenceEditor-CFiHeHkR.js +497 -0
- package/dist/SettingsPage-0CQBNPZV.js +8695 -0
- package/dist/StewardPages-DAJhepen.js +47 -0
- package/dist/StewardRunImportPanel-Kva2DO0u.js +2844 -0
- package/dist/StoreTemplateCardCompact-CHn5kP7A.js +2166 -0
- package/dist/TagFilterSelect-CyA8QrS7.js +42 -0
- package/dist/TaskQueuesPage-DdnDCyat.js +3571 -0
- package/dist/TechnicalDetails-B0Oi4aZw.js +19 -0
- package/dist/TemplateConfigurationModal-CdvCYJLM.js +332 -0
- package/dist/TemplateDetailPanel-CbiKciuB.js +222 -0
- package/dist/TemplatePreview-cx7-NOeG.js +868 -0
- package/dist/TemplatesPage-BG3H-6v6.d.ts +10 -0
- package/dist/TemplatesPage-BVQpGYIV.js +3251 -0
- package/dist/TerminateExecutionDocument-B_HKNVrN.js +581 -0
- package/dist/TranslationBridge-Bd4aJKMs.d.ts +11 -0
- package/dist/TranslationBridge-Da-TPgQm.js +68 -0
- package/dist/TriggerWorkflowDocument-D9Km2Vv2.js +460 -0
- package/dist/UiSequencePickerSequenceDocument-BSYnSDV7.js +607 -0
- package/dist/UiStepScreenshot-Qh4QMyUp.js +146 -0
- package/dist/UsageTimeSeriesDocument-DcInx9-z.js +177 -0
- package/dist/VariablesPage-ChfGuW22.js +2243 -0
- package/dist/VersionDiffDialog-Bd2AeUwf.js +1702 -0
- package/dist/VersionLifecycleBar-BBeWVtz-.js +143 -0
- package/dist/WebhookDeliveriesPage-D66bua0j.js +1563 -0
- package/dist/WorkflowBuilder-B6wQD1TK.js +539 -0
- package/dist/WorkflowBuilder-DR4ku8Tr.js +1611 -0
- package/dist/WorkflowDefinitionDocument-DZLbTPUZ.js +321 -0
- package/dist/WorkflowEmbed-BXfFGy0i.js +708 -0
- package/dist/WorkflowEmbed-Cbqe1s1z.d.ts +6 -0
- package/dist/WorkflowPinnedDataDocument-BODT5omd.js +782 -0
- package/dist/WorkflowProposalCard-BruukdeF.js +96 -0
- package/dist/WorkflowProposalDocument-BdUbsrd0.js +620 -0
- package/dist/WorkflowSearchRedirect-C7zJ2MKH.js +40 -0
- package/dist/WorkflowSettingsDrawer-MVU1BKfY.d.ts +18 -0
- package/dist/WorkflowSettingsDrawer-gazs97WR.js +196 -0
- package/dist/WorkflowShareDialog-e8jJtLjU.js +469 -0
- package/dist/WorkflowVersionsDocument-DRVOp8Uj.js +3213 -0
- package/dist/WorkflowsList--hR2_8gf.js +4593 -0
- package/dist/WorkflowsList-CcNDQge5.d.ts +6 -0
- package/dist/WorkflowsListPageDocument-CnzcQm_o.js +934 -0
- package/dist/addonCatalog-CbZS4deh.js +58 -0
- package/dist/addonCatalog-sjlonAmR.d.ts +15 -0
- package/dist/addons.d.ts +3 -0
- package/dist/addons.js +4 -0
- package/dist/agent-form-Bfvm32j1.js +83 -0
- package/dist/agent-tools.d.ts +3 -0
- package/dist/agent-tools.js +5 -0
- package/dist/agentTools-CyL7DLOF.js +320 -0
- package/dist/ai-usage-BrxDgvdR.js +240 -0
- package/dist/aiCreditsBridge-BuE92tKo.js +49 -0
- package/dist/api-BKq-nIOZ.js +2286 -0
- package/dist/api-Ol7I8NxE.js +8289 -0
- package/dist/apollo-type-policies.d.ts +11 -0
- package/dist/apollo-type-policies.js +64 -0
- package/dist/askAboutBridge-ByYsQams.js +106 -0
- package/dist/askQuestions-Cmx7VnMm.js +742 -0
- package/dist/assert-rules-lfYEMc99.js +318 -0
- package/dist/assistant.d.ts +94 -0
- package/dist/assistant.js +99 -0
- package/dist/attach-node-helpers-HDKQOtrD.js +32 -0
- package/dist/badge-CXfPhoMH.js +26 -0
- package/dist/basil.generated-BK-EHbwN.js +10 -0
- package/dist/browser-steps-DMpS5TyB.js +533 -0
- package/dist/builderTimings-pvGnK1m-.js +510 -0
- package/dist/button-DG7y_FVJ.js +48 -0
- package/dist/canvasNoteTools-BxuP_AYO.js +137 -0
- package/dist/card-Bomy_1UG.js +44 -0
- package/dist/catalogGrid-BOrfMgi-.js +41 -0
- package/dist/channel-CPyQ1NR1.js +212 -0
- package/dist/chips-CvNrYJZa.js +27 -0
- package/dist/client-holder-C0M5Cfwl.js +68 -0
- package/dist/cn-QqidFIgr.js +10 -0
- package/dist/code-editor-diagnostics-Zr0cIcx1.js +46 -0
- package/dist/code-editor-field-x_JrY8KR.js +113 -0
- package/dist/codec-client-DPuD6mw7.js +515 -0
- package/dist/conditionBuilder-DwfEF0Q-.js +1144 -0
- package/dist/config-DO68jw5k.js +322 -0
- package/dist/constants-DgbVc24O.d.ts +296 -0
- package/dist/constants-DlRnHBfQ.js +217 -0
- package/dist/convert-browser-action-pfecelF7.js +347 -0
- package/dist/convert-dialog-B_o22NiJ.js +382 -0
- package/dist/create-workflow-first-Azg3JUdX.js +120 -0
- package/dist/definition-canvas-Bsda-rDT.js +31 -0
- package/dist/dialog-BVd152GS.js +94 -0
- package/dist/durable-nodes-BXyYCLxT.js +91 -0
- package/dist/duration-CDb7-mT_.js +33 -0
- package/dist/edge-mapper-wEAdGVU2.js +4477 -0
- package/dist/element-library-DkSlg_VE.js +727 -0
- package/dist/entities-I_0kio3q.js +38 -0
- package/dist/error-advice-QLr5NCm7.js +65 -0
- package/dist/errors-ClKb5sEt.js +188 -0
- package/dist/executions.d.ts +3 -0
- package/dist/executions.js +5 -0
- package/dist/feature-flags-B2qetXKd.js +385 -0
- package/dist/field-label-DPZRmE_B.js +153 -0
- package/dist/firstWorkflow-C_h0KMB2.js +133 -0
- package/dist/flags.d.ts +3 -0
- package/dist/flags.js +4 -0
- package/dist/flow-builder-DIvLOhz0.js +28038 -0
- package/dist/flow-store-holder-CUN7Terz.js +52 -0
- package/dist/fluent.generated-CA_e6-4l.js +14 -0
- package/dist/fluidgridsEvents-bbEQbwU6.js +175 -0
- package/dist/fluidgridsTheme-DUhvOgoy.js +297 -0
- package/dist/global-client-BQPuFrFa.js +433 -0
- package/dist/global-operations-BG6YgxrM.js +136 -0
- package/dist/graphql-types-UTYtujY9.js +21358 -0
- package/dist/history.d.ts +3 -0
- package/dist/history.js +4 -0
- package/dist/index-AoJAa5vU.d.ts +164958 -0
- package/dist/index-DEMT3iAM.d.ts +120 -0
- package/dist/index-ROZzNGyY.d.ts +76 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +8123 -0
- package/dist/ion.generated-mbajjcAg.js +10 -0
- package/dist/label-Lzb8ZXf_.js +29 -0
- package/dist/labels-rXd9gYQz.js +1236 -0
- package/dist/liveCanvas-D5ytXDp8.js +103 -0
- package/dist/logos.generated-X6_0kjVR.js +21 -0
- package/dist/logs-panel-Cw0DkG0l.js +468 -0
- package/dist/lucide.generated-B6NVd3GT.js +29 -0
- package/dist/marksStore-a9oIMMot.js +175 -0
- package/dist/mcp-trigger-D0nRdvq5.js +307 -0
- package/dist/mdi.generated-D1BV74d6.js +292 -0
- package/dist/menus-CU3hDGYl.js +160 -0
- package/dist/mynaui.generated-DMWr5cXz.js +66 -0
- package/dist/navigation-v2.d.ts +3 -0
- package/dist/navigation-v2.js +5 -0
- package/dist/node-detail-view-Cgm5H1P-.js +1372 -0
- package/dist/node-editor-tab-body-CZ0fVuVP.js +187 -0
- package/dist/node-operation-selection-CdV3KI_V.js +3534 -0
- package/dist/node-registry-refresh-s3okf83X.js +27 -0
- package/dist/node-role-TMbnkmeP.js +132 -0
- package/dist/node-type-icon-BZa8n4iG.js +33 -0
- package/dist/nodes.d.ts +3 -0
- package/dist/nodes.js +4 -0
- package/dist/notesKey-5EaREBGA.js +12 -0
- package/dist/observability.d.ts +3 -0
- package/dist/observability.js +5 -0
- package/dist/offset-pages-zghoClB3.js +55 -0
- package/dist/operations-BBmT9ToP.js +663 -0
- package/dist/operations-WxRJWeqO.js +3133 -0
- package/dist/output-files-Ba8bu5lv.js +196 -0
- package/dist/page-operation-DrWuhd6Y.js +129 -0
- package/dist/page-twins.d.ts +13 -0
- package/dist/page-twins.js +186 -0
- package/dist/pageControlSpecs-DZJ9K37m.js +134 -0
- package/dist/pageControlsBridge-0pX9s-3k.js +54 -0
- package/dist/pageControlsBridge-DAuT3w7L.d.ts +36 -0
- package/dist/panels-PfBBAToE.js +346 -0
- package/dist/parts-B7fBcw-B.js +346 -0
- package/dist/popover-Dms9Vz3j.js +3389 -0
- package/dist/preloadable-lazy-Pp47mqQ9.js +65 -0
- package/dist/proactive.d.ts +66 -0
- package/dist/proactive.js +237 -0
- package/dist/quick-config-panel-DFd77xho.js +451 -0
- package/dist/quota-DeA_CJ2e.js +175 -0
- package/dist/quota.d.ts +3 -0
- package/dist/quota.js +4 -0
- package/dist/read-only-context-Dt9N9SIG.js +18 -0
- package/dist/relative-time-Dxt8ZIIu.js +55 -0
- package/dist/results-CwK_yDxK.js +325 -0
- package/dist/rolldown-runtime-hDbaFkMy.js +18 -0
- package/dist/route-data.d.ts +12 -0
- package/dist/route-data.js +69 -0
- package/dist/route-match-C-0_EnAt.d.ts +5 -0
- package/dist/route-match-DMkUICYV.js +41 -0
- package/dist/route-preload-C4DlGoCd.js +120 -0
- package/dist/run-display-UjLAoYqQ.js +81 -0
- package/dist/run-history-arGiHzGU.js +285 -0
- package/dist/run-list-links-DJn4Mf1T.js +98 -0
- package/dist/run-mode-USmM0-Uo.js +82 -0
- package/dist/run-parity-CWXqEJqM.js +144 -0
- package/dist/runsQuota-B6SyTbne.js +100 -0
- package/dist/runsQuota-DsniKiSg.d.ts +20 -0
- package/dist/safe-expression-Cw7-SCsm.js +1251 -0
- package/dist/save-status-store-C7nEYpfb.js +631 -0
- package/dist/schedule-panel-B4GYXzXQ.js +13774 -0
- package/dist/schedule-rules-ggVKRkBH.js +358 -0
- package/dist/secrets-Re_wSiE3.js +153 -0
- package/dist/settings.d.ts +4 -0
- package/dist/settings.js +6 -0
- package/dist/shared-DAWGGMSM.js +177 -0
- package/dist/sidebar-node-editor-6eSSgCzc.js +178 -0
- package/dist/solar.generated-CGYuUQAC.js +10 -0
- package/dist/stableTabbedDialog-BBhrfXGe.js +20 -0
- package/dist/start-url-CT6Yz96K.js +24 -0
- package/dist/status-CessxGpm.js +55 -0
- package/dist/store-icon-OctYp5zP.js +155 -0
- package/dist/styles-WGmTnZ2n.js +26 -0
- package/dist/styles.css +139 -0
- package/dist/svg-spinners.generated-CIPT7IhM.js +10 -0
- package/dist/template-code-CzN6JWNV.js +191 -0
- package/dist/template-graph-DLF9dygU.js +20 -0
- package/dist/template-preview-DcIIKOOL.js +32 -0
- package/dist/template-price-CdUHZRMF.js +40 -0
- package/dist/templates.d.ts +3 -0
- package/dist/templates.js +5 -0
- package/dist/theme-provider-CntfC4_i.js +23 -0
- package/dist/transient-DgZfhDfN.js +57 -0
- package/dist/typed-calls-C5tO03wq.js +26 -0
- package/dist/ui-script-By74Guk3.js +1094 -0
- package/dist/ui-script-editor-CqPu2bCN.js +2447 -0
- package/dist/ui-step-fix-8uM2_Hft.js +67 -0
- package/dist/ui-step-fix-store-CcO1FdRx.js +19 -0
- package/dist/ui-step-run-context-o7bLE6KP.js +46 -0
- package/dist/ui-target-editor-D2JhB_lD.js +673 -0
- package/dist/uiMarkTools-CSznnO1i.js +1054 -0
- package/dist/upgradePrompt-BAFBKKW5.js +72 -0
- package/dist/use-bare-node-registry-O6mKJO_n.js +11498 -0
- package/dist/use-browser-available-hj8wc3Kb.js +241 -0
- package/dist/use-edge-mapper-schemas-Bonofxow.js +496 -0
- package/dist/use-extension-bridge-B9ZreOkQ.js +608 -0
- package/dist/use-mobile-BTqCUjzS.js +27 -0
- package/dist/use-sdk-query-C697xZVv.js +116 -0
- package/dist/use-workflow-code-editor-CFoRFrZ5.js +753 -0
- package/dist/useActionParam-B2tU2BlY.js +85 -0
- package/dist/useAgentTokenStream-Bko_J0d0.js +4217 -0
- package/dist/useBrowserClients-3v95-gSh.js +103 -0
- package/dist/useCodeWorkflowInsights-w0tz9Ap_.js +600 -0
- package/dist/useConnections-DsgEJs05.js +439 -0
- package/dist/useDebouncedValue-BFekcv6n.js +18 -0
- package/dist/useDurableParity-8fnMZmBc.js +1787 -0
- package/dist/useEntityTags-D0spL6Ut.js +460 -0
- package/dist/useExecutions-2u5nGJJk.js +681 -0
- package/dist/useFluidGridsAnalytics-VM8lAi2x.js +238 -0
- package/dist/useGlobalStoreClient-BTdhkA2I.js +24 -0
- package/dist/useHumanRequests-zlYDp3l1.js +221 -0
- package/dist/useNavigationV2-C2WeqN7d.js +29 -0
- package/dist/useNavigationV2-DANUmg12.d.ts +9 -0
- package/dist/useObservability-BRlQ0tOA.js +285 -0
- package/dist/useRequestedProposal-B7uPXfZB.js +51 -0
- package/dist/useRunHistory-CXCMUPyf.js +2759 -0
- package/dist/useRunLive-D0JvVZT2.js +1060 -0
- package/dist/useRunnerList-Dbi59i1K.js +446 -0
- package/dist/useRunners-URUc5quU.js +173 -0
- package/dist/useRunsPage-DG656UCK.js +2709 -0
- package/dist/useVariables-BIelxcWr.js +463 -0
- package/dist/useVersionHistoryData-CTjqVw7l.js +292 -0
- package/dist/useWorkflowCodeExport-pqxyLHD1.js +522 -0
- package/dist/useWorkflowListExport-hcZNvTaB.js +232 -0
- package/dist/useWorkflowOrganization-CpBbOrs7.js +1772 -0
- package/dist/useWorkflowProposal-BH0VdNMA.js +3280 -0
- package/dist/useWorkflows-Cvg-Z_IE.js +1606 -0
- package/dist/utils-fvBb5qOD.js +89 -0
- package/dist/webhook-deliveries-AvQujaZy.js +99 -0
- package/dist/workflow-builder-CJygVkVv.d.ts +2 -0
- package/dist/workflow-builder.d.ts +3 -0
- package/dist/workflow-builder.js +8 -0
- package/dist/workflow-code-transfer-Bsy0JKAZ.js +323 -0
- package/dist/workflow-embed.d.ts +3 -0
- package/dist/workflow-embed.js +4 -0
- package/dist/workflow-git-sync--K9ZsPDC.js +263 -0
- package/dist/workflow-host.d.ts +6 -0
- package/dist/workflow-host.js +11 -0
- package/dist/workflow-pages-D-7ByLTB.d.ts +68 -0
- package/dist/workflow-pages.d.ts +3 -0
- package/dist/workflow-pages.js +115 -0
- package/dist/workflow-preview-canvas-CO8yzdE3.js +848 -0
- package/dist/workflow-preview.d.ts +65 -0
- package/dist/workflow-preview.js +4 -0
- package/dist/workflow-route.d.ts +33 -0
- package/dist/workflow-route.js +4 -0
- package/dist/workflow-save-state-D0l-DkLf.js +767 -0
- package/dist/workflow-transfer-CQnQC-ke.js +104 -0
- package/dist/workflowRouteData-BkfVOc-O.js +169 -0
- package/dist/workflows-list.d.ts +10 -0
- package/dist/workflows-list.js +5 -0
- package/package.json +320 -4
|
@@ -0,0 +1,2709 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { n as getFluidGridsClient } from "./client-holder-C0M5Cfwl.js";
|
|
3
|
+
import { f as useExecutionsStore, r as getFluidGridsConfig } from "./config-DO68jw5k.js";
|
|
4
|
+
import { r as isForbiddenError, s as throwIfResultError } from "./errors-ClKb5sEt.js";
|
|
5
|
+
import { a as readCachedPageOperation, s as takeFreshPreload } from "./page-operation-DrWuhd6Y.js";
|
|
6
|
+
import { i as WorkflowDefinitionsDocument } from "./WorkflowVersionsDocument-DRVOp8Uj.js";
|
|
7
|
+
import { t as ExecutionsListDocument } from "./ExecutionsListDocument-Dan7ZiqB.js";
|
|
8
|
+
import { c as statusCountsOf, s as statusCountFilter, t as STATUS_COUNT_GROUP_BY } from "./run-parity-CWXqEJqM.js";
|
|
9
|
+
import { t as fetchRunStatusCounts } from "./useDurableParity-8fnMZmBc.js";
|
|
10
|
+
import { c as useFluidGridsPermissions, t as FLUIDGRIDS_PERMISSIONS } from "./constants-DlRnHBfQ.js";
|
|
11
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
12
|
+
|
|
13
|
+
// src/generated/documents/wspace/RunsPageStatsDocument.ts
|
|
14
|
+
const RunsPageStatsDocument = {
|
|
15
|
+
"kind": "Document",
|
|
16
|
+
"definitions": [{
|
|
17
|
+
"kind": "OperationDefinition",
|
|
18
|
+
"operation": "query",
|
|
19
|
+
"name": {
|
|
20
|
+
"kind": "Name",
|
|
21
|
+
"value": "RunsPageStats"
|
|
22
|
+
},
|
|
23
|
+
"variableDefinitions": [],
|
|
24
|
+
"directives": [],
|
|
25
|
+
"selectionSet": {
|
|
26
|
+
"kind": "SelectionSet",
|
|
27
|
+
"selections": [{
|
|
28
|
+
"kind": "Field",
|
|
29
|
+
"name": {
|
|
30
|
+
"kind": "Name",
|
|
31
|
+
"value": "dashboardSummary"
|
|
32
|
+
},
|
|
33
|
+
"arguments": [],
|
|
34
|
+
"directives": [],
|
|
35
|
+
"selectionSet": {
|
|
36
|
+
"kind": "SelectionSet",
|
|
37
|
+
"selections": [{
|
|
38
|
+
"kind": "FragmentSpread",
|
|
39
|
+
"name": {
|
|
40
|
+
"kind": "Name",
|
|
41
|
+
"value": "RunsPageStatsFields"
|
|
42
|
+
},
|
|
43
|
+
"directives": []
|
|
44
|
+
}]
|
|
45
|
+
}
|
|
46
|
+
}]
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
"kind": "FragmentDefinition",
|
|
50
|
+
"name": {
|
|
51
|
+
"kind": "Name",
|
|
52
|
+
"value": "RunsPageStatsFields"
|
|
53
|
+
},
|
|
54
|
+
"variableDefinitions": [],
|
|
55
|
+
"typeCondition": {
|
|
56
|
+
"kind": "NamedType",
|
|
57
|
+
"name": {
|
|
58
|
+
"kind": "Name",
|
|
59
|
+
"value": "DashboardSummary"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"directives": [],
|
|
63
|
+
"selectionSet": {
|
|
64
|
+
"kind": "SelectionSet",
|
|
65
|
+
"selections": [
|
|
66
|
+
{
|
|
67
|
+
"kind": "Field",
|
|
68
|
+
"name": {
|
|
69
|
+
"kind": "Name",
|
|
70
|
+
"value": "runsCountTotal"
|
|
71
|
+
},
|
|
72
|
+
"arguments": [],
|
|
73
|
+
"directives": []
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"kind": "Field",
|
|
77
|
+
"name": {
|
|
78
|
+
"kind": "Name",
|
|
79
|
+
"value": "runsCompletedCount"
|
|
80
|
+
},
|
|
81
|
+
"arguments": [],
|
|
82
|
+
"directives": []
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"kind": "Field",
|
|
86
|
+
"name": {
|
|
87
|
+
"kind": "Name",
|
|
88
|
+
"value": "runsFailedCount"
|
|
89
|
+
},
|
|
90
|
+
"arguments": [],
|
|
91
|
+
"directives": []
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"kind": "Field",
|
|
95
|
+
"name": {
|
|
96
|
+
"kind": "Name",
|
|
97
|
+
"value": "runsRunningCount"
|
|
98
|
+
},
|
|
99
|
+
"arguments": [],
|
|
100
|
+
"directives": []
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"kind": "Field",
|
|
104
|
+
"name": {
|
|
105
|
+
"kind": "Name",
|
|
106
|
+
"value": "runsPendingCount"
|
|
107
|
+
},
|
|
108
|
+
"arguments": [],
|
|
109
|
+
"directives": []
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"kind": "Field",
|
|
113
|
+
"name": {
|
|
114
|
+
"kind": "Name",
|
|
115
|
+
"value": "runsCancelledCount"
|
|
116
|
+
},
|
|
117
|
+
"arguments": [],
|
|
118
|
+
"directives": []
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"kind": "Field",
|
|
122
|
+
"name": {
|
|
123
|
+
"kind": "Name",
|
|
124
|
+
"value": "runsWaitingCount"
|
|
125
|
+
},
|
|
126
|
+
"arguments": [],
|
|
127
|
+
"directives": []
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"kind": "Field",
|
|
131
|
+
"name": {
|
|
132
|
+
"kind": "Name",
|
|
133
|
+
"value": "avgWorkflowExecutionTimeSeconds"
|
|
134
|
+
},
|
|
135
|
+
"arguments": [],
|
|
136
|
+
"directives": []
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"kind": "Field",
|
|
140
|
+
"name": {
|
|
141
|
+
"kind": "Name",
|
|
142
|
+
"value": "workflowSuccessRate"
|
|
143
|
+
},
|
|
144
|
+
"arguments": [],
|
|
145
|
+
"directives": []
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
}]
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// src/generated/documents/wspace/RunsPageDocument.ts
|
|
153
|
+
const RunsPageDocument = {
|
|
154
|
+
"kind": "Document",
|
|
155
|
+
"definitions": [
|
|
156
|
+
{
|
|
157
|
+
"kind": "OperationDefinition",
|
|
158
|
+
"operation": "query",
|
|
159
|
+
"name": {
|
|
160
|
+
"kind": "Name",
|
|
161
|
+
"value": "RunsPage"
|
|
162
|
+
},
|
|
163
|
+
"variableDefinitions": [
|
|
164
|
+
{
|
|
165
|
+
"kind": "VariableDefinition",
|
|
166
|
+
"variable": {
|
|
167
|
+
"kind": "Variable",
|
|
168
|
+
"name": {
|
|
169
|
+
"kind": "Name",
|
|
170
|
+
"value": "input"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"type": {
|
|
174
|
+
"kind": "NonNullType",
|
|
175
|
+
"type": {
|
|
176
|
+
"kind": "NamedType",
|
|
177
|
+
"name": {
|
|
178
|
+
"kind": "Name",
|
|
179
|
+
"value": "ListWorkflowRunsInput"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"directives": []
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"kind": "VariableDefinition",
|
|
187
|
+
"variable": {
|
|
188
|
+
"kind": "Variable",
|
|
189
|
+
"name": {
|
|
190
|
+
"kind": "Name",
|
|
191
|
+
"value": "countFilter"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"type": {
|
|
195
|
+
"kind": "NamedType",
|
|
196
|
+
"name": {
|
|
197
|
+
"kind": "Name",
|
|
198
|
+
"value": "ListWorkflowRunsInput"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"directives": []
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"kind": "VariableDefinition",
|
|
205
|
+
"variable": {
|
|
206
|
+
"kind": "Variable",
|
|
207
|
+
"name": {
|
|
208
|
+
"kind": "Name",
|
|
209
|
+
"value": "withCounts"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"type": {
|
|
213
|
+
"kind": "NonNullType",
|
|
214
|
+
"type": {
|
|
215
|
+
"kind": "NamedType",
|
|
216
|
+
"name": {
|
|
217
|
+
"kind": "Name",
|
|
218
|
+
"value": "Boolean"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"directives": []
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"kind": "VariableDefinition",
|
|
226
|
+
"variable": {
|
|
227
|
+
"kind": "Variable",
|
|
228
|
+
"name": {
|
|
229
|
+
"kind": "Name",
|
|
230
|
+
"value": "scopedFilter"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"type": {
|
|
234
|
+
"kind": "NamedType",
|
|
235
|
+
"name": {
|
|
236
|
+
"kind": "Name",
|
|
237
|
+
"value": "ListWorkflowRunsInput"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"directives": []
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"kind": "VariableDefinition",
|
|
244
|
+
"variable": {
|
|
245
|
+
"kind": "Variable",
|
|
246
|
+
"name": {
|
|
247
|
+
"kind": "Name",
|
|
248
|
+
"value": "withScopedCounts"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"type": {
|
|
252
|
+
"kind": "NonNullType",
|
|
253
|
+
"type": {
|
|
254
|
+
"kind": "NamedType",
|
|
255
|
+
"name": {
|
|
256
|
+
"kind": "Name",
|
|
257
|
+
"value": "Boolean"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"directives": []
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"kind": "VariableDefinition",
|
|
265
|
+
"variable": {
|
|
266
|
+
"kind": "Variable",
|
|
267
|
+
"name": {
|
|
268
|
+
"kind": "Name",
|
|
269
|
+
"value": "groupBy"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"type": {
|
|
273
|
+
"kind": "ListType",
|
|
274
|
+
"type": {
|
|
275
|
+
"kind": "NonNullType",
|
|
276
|
+
"type": {
|
|
277
|
+
"kind": "NamedType",
|
|
278
|
+
"name": {
|
|
279
|
+
"kind": "Name",
|
|
280
|
+
"value": "RunGroupBy"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"directives": []
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"kind": "VariableDefinition",
|
|
289
|
+
"variable": {
|
|
290
|
+
"kind": "Variable",
|
|
291
|
+
"name": {
|
|
292
|
+
"kind": "Name",
|
|
293
|
+
"value": "workflows"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"type": {
|
|
297
|
+
"kind": "NonNullType",
|
|
298
|
+
"type": {
|
|
299
|
+
"kind": "NamedType",
|
|
300
|
+
"name": {
|
|
301
|
+
"kind": "Name",
|
|
302
|
+
"value": "ListWorkflowDefinitionsInput"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"directives": []
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"kind": "VariableDefinition",
|
|
310
|
+
"variable": {
|
|
311
|
+
"kind": "Variable",
|
|
312
|
+
"name": {
|
|
313
|
+
"kind": "Name",
|
|
314
|
+
"value": "withSearchAttributes"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"type": {
|
|
318
|
+
"kind": "NonNullType",
|
|
319
|
+
"type": {
|
|
320
|
+
"kind": "NamedType",
|
|
321
|
+
"name": {
|
|
322
|
+
"kind": "Name",
|
|
323
|
+
"value": "Boolean"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"directives": []
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"directives": [],
|
|
331
|
+
"selectionSet": {
|
|
332
|
+
"kind": "SelectionSet",
|
|
333
|
+
"selections": [
|
|
334
|
+
{
|
|
335
|
+
"kind": "Field",
|
|
336
|
+
"name": {
|
|
337
|
+
"kind": "Name",
|
|
338
|
+
"value": "workflowRuns"
|
|
339
|
+
},
|
|
340
|
+
"arguments": [{
|
|
341
|
+
"kind": "Argument",
|
|
342
|
+
"name": {
|
|
343
|
+
"kind": "Name",
|
|
344
|
+
"value": "input"
|
|
345
|
+
},
|
|
346
|
+
"value": {
|
|
347
|
+
"kind": "Variable",
|
|
348
|
+
"name": {
|
|
349
|
+
"kind": "Name",
|
|
350
|
+
"value": "input"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}],
|
|
354
|
+
"directives": [],
|
|
355
|
+
"selectionSet": {
|
|
356
|
+
"kind": "SelectionSet",
|
|
357
|
+
"selections": [
|
|
358
|
+
{
|
|
359
|
+
"kind": "Field",
|
|
360
|
+
"name": {
|
|
361
|
+
"kind": "Name",
|
|
362
|
+
"value": "items"
|
|
363
|
+
},
|
|
364
|
+
"arguments": [],
|
|
365
|
+
"directives": [],
|
|
366
|
+
"selectionSet": {
|
|
367
|
+
"kind": "SelectionSet",
|
|
368
|
+
"selections": [{
|
|
369
|
+
"kind": "FragmentSpread",
|
|
370
|
+
"name": {
|
|
371
|
+
"kind": "Name",
|
|
372
|
+
"value": "RunsListRow"
|
|
373
|
+
},
|
|
374
|
+
"directives": []
|
|
375
|
+
}]
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"kind": "Field",
|
|
380
|
+
"name": {
|
|
381
|
+
"kind": "Name",
|
|
382
|
+
"value": "total"
|
|
383
|
+
},
|
|
384
|
+
"arguments": [],
|
|
385
|
+
"directives": []
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"kind": "Field",
|
|
389
|
+
"name": {
|
|
390
|
+
"kind": "Name",
|
|
391
|
+
"value": "hasMore"
|
|
392
|
+
},
|
|
393
|
+
"arguments": [],
|
|
394
|
+
"directives": []
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"kind": "Field",
|
|
398
|
+
"name": {
|
|
399
|
+
"kind": "Name",
|
|
400
|
+
"value": "totalCapped"
|
|
401
|
+
},
|
|
402
|
+
"arguments": [],
|
|
403
|
+
"directives": []
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"kind": "Field",
|
|
410
|
+
"name": {
|
|
411
|
+
"kind": "Name",
|
|
412
|
+
"value": "dashboardSummary"
|
|
413
|
+
},
|
|
414
|
+
"arguments": [],
|
|
415
|
+
"directives": [],
|
|
416
|
+
"selectionSet": {
|
|
417
|
+
"kind": "SelectionSet",
|
|
418
|
+
"selections": [{
|
|
419
|
+
"kind": "FragmentSpread",
|
|
420
|
+
"name": {
|
|
421
|
+
"kind": "Name",
|
|
422
|
+
"value": "RunsPageStatsFields"
|
|
423
|
+
},
|
|
424
|
+
"directives": []
|
|
425
|
+
}]
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"kind": "Field",
|
|
430
|
+
"alias": {
|
|
431
|
+
"kind": "Name",
|
|
432
|
+
"value": "statusCounts"
|
|
433
|
+
},
|
|
434
|
+
"name": {
|
|
435
|
+
"kind": "Name",
|
|
436
|
+
"value": "workflowRunsCount"
|
|
437
|
+
},
|
|
438
|
+
"arguments": [{
|
|
439
|
+
"kind": "Argument",
|
|
440
|
+
"name": {
|
|
441
|
+
"kind": "Name",
|
|
442
|
+
"value": "filter"
|
|
443
|
+
},
|
|
444
|
+
"value": {
|
|
445
|
+
"kind": "Variable",
|
|
446
|
+
"name": {
|
|
447
|
+
"kind": "Name",
|
|
448
|
+
"value": "countFilter"
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}, {
|
|
452
|
+
"kind": "Argument",
|
|
453
|
+
"name": {
|
|
454
|
+
"kind": "Name",
|
|
455
|
+
"value": "groupBy"
|
|
456
|
+
},
|
|
457
|
+
"value": {
|
|
458
|
+
"kind": "Variable",
|
|
459
|
+
"name": {
|
|
460
|
+
"kind": "Name",
|
|
461
|
+
"value": "groupBy"
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}],
|
|
465
|
+
"directives": [{
|
|
466
|
+
"kind": "Directive",
|
|
467
|
+
"name": {
|
|
468
|
+
"kind": "Name",
|
|
469
|
+
"value": "include"
|
|
470
|
+
},
|
|
471
|
+
"arguments": [{
|
|
472
|
+
"kind": "Argument",
|
|
473
|
+
"name": {
|
|
474
|
+
"kind": "Name",
|
|
475
|
+
"value": "if"
|
|
476
|
+
},
|
|
477
|
+
"value": {
|
|
478
|
+
"kind": "Variable",
|
|
479
|
+
"name": {
|
|
480
|
+
"kind": "Name",
|
|
481
|
+
"value": "withCounts"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}]
|
|
485
|
+
}],
|
|
486
|
+
"selectionSet": {
|
|
487
|
+
"kind": "SelectionSet",
|
|
488
|
+
"selections": [{
|
|
489
|
+
"kind": "FragmentSpread",
|
|
490
|
+
"name": {
|
|
491
|
+
"kind": "Name",
|
|
492
|
+
"value": "RunStatusCountFields"
|
|
493
|
+
},
|
|
494
|
+
"directives": []
|
|
495
|
+
}]
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"kind": "Field",
|
|
500
|
+
"alias": {
|
|
501
|
+
"kind": "Name",
|
|
502
|
+
"value": "scopedCounts"
|
|
503
|
+
},
|
|
504
|
+
"name": {
|
|
505
|
+
"kind": "Name",
|
|
506
|
+
"value": "workflowRunsCount"
|
|
507
|
+
},
|
|
508
|
+
"arguments": [{
|
|
509
|
+
"kind": "Argument",
|
|
510
|
+
"name": {
|
|
511
|
+
"kind": "Name",
|
|
512
|
+
"value": "filter"
|
|
513
|
+
},
|
|
514
|
+
"value": {
|
|
515
|
+
"kind": "Variable",
|
|
516
|
+
"name": {
|
|
517
|
+
"kind": "Name",
|
|
518
|
+
"value": "scopedFilter"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}, {
|
|
522
|
+
"kind": "Argument",
|
|
523
|
+
"name": {
|
|
524
|
+
"kind": "Name",
|
|
525
|
+
"value": "groupBy"
|
|
526
|
+
},
|
|
527
|
+
"value": {
|
|
528
|
+
"kind": "Variable",
|
|
529
|
+
"name": {
|
|
530
|
+
"kind": "Name",
|
|
531
|
+
"value": "groupBy"
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}],
|
|
535
|
+
"directives": [{
|
|
536
|
+
"kind": "Directive",
|
|
537
|
+
"name": {
|
|
538
|
+
"kind": "Name",
|
|
539
|
+
"value": "include"
|
|
540
|
+
},
|
|
541
|
+
"arguments": [{
|
|
542
|
+
"kind": "Argument",
|
|
543
|
+
"name": {
|
|
544
|
+
"kind": "Name",
|
|
545
|
+
"value": "if"
|
|
546
|
+
},
|
|
547
|
+
"value": {
|
|
548
|
+
"kind": "Variable",
|
|
549
|
+
"name": {
|
|
550
|
+
"kind": "Name",
|
|
551
|
+
"value": "withScopedCounts"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}]
|
|
555
|
+
}],
|
|
556
|
+
"selectionSet": {
|
|
557
|
+
"kind": "SelectionSet",
|
|
558
|
+
"selections": [{
|
|
559
|
+
"kind": "FragmentSpread",
|
|
560
|
+
"name": {
|
|
561
|
+
"kind": "Name",
|
|
562
|
+
"value": "RunStatusCountFields"
|
|
563
|
+
},
|
|
564
|
+
"directives": []
|
|
565
|
+
}]
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"kind": "Field",
|
|
570
|
+
"name": {
|
|
571
|
+
"kind": "Name",
|
|
572
|
+
"value": "workflowDefinitions"
|
|
573
|
+
},
|
|
574
|
+
"arguments": [{
|
|
575
|
+
"kind": "Argument",
|
|
576
|
+
"name": {
|
|
577
|
+
"kind": "Name",
|
|
578
|
+
"value": "input"
|
|
579
|
+
},
|
|
580
|
+
"value": {
|
|
581
|
+
"kind": "Variable",
|
|
582
|
+
"name": {
|
|
583
|
+
"kind": "Name",
|
|
584
|
+
"value": "workflows"
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}],
|
|
588
|
+
"directives": [],
|
|
589
|
+
"selectionSet": {
|
|
590
|
+
"kind": "SelectionSet",
|
|
591
|
+
"selections": [{
|
|
592
|
+
"kind": "Field",
|
|
593
|
+
"name": {
|
|
594
|
+
"kind": "Name",
|
|
595
|
+
"value": "items"
|
|
596
|
+
},
|
|
597
|
+
"arguments": [],
|
|
598
|
+
"directives": [],
|
|
599
|
+
"selectionSet": {
|
|
600
|
+
"kind": "SelectionSet",
|
|
601
|
+
"selections": [
|
|
602
|
+
{
|
|
603
|
+
"kind": "Field",
|
|
604
|
+
"name": {
|
|
605
|
+
"kind": "Name",
|
|
606
|
+
"value": "id"
|
|
607
|
+
},
|
|
608
|
+
"arguments": [],
|
|
609
|
+
"directives": []
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"kind": "Field",
|
|
613
|
+
"name": {
|
|
614
|
+
"kind": "Name",
|
|
615
|
+
"value": "workflowKey"
|
|
616
|
+
},
|
|
617
|
+
"arguments": [],
|
|
618
|
+
"directives": []
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"kind": "Field",
|
|
622
|
+
"name": {
|
|
623
|
+
"kind": "Name",
|
|
624
|
+
"value": "name"
|
|
625
|
+
},
|
|
626
|
+
"arguments": [],
|
|
627
|
+
"directives": []
|
|
628
|
+
}
|
|
629
|
+
]
|
|
630
|
+
}
|
|
631
|
+
}]
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"kind": "Field",
|
|
636
|
+
"name": {
|
|
637
|
+
"kind": "Name",
|
|
638
|
+
"value": "workflowSearchAttributes"
|
|
639
|
+
},
|
|
640
|
+
"arguments": [],
|
|
641
|
+
"directives": [{
|
|
642
|
+
"kind": "Directive",
|
|
643
|
+
"name": {
|
|
644
|
+
"kind": "Name",
|
|
645
|
+
"value": "include"
|
|
646
|
+
},
|
|
647
|
+
"arguments": [{
|
|
648
|
+
"kind": "Argument",
|
|
649
|
+
"name": {
|
|
650
|
+
"kind": "Name",
|
|
651
|
+
"value": "if"
|
|
652
|
+
},
|
|
653
|
+
"value": {
|
|
654
|
+
"kind": "Variable",
|
|
655
|
+
"name": {
|
|
656
|
+
"kind": "Name",
|
|
657
|
+
"value": "withSearchAttributes"
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}]
|
|
661
|
+
}],
|
|
662
|
+
"selectionSet": {
|
|
663
|
+
"kind": "SelectionSet",
|
|
664
|
+
"selections": [{
|
|
665
|
+
"kind": "FragmentSpread",
|
|
666
|
+
"name": {
|
|
667
|
+
"kind": "Name",
|
|
668
|
+
"value": "WorkflowSearchAttributeFields"
|
|
669
|
+
},
|
|
670
|
+
"directives": []
|
|
671
|
+
}]
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"kind": "FragmentDefinition",
|
|
679
|
+
"name": {
|
|
680
|
+
"kind": "Name",
|
|
681
|
+
"value": "RunsPageStatsFields"
|
|
682
|
+
},
|
|
683
|
+
"variableDefinitions": [],
|
|
684
|
+
"typeCondition": {
|
|
685
|
+
"kind": "NamedType",
|
|
686
|
+
"name": {
|
|
687
|
+
"kind": "Name",
|
|
688
|
+
"value": "DashboardSummary"
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"directives": [],
|
|
692
|
+
"selectionSet": {
|
|
693
|
+
"kind": "SelectionSet",
|
|
694
|
+
"selections": [
|
|
695
|
+
{
|
|
696
|
+
"kind": "Field",
|
|
697
|
+
"name": {
|
|
698
|
+
"kind": "Name",
|
|
699
|
+
"value": "runsCountTotal"
|
|
700
|
+
},
|
|
701
|
+
"arguments": [],
|
|
702
|
+
"directives": []
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"kind": "Field",
|
|
706
|
+
"name": {
|
|
707
|
+
"kind": "Name",
|
|
708
|
+
"value": "runsCompletedCount"
|
|
709
|
+
},
|
|
710
|
+
"arguments": [],
|
|
711
|
+
"directives": []
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"kind": "Field",
|
|
715
|
+
"name": {
|
|
716
|
+
"kind": "Name",
|
|
717
|
+
"value": "runsFailedCount"
|
|
718
|
+
},
|
|
719
|
+
"arguments": [],
|
|
720
|
+
"directives": []
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"kind": "Field",
|
|
724
|
+
"name": {
|
|
725
|
+
"kind": "Name",
|
|
726
|
+
"value": "runsRunningCount"
|
|
727
|
+
},
|
|
728
|
+
"arguments": [],
|
|
729
|
+
"directives": []
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"kind": "Field",
|
|
733
|
+
"name": {
|
|
734
|
+
"kind": "Name",
|
|
735
|
+
"value": "runsPendingCount"
|
|
736
|
+
},
|
|
737
|
+
"arguments": [],
|
|
738
|
+
"directives": []
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"kind": "Field",
|
|
742
|
+
"name": {
|
|
743
|
+
"kind": "Name",
|
|
744
|
+
"value": "runsCancelledCount"
|
|
745
|
+
},
|
|
746
|
+
"arguments": [],
|
|
747
|
+
"directives": []
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"kind": "Field",
|
|
751
|
+
"name": {
|
|
752
|
+
"kind": "Name",
|
|
753
|
+
"value": "runsWaitingCount"
|
|
754
|
+
},
|
|
755
|
+
"arguments": [],
|
|
756
|
+
"directives": []
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"kind": "Field",
|
|
760
|
+
"name": {
|
|
761
|
+
"kind": "Name",
|
|
762
|
+
"value": "avgWorkflowExecutionTimeSeconds"
|
|
763
|
+
},
|
|
764
|
+
"arguments": [],
|
|
765
|
+
"directives": []
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"kind": "Field",
|
|
769
|
+
"name": {
|
|
770
|
+
"kind": "Name",
|
|
771
|
+
"value": "workflowSuccessRate"
|
|
772
|
+
},
|
|
773
|
+
"arguments": [],
|
|
774
|
+
"directives": []
|
|
775
|
+
}
|
|
776
|
+
]
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"kind": "FragmentDefinition",
|
|
781
|
+
"name": {
|
|
782
|
+
"kind": "Name",
|
|
783
|
+
"value": "RunsListRow"
|
|
784
|
+
},
|
|
785
|
+
"variableDefinitions": [],
|
|
786
|
+
"typeCondition": {
|
|
787
|
+
"kind": "NamedType",
|
|
788
|
+
"name": {
|
|
789
|
+
"kind": "Name",
|
|
790
|
+
"value": "WorkflowRun"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
"directives": [],
|
|
794
|
+
"selectionSet": {
|
|
795
|
+
"kind": "SelectionSet",
|
|
796
|
+
"selections": [
|
|
797
|
+
{
|
|
798
|
+
"kind": "Field",
|
|
799
|
+
"name": {
|
|
800
|
+
"kind": "Name",
|
|
801
|
+
"value": "id"
|
|
802
|
+
},
|
|
803
|
+
"arguments": [],
|
|
804
|
+
"directives": []
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"kind": "Field",
|
|
808
|
+
"name": {
|
|
809
|
+
"kind": "Name",
|
|
810
|
+
"value": "workflowId"
|
|
811
|
+
},
|
|
812
|
+
"arguments": [],
|
|
813
|
+
"directives": []
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"kind": "Field",
|
|
817
|
+
"name": {
|
|
818
|
+
"kind": "Name",
|
|
819
|
+
"value": "workflowKey"
|
|
820
|
+
},
|
|
821
|
+
"arguments": [],
|
|
822
|
+
"directives": []
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"kind": "Field",
|
|
826
|
+
"name": {
|
|
827
|
+
"kind": "Name",
|
|
828
|
+
"value": "version"
|
|
829
|
+
},
|
|
830
|
+
"arguments": [],
|
|
831
|
+
"directives": []
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"kind": "Field",
|
|
835
|
+
"name": {
|
|
836
|
+
"kind": "Name",
|
|
837
|
+
"value": "triggerNodeId"
|
|
838
|
+
},
|
|
839
|
+
"arguments": [],
|
|
840
|
+
"directives": []
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"kind": "Field",
|
|
844
|
+
"name": {
|
|
845
|
+
"kind": "Name",
|
|
846
|
+
"value": "triggerData"
|
|
847
|
+
},
|
|
848
|
+
"arguments": [],
|
|
849
|
+
"directives": []
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"kind": "Field",
|
|
853
|
+
"name": {
|
|
854
|
+
"kind": "Name",
|
|
855
|
+
"value": "status"
|
|
856
|
+
},
|
|
857
|
+
"arguments": [],
|
|
858
|
+
"directives": []
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"kind": "Field",
|
|
862
|
+
"name": {
|
|
863
|
+
"kind": "Name",
|
|
864
|
+
"value": "mode"
|
|
865
|
+
},
|
|
866
|
+
"arguments": [],
|
|
867
|
+
"directives": []
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"kind": "Field",
|
|
871
|
+
"name": {
|
|
872
|
+
"kind": "Name",
|
|
873
|
+
"value": "context"
|
|
874
|
+
},
|
|
875
|
+
"arguments": [],
|
|
876
|
+
"directives": []
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"kind": "Field",
|
|
880
|
+
"name": {
|
|
881
|
+
"kind": "Name",
|
|
882
|
+
"value": "triggeredById"
|
|
883
|
+
},
|
|
884
|
+
"arguments": [],
|
|
885
|
+
"directives": []
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"kind": "Field",
|
|
889
|
+
"name": {
|
|
890
|
+
"kind": "Name",
|
|
891
|
+
"value": "parentRunId"
|
|
892
|
+
},
|
|
893
|
+
"arguments": [],
|
|
894
|
+
"directives": []
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"kind": "Field",
|
|
898
|
+
"name": {
|
|
899
|
+
"kind": "Name",
|
|
900
|
+
"value": "createdAt"
|
|
901
|
+
},
|
|
902
|
+
"arguments": [],
|
|
903
|
+
"directives": []
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"kind": "Field",
|
|
907
|
+
"name": {
|
|
908
|
+
"kind": "Name",
|
|
909
|
+
"value": "updatedAt"
|
|
910
|
+
},
|
|
911
|
+
"arguments": [],
|
|
912
|
+
"directives": []
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"kind": "Field",
|
|
916
|
+
"name": {
|
|
917
|
+
"kind": "Name",
|
|
918
|
+
"value": "startedAt"
|
|
919
|
+
},
|
|
920
|
+
"arguments": [],
|
|
921
|
+
"directives": []
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"kind": "Field",
|
|
925
|
+
"name": {
|
|
926
|
+
"kind": "Name",
|
|
927
|
+
"value": "completedAt"
|
|
928
|
+
},
|
|
929
|
+
"arguments": [],
|
|
930
|
+
"directives": []
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"kind": "Field",
|
|
934
|
+
"name": {
|
|
935
|
+
"kind": "Name",
|
|
936
|
+
"value": "duration"
|
|
937
|
+
},
|
|
938
|
+
"arguments": [],
|
|
939
|
+
"directives": []
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"kind": "Field",
|
|
943
|
+
"name": {
|
|
944
|
+
"kind": "Name",
|
|
945
|
+
"value": "errorMessage"
|
|
946
|
+
},
|
|
947
|
+
"arguments": [],
|
|
948
|
+
"directives": []
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"kind": "Field",
|
|
952
|
+
"name": {
|
|
953
|
+
"kind": "Name",
|
|
954
|
+
"value": "errorType"
|
|
955
|
+
},
|
|
956
|
+
"arguments": [],
|
|
957
|
+
"directives": []
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"kind": "Field",
|
|
961
|
+
"name": {
|
|
962
|
+
"kind": "Name",
|
|
963
|
+
"value": "totalNodes"
|
|
964
|
+
},
|
|
965
|
+
"arguments": [],
|
|
966
|
+
"directives": []
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"kind": "Field",
|
|
970
|
+
"name": {
|
|
971
|
+
"kind": "Name",
|
|
972
|
+
"value": "completedNodes"
|
|
973
|
+
},
|
|
974
|
+
"arguments": [],
|
|
975
|
+
"directives": []
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"kind": "Field",
|
|
979
|
+
"name": {
|
|
980
|
+
"kind": "Name",
|
|
981
|
+
"value": "failedNodes"
|
|
982
|
+
},
|
|
983
|
+
"arguments": [],
|
|
984
|
+
"directives": []
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"kind": "Field",
|
|
988
|
+
"name": {
|
|
989
|
+
"kind": "Name",
|
|
990
|
+
"value": "skippedNodes"
|
|
991
|
+
},
|
|
992
|
+
"arguments": [],
|
|
993
|
+
"directives": []
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"kind": "Field",
|
|
997
|
+
"name": {
|
|
998
|
+
"kind": "Name",
|
|
999
|
+
"value": "progress"
|
|
1000
|
+
},
|
|
1001
|
+
"arguments": [],
|
|
1002
|
+
"directives": []
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"kind": "Field",
|
|
1006
|
+
"name": {
|
|
1007
|
+
"kind": "Name",
|
|
1008
|
+
"value": "caughtErrors"
|
|
1009
|
+
},
|
|
1010
|
+
"arguments": [],
|
|
1011
|
+
"directives": [],
|
|
1012
|
+
"selectionSet": {
|
|
1013
|
+
"kind": "SelectionSet",
|
|
1014
|
+
"selections": [
|
|
1015
|
+
{
|
|
1016
|
+
"kind": "Field",
|
|
1017
|
+
"name": {
|
|
1018
|
+
"kind": "Name",
|
|
1019
|
+
"value": "scopeId"
|
|
1020
|
+
},
|
|
1021
|
+
"arguments": [],
|
|
1022
|
+
"directives": []
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"kind": "Field",
|
|
1026
|
+
"name": {
|
|
1027
|
+
"kind": "Name",
|
|
1028
|
+
"value": "failingNodeId"
|
|
1029
|
+
},
|
|
1030
|
+
"arguments": [],
|
|
1031
|
+
"directives": []
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"kind": "Field",
|
|
1035
|
+
"name": {
|
|
1036
|
+
"kind": "Name",
|
|
1037
|
+
"value": "failingNodeLabel"
|
|
1038
|
+
},
|
|
1039
|
+
"arguments": [],
|
|
1040
|
+
"directives": []
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"kind": "Field",
|
|
1044
|
+
"name": {
|
|
1045
|
+
"kind": "Name",
|
|
1046
|
+
"value": "errorType"
|
|
1047
|
+
},
|
|
1048
|
+
"arguments": [],
|
|
1049
|
+
"directives": []
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"kind": "Field",
|
|
1053
|
+
"name": {
|
|
1054
|
+
"kind": "Name",
|
|
1055
|
+
"value": "message"
|
|
1056
|
+
},
|
|
1057
|
+
"arguments": [],
|
|
1058
|
+
"directives": []
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"kind": "Field",
|
|
1062
|
+
"name": {
|
|
1063
|
+
"kind": "Name",
|
|
1064
|
+
"value": "attempt"
|
|
1065
|
+
},
|
|
1066
|
+
"arguments": [],
|
|
1067
|
+
"directives": []
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"kind": "Field",
|
|
1071
|
+
"name": {
|
|
1072
|
+
"kind": "Name",
|
|
1073
|
+
"value": "outcome"
|
|
1074
|
+
},
|
|
1075
|
+
"arguments": [],
|
|
1076
|
+
"directives": []
|
|
1077
|
+
}
|
|
1078
|
+
]
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"kind": "Field",
|
|
1083
|
+
"name": {
|
|
1084
|
+
"kind": "Name",
|
|
1085
|
+
"value": "workflow"
|
|
1086
|
+
},
|
|
1087
|
+
"arguments": [],
|
|
1088
|
+
"directives": [],
|
|
1089
|
+
"selectionSet": {
|
|
1090
|
+
"kind": "SelectionSet",
|
|
1091
|
+
"selections": [
|
|
1092
|
+
{
|
|
1093
|
+
"kind": "Field",
|
|
1094
|
+
"name": {
|
|
1095
|
+
"kind": "Name",
|
|
1096
|
+
"value": "id"
|
|
1097
|
+
},
|
|
1098
|
+
"arguments": [],
|
|
1099
|
+
"directives": []
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"kind": "Field",
|
|
1103
|
+
"name": {
|
|
1104
|
+
"kind": "Name",
|
|
1105
|
+
"value": "name"
|
|
1106
|
+
},
|
|
1107
|
+
"arguments": [],
|
|
1108
|
+
"directives": []
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"kind": "Field",
|
|
1112
|
+
"name": {
|
|
1113
|
+
"kind": "Name",
|
|
1114
|
+
"value": "description"
|
|
1115
|
+
},
|
|
1116
|
+
"arguments": [],
|
|
1117
|
+
"directives": []
|
|
1118
|
+
}
|
|
1119
|
+
]
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
]
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"kind": "FragmentDefinition",
|
|
1127
|
+
"name": {
|
|
1128
|
+
"kind": "Name",
|
|
1129
|
+
"value": "RunStatusCountFields"
|
|
1130
|
+
},
|
|
1131
|
+
"variableDefinitions": [],
|
|
1132
|
+
"typeCondition": {
|
|
1133
|
+
"kind": "NamedType",
|
|
1134
|
+
"name": {
|
|
1135
|
+
"kind": "Name",
|
|
1136
|
+
"value": "RunCountResult"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
"directives": [],
|
|
1140
|
+
"selectionSet": {
|
|
1141
|
+
"kind": "SelectionSet",
|
|
1142
|
+
"selections": [
|
|
1143
|
+
{
|
|
1144
|
+
"kind": "Field",
|
|
1145
|
+
"name": {
|
|
1146
|
+
"kind": "Name",
|
|
1147
|
+
"value": "total"
|
|
1148
|
+
},
|
|
1149
|
+
"arguments": [],
|
|
1150
|
+
"directives": []
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"kind": "Field",
|
|
1154
|
+
"name": {
|
|
1155
|
+
"kind": "Name",
|
|
1156
|
+
"value": "groups"
|
|
1157
|
+
},
|
|
1158
|
+
"arguments": [],
|
|
1159
|
+
"directives": [],
|
|
1160
|
+
"selectionSet": {
|
|
1161
|
+
"kind": "SelectionSet",
|
|
1162
|
+
"selections": [
|
|
1163
|
+
{
|
|
1164
|
+
"kind": "Field",
|
|
1165
|
+
"name": {
|
|
1166
|
+
"kind": "Name",
|
|
1167
|
+
"value": "key"
|
|
1168
|
+
},
|
|
1169
|
+
"arguments": [],
|
|
1170
|
+
"directives": []
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"kind": "Field",
|
|
1174
|
+
"name": {
|
|
1175
|
+
"kind": "Name",
|
|
1176
|
+
"value": "values"
|
|
1177
|
+
},
|
|
1178
|
+
"arguments": [],
|
|
1179
|
+
"directives": []
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"kind": "Field",
|
|
1183
|
+
"name": {
|
|
1184
|
+
"kind": "Name",
|
|
1185
|
+
"value": "count"
|
|
1186
|
+
},
|
|
1187
|
+
"arguments": [],
|
|
1188
|
+
"directives": []
|
|
1189
|
+
}
|
|
1190
|
+
]
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"kind": "Field",
|
|
1195
|
+
"name": {
|
|
1196
|
+
"kind": "Name",
|
|
1197
|
+
"value": "groupsTruncated"
|
|
1198
|
+
},
|
|
1199
|
+
"arguments": [],
|
|
1200
|
+
"directives": []
|
|
1201
|
+
}
|
|
1202
|
+
]
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"kind": "FragmentDefinition",
|
|
1207
|
+
"name": {
|
|
1208
|
+
"kind": "Name",
|
|
1209
|
+
"value": "WorkflowSearchAttributeFields"
|
|
1210
|
+
},
|
|
1211
|
+
"variableDefinitions": [],
|
|
1212
|
+
"typeCondition": {
|
|
1213
|
+
"kind": "NamedType",
|
|
1214
|
+
"name": {
|
|
1215
|
+
"kind": "Name",
|
|
1216
|
+
"value": "WorkflowSearchAttribute"
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
"directives": [],
|
|
1220
|
+
"selectionSet": {
|
|
1221
|
+
"kind": "SelectionSet",
|
|
1222
|
+
"selections": [
|
|
1223
|
+
{
|
|
1224
|
+
"kind": "Field",
|
|
1225
|
+
"name": {
|
|
1226
|
+
"kind": "Name",
|
|
1227
|
+
"value": "id"
|
|
1228
|
+
},
|
|
1229
|
+
"arguments": [],
|
|
1230
|
+
"directives": []
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"kind": "Field",
|
|
1234
|
+
"name": {
|
|
1235
|
+
"kind": "Name",
|
|
1236
|
+
"value": "name"
|
|
1237
|
+
},
|
|
1238
|
+
"arguments": [],
|
|
1239
|
+
"directives": []
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"kind": "Field",
|
|
1243
|
+
"name": {
|
|
1244
|
+
"kind": "Name",
|
|
1245
|
+
"value": "type"
|
|
1246
|
+
},
|
|
1247
|
+
"arguments": [],
|
|
1248
|
+
"directives": []
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"kind": "Field",
|
|
1252
|
+
"name": {
|
|
1253
|
+
"kind": "Name",
|
|
1254
|
+
"value": "description"
|
|
1255
|
+
},
|
|
1256
|
+
"arguments": [],
|
|
1257
|
+
"directives": []
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"kind": "Field",
|
|
1261
|
+
"name": {
|
|
1262
|
+
"kind": "Name",
|
|
1263
|
+
"value": "createdBy"
|
|
1264
|
+
},
|
|
1265
|
+
"arguments": [],
|
|
1266
|
+
"directives": []
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"kind": "Field",
|
|
1270
|
+
"name": {
|
|
1271
|
+
"kind": "Name",
|
|
1272
|
+
"value": "createdAt"
|
|
1273
|
+
},
|
|
1274
|
+
"arguments": [],
|
|
1275
|
+
"directives": []
|
|
1276
|
+
}
|
|
1277
|
+
]
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
]
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1283
|
+
// src/generated/documents/wspace/RunsPageRefreshDocument.ts
|
|
1284
|
+
const RunsPageRefreshDocument = {
|
|
1285
|
+
"kind": "Document",
|
|
1286
|
+
"definitions": [
|
|
1287
|
+
{
|
|
1288
|
+
"kind": "OperationDefinition",
|
|
1289
|
+
"operation": "query",
|
|
1290
|
+
"name": {
|
|
1291
|
+
"kind": "Name",
|
|
1292
|
+
"value": "RunsPageRefresh"
|
|
1293
|
+
},
|
|
1294
|
+
"variableDefinitions": [
|
|
1295
|
+
{
|
|
1296
|
+
"kind": "VariableDefinition",
|
|
1297
|
+
"variable": {
|
|
1298
|
+
"kind": "Variable",
|
|
1299
|
+
"name": {
|
|
1300
|
+
"kind": "Name",
|
|
1301
|
+
"value": "input"
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
"type": {
|
|
1305
|
+
"kind": "NonNullType",
|
|
1306
|
+
"type": {
|
|
1307
|
+
"kind": "NamedType",
|
|
1308
|
+
"name": {
|
|
1309
|
+
"kind": "Name",
|
|
1310
|
+
"value": "ListWorkflowRunsInput"
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
"directives": []
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"kind": "VariableDefinition",
|
|
1318
|
+
"variable": {
|
|
1319
|
+
"kind": "Variable",
|
|
1320
|
+
"name": {
|
|
1321
|
+
"kind": "Name",
|
|
1322
|
+
"value": "countFilter"
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
"type": {
|
|
1326
|
+
"kind": "NamedType",
|
|
1327
|
+
"name": {
|
|
1328
|
+
"kind": "Name",
|
|
1329
|
+
"value": "ListWorkflowRunsInput"
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
"directives": []
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"kind": "VariableDefinition",
|
|
1336
|
+
"variable": {
|
|
1337
|
+
"kind": "Variable",
|
|
1338
|
+
"name": {
|
|
1339
|
+
"kind": "Name",
|
|
1340
|
+
"value": "withCounts"
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
"type": {
|
|
1344
|
+
"kind": "NonNullType",
|
|
1345
|
+
"type": {
|
|
1346
|
+
"kind": "NamedType",
|
|
1347
|
+
"name": {
|
|
1348
|
+
"kind": "Name",
|
|
1349
|
+
"value": "Boolean"
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
"directives": []
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"kind": "VariableDefinition",
|
|
1357
|
+
"variable": {
|
|
1358
|
+
"kind": "Variable",
|
|
1359
|
+
"name": {
|
|
1360
|
+
"kind": "Name",
|
|
1361
|
+
"value": "scopedFilter"
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
"type": {
|
|
1365
|
+
"kind": "NamedType",
|
|
1366
|
+
"name": {
|
|
1367
|
+
"kind": "Name",
|
|
1368
|
+
"value": "ListWorkflowRunsInput"
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
"directives": []
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"kind": "VariableDefinition",
|
|
1375
|
+
"variable": {
|
|
1376
|
+
"kind": "Variable",
|
|
1377
|
+
"name": {
|
|
1378
|
+
"kind": "Name",
|
|
1379
|
+
"value": "withScopedCounts"
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
"type": {
|
|
1383
|
+
"kind": "NonNullType",
|
|
1384
|
+
"type": {
|
|
1385
|
+
"kind": "NamedType",
|
|
1386
|
+
"name": {
|
|
1387
|
+
"kind": "Name",
|
|
1388
|
+
"value": "Boolean"
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
"directives": []
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"kind": "VariableDefinition",
|
|
1396
|
+
"variable": {
|
|
1397
|
+
"kind": "Variable",
|
|
1398
|
+
"name": {
|
|
1399
|
+
"kind": "Name",
|
|
1400
|
+
"value": "groupBy"
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
"type": {
|
|
1404
|
+
"kind": "ListType",
|
|
1405
|
+
"type": {
|
|
1406
|
+
"kind": "NonNullType",
|
|
1407
|
+
"type": {
|
|
1408
|
+
"kind": "NamedType",
|
|
1409
|
+
"name": {
|
|
1410
|
+
"kind": "Name",
|
|
1411
|
+
"value": "RunGroupBy"
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
"directives": []
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
"directives": [],
|
|
1420
|
+
"selectionSet": {
|
|
1421
|
+
"kind": "SelectionSet",
|
|
1422
|
+
"selections": [
|
|
1423
|
+
{
|
|
1424
|
+
"kind": "Field",
|
|
1425
|
+
"name": {
|
|
1426
|
+
"kind": "Name",
|
|
1427
|
+
"value": "workflowRuns"
|
|
1428
|
+
},
|
|
1429
|
+
"arguments": [{
|
|
1430
|
+
"kind": "Argument",
|
|
1431
|
+
"name": {
|
|
1432
|
+
"kind": "Name",
|
|
1433
|
+
"value": "input"
|
|
1434
|
+
},
|
|
1435
|
+
"value": {
|
|
1436
|
+
"kind": "Variable",
|
|
1437
|
+
"name": {
|
|
1438
|
+
"kind": "Name",
|
|
1439
|
+
"value": "input"
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}],
|
|
1443
|
+
"directives": [],
|
|
1444
|
+
"selectionSet": {
|
|
1445
|
+
"kind": "SelectionSet",
|
|
1446
|
+
"selections": [
|
|
1447
|
+
{
|
|
1448
|
+
"kind": "Field",
|
|
1449
|
+
"name": {
|
|
1450
|
+
"kind": "Name",
|
|
1451
|
+
"value": "items"
|
|
1452
|
+
},
|
|
1453
|
+
"arguments": [],
|
|
1454
|
+
"directives": [],
|
|
1455
|
+
"selectionSet": {
|
|
1456
|
+
"kind": "SelectionSet",
|
|
1457
|
+
"selections": [{
|
|
1458
|
+
"kind": "FragmentSpread",
|
|
1459
|
+
"name": {
|
|
1460
|
+
"kind": "Name",
|
|
1461
|
+
"value": "RunsListRow"
|
|
1462
|
+
},
|
|
1463
|
+
"directives": []
|
|
1464
|
+
}]
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"kind": "Field",
|
|
1469
|
+
"name": {
|
|
1470
|
+
"kind": "Name",
|
|
1471
|
+
"value": "total"
|
|
1472
|
+
},
|
|
1473
|
+
"arguments": [],
|
|
1474
|
+
"directives": []
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"kind": "Field",
|
|
1478
|
+
"name": {
|
|
1479
|
+
"kind": "Name",
|
|
1480
|
+
"value": "hasMore"
|
|
1481
|
+
},
|
|
1482
|
+
"arguments": [],
|
|
1483
|
+
"directives": []
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"kind": "Field",
|
|
1487
|
+
"name": {
|
|
1488
|
+
"kind": "Name",
|
|
1489
|
+
"value": "totalCapped"
|
|
1490
|
+
},
|
|
1491
|
+
"arguments": [],
|
|
1492
|
+
"directives": []
|
|
1493
|
+
}
|
|
1494
|
+
]
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"kind": "Field",
|
|
1499
|
+
"name": {
|
|
1500
|
+
"kind": "Name",
|
|
1501
|
+
"value": "dashboardSummary"
|
|
1502
|
+
},
|
|
1503
|
+
"arguments": [],
|
|
1504
|
+
"directives": [],
|
|
1505
|
+
"selectionSet": {
|
|
1506
|
+
"kind": "SelectionSet",
|
|
1507
|
+
"selections": [{
|
|
1508
|
+
"kind": "FragmentSpread",
|
|
1509
|
+
"name": {
|
|
1510
|
+
"kind": "Name",
|
|
1511
|
+
"value": "RunsPageStatsFields"
|
|
1512
|
+
},
|
|
1513
|
+
"directives": []
|
|
1514
|
+
}]
|
|
1515
|
+
}
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"kind": "Field",
|
|
1519
|
+
"alias": {
|
|
1520
|
+
"kind": "Name",
|
|
1521
|
+
"value": "statusCounts"
|
|
1522
|
+
},
|
|
1523
|
+
"name": {
|
|
1524
|
+
"kind": "Name",
|
|
1525
|
+
"value": "workflowRunsCount"
|
|
1526
|
+
},
|
|
1527
|
+
"arguments": [{
|
|
1528
|
+
"kind": "Argument",
|
|
1529
|
+
"name": {
|
|
1530
|
+
"kind": "Name",
|
|
1531
|
+
"value": "filter"
|
|
1532
|
+
},
|
|
1533
|
+
"value": {
|
|
1534
|
+
"kind": "Variable",
|
|
1535
|
+
"name": {
|
|
1536
|
+
"kind": "Name",
|
|
1537
|
+
"value": "countFilter"
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
}, {
|
|
1541
|
+
"kind": "Argument",
|
|
1542
|
+
"name": {
|
|
1543
|
+
"kind": "Name",
|
|
1544
|
+
"value": "groupBy"
|
|
1545
|
+
},
|
|
1546
|
+
"value": {
|
|
1547
|
+
"kind": "Variable",
|
|
1548
|
+
"name": {
|
|
1549
|
+
"kind": "Name",
|
|
1550
|
+
"value": "groupBy"
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
}],
|
|
1554
|
+
"directives": [{
|
|
1555
|
+
"kind": "Directive",
|
|
1556
|
+
"name": {
|
|
1557
|
+
"kind": "Name",
|
|
1558
|
+
"value": "include"
|
|
1559
|
+
},
|
|
1560
|
+
"arguments": [{
|
|
1561
|
+
"kind": "Argument",
|
|
1562
|
+
"name": {
|
|
1563
|
+
"kind": "Name",
|
|
1564
|
+
"value": "if"
|
|
1565
|
+
},
|
|
1566
|
+
"value": {
|
|
1567
|
+
"kind": "Variable",
|
|
1568
|
+
"name": {
|
|
1569
|
+
"kind": "Name",
|
|
1570
|
+
"value": "withCounts"
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}]
|
|
1574
|
+
}],
|
|
1575
|
+
"selectionSet": {
|
|
1576
|
+
"kind": "SelectionSet",
|
|
1577
|
+
"selections": [{
|
|
1578
|
+
"kind": "FragmentSpread",
|
|
1579
|
+
"name": {
|
|
1580
|
+
"kind": "Name",
|
|
1581
|
+
"value": "RunStatusCountFields"
|
|
1582
|
+
},
|
|
1583
|
+
"directives": []
|
|
1584
|
+
}]
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"kind": "Field",
|
|
1589
|
+
"alias": {
|
|
1590
|
+
"kind": "Name",
|
|
1591
|
+
"value": "scopedCounts"
|
|
1592
|
+
},
|
|
1593
|
+
"name": {
|
|
1594
|
+
"kind": "Name",
|
|
1595
|
+
"value": "workflowRunsCount"
|
|
1596
|
+
},
|
|
1597
|
+
"arguments": [{
|
|
1598
|
+
"kind": "Argument",
|
|
1599
|
+
"name": {
|
|
1600
|
+
"kind": "Name",
|
|
1601
|
+
"value": "filter"
|
|
1602
|
+
},
|
|
1603
|
+
"value": {
|
|
1604
|
+
"kind": "Variable",
|
|
1605
|
+
"name": {
|
|
1606
|
+
"kind": "Name",
|
|
1607
|
+
"value": "scopedFilter"
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
}, {
|
|
1611
|
+
"kind": "Argument",
|
|
1612
|
+
"name": {
|
|
1613
|
+
"kind": "Name",
|
|
1614
|
+
"value": "groupBy"
|
|
1615
|
+
},
|
|
1616
|
+
"value": {
|
|
1617
|
+
"kind": "Variable",
|
|
1618
|
+
"name": {
|
|
1619
|
+
"kind": "Name",
|
|
1620
|
+
"value": "groupBy"
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}],
|
|
1624
|
+
"directives": [{
|
|
1625
|
+
"kind": "Directive",
|
|
1626
|
+
"name": {
|
|
1627
|
+
"kind": "Name",
|
|
1628
|
+
"value": "include"
|
|
1629
|
+
},
|
|
1630
|
+
"arguments": [{
|
|
1631
|
+
"kind": "Argument",
|
|
1632
|
+
"name": {
|
|
1633
|
+
"kind": "Name",
|
|
1634
|
+
"value": "if"
|
|
1635
|
+
},
|
|
1636
|
+
"value": {
|
|
1637
|
+
"kind": "Variable",
|
|
1638
|
+
"name": {
|
|
1639
|
+
"kind": "Name",
|
|
1640
|
+
"value": "withScopedCounts"
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
}]
|
|
1644
|
+
}],
|
|
1645
|
+
"selectionSet": {
|
|
1646
|
+
"kind": "SelectionSet",
|
|
1647
|
+
"selections": [{
|
|
1648
|
+
"kind": "FragmentSpread",
|
|
1649
|
+
"name": {
|
|
1650
|
+
"kind": "Name",
|
|
1651
|
+
"value": "RunStatusCountFields"
|
|
1652
|
+
},
|
|
1653
|
+
"directives": []
|
|
1654
|
+
}]
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
]
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"kind": "FragmentDefinition",
|
|
1662
|
+
"name": {
|
|
1663
|
+
"kind": "Name",
|
|
1664
|
+
"value": "RunsPageStatsFields"
|
|
1665
|
+
},
|
|
1666
|
+
"variableDefinitions": [],
|
|
1667
|
+
"typeCondition": {
|
|
1668
|
+
"kind": "NamedType",
|
|
1669
|
+
"name": {
|
|
1670
|
+
"kind": "Name",
|
|
1671
|
+
"value": "DashboardSummary"
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
"directives": [],
|
|
1675
|
+
"selectionSet": {
|
|
1676
|
+
"kind": "SelectionSet",
|
|
1677
|
+
"selections": [
|
|
1678
|
+
{
|
|
1679
|
+
"kind": "Field",
|
|
1680
|
+
"name": {
|
|
1681
|
+
"kind": "Name",
|
|
1682
|
+
"value": "runsCountTotal"
|
|
1683
|
+
},
|
|
1684
|
+
"arguments": [],
|
|
1685
|
+
"directives": []
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"kind": "Field",
|
|
1689
|
+
"name": {
|
|
1690
|
+
"kind": "Name",
|
|
1691
|
+
"value": "runsCompletedCount"
|
|
1692
|
+
},
|
|
1693
|
+
"arguments": [],
|
|
1694
|
+
"directives": []
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"kind": "Field",
|
|
1698
|
+
"name": {
|
|
1699
|
+
"kind": "Name",
|
|
1700
|
+
"value": "runsFailedCount"
|
|
1701
|
+
},
|
|
1702
|
+
"arguments": [],
|
|
1703
|
+
"directives": []
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
"kind": "Field",
|
|
1707
|
+
"name": {
|
|
1708
|
+
"kind": "Name",
|
|
1709
|
+
"value": "runsRunningCount"
|
|
1710
|
+
},
|
|
1711
|
+
"arguments": [],
|
|
1712
|
+
"directives": []
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"kind": "Field",
|
|
1716
|
+
"name": {
|
|
1717
|
+
"kind": "Name",
|
|
1718
|
+
"value": "runsPendingCount"
|
|
1719
|
+
},
|
|
1720
|
+
"arguments": [],
|
|
1721
|
+
"directives": []
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"kind": "Field",
|
|
1725
|
+
"name": {
|
|
1726
|
+
"kind": "Name",
|
|
1727
|
+
"value": "runsCancelledCount"
|
|
1728
|
+
},
|
|
1729
|
+
"arguments": [],
|
|
1730
|
+
"directives": []
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
"kind": "Field",
|
|
1734
|
+
"name": {
|
|
1735
|
+
"kind": "Name",
|
|
1736
|
+
"value": "runsWaitingCount"
|
|
1737
|
+
},
|
|
1738
|
+
"arguments": [],
|
|
1739
|
+
"directives": []
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"kind": "Field",
|
|
1743
|
+
"name": {
|
|
1744
|
+
"kind": "Name",
|
|
1745
|
+
"value": "avgWorkflowExecutionTimeSeconds"
|
|
1746
|
+
},
|
|
1747
|
+
"arguments": [],
|
|
1748
|
+
"directives": []
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
"kind": "Field",
|
|
1752
|
+
"name": {
|
|
1753
|
+
"kind": "Name",
|
|
1754
|
+
"value": "workflowSuccessRate"
|
|
1755
|
+
},
|
|
1756
|
+
"arguments": [],
|
|
1757
|
+
"directives": []
|
|
1758
|
+
}
|
|
1759
|
+
]
|
|
1760
|
+
}
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"kind": "FragmentDefinition",
|
|
1764
|
+
"name": {
|
|
1765
|
+
"kind": "Name",
|
|
1766
|
+
"value": "RunsListRow"
|
|
1767
|
+
},
|
|
1768
|
+
"variableDefinitions": [],
|
|
1769
|
+
"typeCondition": {
|
|
1770
|
+
"kind": "NamedType",
|
|
1771
|
+
"name": {
|
|
1772
|
+
"kind": "Name",
|
|
1773
|
+
"value": "WorkflowRun"
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
"directives": [],
|
|
1777
|
+
"selectionSet": {
|
|
1778
|
+
"kind": "SelectionSet",
|
|
1779
|
+
"selections": [
|
|
1780
|
+
{
|
|
1781
|
+
"kind": "Field",
|
|
1782
|
+
"name": {
|
|
1783
|
+
"kind": "Name",
|
|
1784
|
+
"value": "id"
|
|
1785
|
+
},
|
|
1786
|
+
"arguments": [],
|
|
1787
|
+
"directives": []
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
"kind": "Field",
|
|
1791
|
+
"name": {
|
|
1792
|
+
"kind": "Name",
|
|
1793
|
+
"value": "workflowId"
|
|
1794
|
+
},
|
|
1795
|
+
"arguments": [],
|
|
1796
|
+
"directives": []
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
"kind": "Field",
|
|
1800
|
+
"name": {
|
|
1801
|
+
"kind": "Name",
|
|
1802
|
+
"value": "workflowKey"
|
|
1803
|
+
},
|
|
1804
|
+
"arguments": [],
|
|
1805
|
+
"directives": []
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
"kind": "Field",
|
|
1809
|
+
"name": {
|
|
1810
|
+
"kind": "Name",
|
|
1811
|
+
"value": "version"
|
|
1812
|
+
},
|
|
1813
|
+
"arguments": [],
|
|
1814
|
+
"directives": []
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"kind": "Field",
|
|
1818
|
+
"name": {
|
|
1819
|
+
"kind": "Name",
|
|
1820
|
+
"value": "triggerNodeId"
|
|
1821
|
+
},
|
|
1822
|
+
"arguments": [],
|
|
1823
|
+
"directives": []
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"kind": "Field",
|
|
1827
|
+
"name": {
|
|
1828
|
+
"kind": "Name",
|
|
1829
|
+
"value": "triggerData"
|
|
1830
|
+
},
|
|
1831
|
+
"arguments": [],
|
|
1832
|
+
"directives": []
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"kind": "Field",
|
|
1836
|
+
"name": {
|
|
1837
|
+
"kind": "Name",
|
|
1838
|
+
"value": "status"
|
|
1839
|
+
},
|
|
1840
|
+
"arguments": [],
|
|
1841
|
+
"directives": []
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"kind": "Field",
|
|
1845
|
+
"name": {
|
|
1846
|
+
"kind": "Name",
|
|
1847
|
+
"value": "mode"
|
|
1848
|
+
},
|
|
1849
|
+
"arguments": [],
|
|
1850
|
+
"directives": []
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"kind": "Field",
|
|
1854
|
+
"name": {
|
|
1855
|
+
"kind": "Name",
|
|
1856
|
+
"value": "context"
|
|
1857
|
+
},
|
|
1858
|
+
"arguments": [],
|
|
1859
|
+
"directives": []
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"kind": "Field",
|
|
1863
|
+
"name": {
|
|
1864
|
+
"kind": "Name",
|
|
1865
|
+
"value": "triggeredById"
|
|
1866
|
+
},
|
|
1867
|
+
"arguments": [],
|
|
1868
|
+
"directives": []
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
"kind": "Field",
|
|
1872
|
+
"name": {
|
|
1873
|
+
"kind": "Name",
|
|
1874
|
+
"value": "parentRunId"
|
|
1875
|
+
},
|
|
1876
|
+
"arguments": [],
|
|
1877
|
+
"directives": []
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
"kind": "Field",
|
|
1881
|
+
"name": {
|
|
1882
|
+
"kind": "Name",
|
|
1883
|
+
"value": "createdAt"
|
|
1884
|
+
},
|
|
1885
|
+
"arguments": [],
|
|
1886
|
+
"directives": []
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
"kind": "Field",
|
|
1890
|
+
"name": {
|
|
1891
|
+
"kind": "Name",
|
|
1892
|
+
"value": "updatedAt"
|
|
1893
|
+
},
|
|
1894
|
+
"arguments": [],
|
|
1895
|
+
"directives": []
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
"kind": "Field",
|
|
1899
|
+
"name": {
|
|
1900
|
+
"kind": "Name",
|
|
1901
|
+
"value": "startedAt"
|
|
1902
|
+
},
|
|
1903
|
+
"arguments": [],
|
|
1904
|
+
"directives": []
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"kind": "Field",
|
|
1908
|
+
"name": {
|
|
1909
|
+
"kind": "Name",
|
|
1910
|
+
"value": "completedAt"
|
|
1911
|
+
},
|
|
1912
|
+
"arguments": [],
|
|
1913
|
+
"directives": []
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"kind": "Field",
|
|
1917
|
+
"name": {
|
|
1918
|
+
"kind": "Name",
|
|
1919
|
+
"value": "duration"
|
|
1920
|
+
},
|
|
1921
|
+
"arguments": [],
|
|
1922
|
+
"directives": []
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
"kind": "Field",
|
|
1926
|
+
"name": {
|
|
1927
|
+
"kind": "Name",
|
|
1928
|
+
"value": "errorMessage"
|
|
1929
|
+
},
|
|
1930
|
+
"arguments": [],
|
|
1931
|
+
"directives": []
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
"kind": "Field",
|
|
1935
|
+
"name": {
|
|
1936
|
+
"kind": "Name",
|
|
1937
|
+
"value": "errorType"
|
|
1938
|
+
},
|
|
1939
|
+
"arguments": [],
|
|
1940
|
+
"directives": []
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"kind": "Field",
|
|
1944
|
+
"name": {
|
|
1945
|
+
"kind": "Name",
|
|
1946
|
+
"value": "totalNodes"
|
|
1947
|
+
},
|
|
1948
|
+
"arguments": [],
|
|
1949
|
+
"directives": []
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"kind": "Field",
|
|
1953
|
+
"name": {
|
|
1954
|
+
"kind": "Name",
|
|
1955
|
+
"value": "completedNodes"
|
|
1956
|
+
},
|
|
1957
|
+
"arguments": [],
|
|
1958
|
+
"directives": []
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"kind": "Field",
|
|
1962
|
+
"name": {
|
|
1963
|
+
"kind": "Name",
|
|
1964
|
+
"value": "failedNodes"
|
|
1965
|
+
},
|
|
1966
|
+
"arguments": [],
|
|
1967
|
+
"directives": []
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"kind": "Field",
|
|
1971
|
+
"name": {
|
|
1972
|
+
"kind": "Name",
|
|
1973
|
+
"value": "skippedNodes"
|
|
1974
|
+
},
|
|
1975
|
+
"arguments": [],
|
|
1976
|
+
"directives": []
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
"kind": "Field",
|
|
1980
|
+
"name": {
|
|
1981
|
+
"kind": "Name",
|
|
1982
|
+
"value": "progress"
|
|
1983
|
+
},
|
|
1984
|
+
"arguments": [],
|
|
1985
|
+
"directives": []
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"kind": "Field",
|
|
1989
|
+
"name": {
|
|
1990
|
+
"kind": "Name",
|
|
1991
|
+
"value": "caughtErrors"
|
|
1992
|
+
},
|
|
1993
|
+
"arguments": [],
|
|
1994
|
+
"directives": [],
|
|
1995
|
+
"selectionSet": {
|
|
1996
|
+
"kind": "SelectionSet",
|
|
1997
|
+
"selections": [
|
|
1998
|
+
{
|
|
1999
|
+
"kind": "Field",
|
|
2000
|
+
"name": {
|
|
2001
|
+
"kind": "Name",
|
|
2002
|
+
"value": "scopeId"
|
|
2003
|
+
},
|
|
2004
|
+
"arguments": [],
|
|
2005
|
+
"directives": []
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
"kind": "Field",
|
|
2009
|
+
"name": {
|
|
2010
|
+
"kind": "Name",
|
|
2011
|
+
"value": "failingNodeId"
|
|
2012
|
+
},
|
|
2013
|
+
"arguments": [],
|
|
2014
|
+
"directives": []
|
|
2015
|
+
},
|
|
2016
|
+
{
|
|
2017
|
+
"kind": "Field",
|
|
2018
|
+
"name": {
|
|
2019
|
+
"kind": "Name",
|
|
2020
|
+
"value": "failingNodeLabel"
|
|
2021
|
+
},
|
|
2022
|
+
"arguments": [],
|
|
2023
|
+
"directives": []
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
"kind": "Field",
|
|
2027
|
+
"name": {
|
|
2028
|
+
"kind": "Name",
|
|
2029
|
+
"value": "errorType"
|
|
2030
|
+
},
|
|
2031
|
+
"arguments": [],
|
|
2032
|
+
"directives": []
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"kind": "Field",
|
|
2036
|
+
"name": {
|
|
2037
|
+
"kind": "Name",
|
|
2038
|
+
"value": "message"
|
|
2039
|
+
},
|
|
2040
|
+
"arguments": [],
|
|
2041
|
+
"directives": []
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
"kind": "Field",
|
|
2045
|
+
"name": {
|
|
2046
|
+
"kind": "Name",
|
|
2047
|
+
"value": "attempt"
|
|
2048
|
+
},
|
|
2049
|
+
"arguments": [],
|
|
2050
|
+
"directives": []
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"kind": "Field",
|
|
2054
|
+
"name": {
|
|
2055
|
+
"kind": "Name",
|
|
2056
|
+
"value": "outcome"
|
|
2057
|
+
},
|
|
2058
|
+
"arguments": [],
|
|
2059
|
+
"directives": []
|
|
2060
|
+
}
|
|
2061
|
+
]
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"kind": "Field",
|
|
2066
|
+
"name": {
|
|
2067
|
+
"kind": "Name",
|
|
2068
|
+
"value": "workflow"
|
|
2069
|
+
},
|
|
2070
|
+
"arguments": [],
|
|
2071
|
+
"directives": [],
|
|
2072
|
+
"selectionSet": {
|
|
2073
|
+
"kind": "SelectionSet",
|
|
2074
|
+
"selections": [
|
|
2075
|
+
{
|
|
2076
|
+
"kind": "Field",
|
|
2077
|
+
"name": {
|
|
2078
|
+
"kind": "Name",
|
|
2079
|
+
"value": "id"
|
|
2080
|
+
},
|
|
2081
|
+
"arguments": [],
|
|
2082
|
+
"directives": []
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
"kind": "Field",
|
|
2086
|
+
"name": {
|
|
2087
|
+
"kind": "Name",
|
|
2088
|
+
"value": "name"
|
|
2089
|
+
},
|
|
2090
|
+
"arguments": [],
|
|
2091
|
+
"directives": []
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
"kind": "Field",
|
|
2095
|
+
"name": {
|
|
2096
|
+
"kind": "Name",
|
|
2097
|
+
"value": "description"
|
|
2098
|
+
},
|
|
2099
|
+
"arguments": [],
|
|
2100
|
+
"directives": []
|
|
2101
|
+
}
|
|
2102
|
+
]
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
]
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
"kind": "FragmentDefinition",
|
|
2110
|
+
"name": {
|
|
2111
|
+
"kind": "Name",
|
|
2112
|
+
"value": "RunStatusCountFields"
|
|
2113
|
+
},
|
|
2114
|
+
"variableDefinitions": [],
|
|
2115
|
+
"typeCondition": {
|
|
2116
|
+
"kind": "NamedType",
|
|
2117
|
+
"name": {
|
|
2118
|
+
"kind": "Name",
|
|
2119
|
+
"value": "RunCountResult"
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
"directives": [],
|
|
2123
|
+
"selectionSet": {
|
|
2124
|
+
"kind": "SelectionSet",
|
|
2125
|
+
"selections": [
|
|
2126
|
+
{
|
|
2127
|
+
"kind": "Field",
|
|
2128
|
+
"name": {
|
|
2129
|
+
"kind": "Name",
|
|
2130
|
+
"value": "total"
|
|
2131
|
+
},
|
|
2132
|
+
"arguments": [],
|
|
2133
|
+
"directives": []
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
"kind": "Field",
|
|
2137
|
+
"name": {
|
|
2138
|
+
"kind": "Name",
|
|
2139
|
+
"value": "groups"
|
|
2140
|
+
},
|
|
2141
|
+
"arguments": [],
|
|
2142
|
+
"directives": [],
|
|
2143
|
+
"selectionSet": {
|
|
2144
|
+
"kind": "SelectionSet",
|
|
2145
|
+
"selections": [
|
|
2146
|
+
{
|
|
2147
|
+
"kind": "Field",
|
|
2148
|
+
"name": {
|
|
2149
|
+
"kind": "Name",
|
|
2150
|
+
"value": "key"
|
|
2151
|
+
},
|
|
2152
|
+
"arguments": [],
|
|
2153
|
+
"directives": []
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
"kind": "Field",
|
|
2157
|
+
"name": {
|
|
2158
|
+
"kind": "Name",
|
|
2159
|
+
"value": "values"
|
|
2160
|
+
},
|
|
2161
|
+
"arguments": [],
|
|
2162
|
+
"directives": []
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
"kind": "Field",
|
|
2166
|
+
"name": {
|
|
2167
|
+
"kind": "Name",
|
|
2168
|
+
"value": "count"
|
|
2169
|
+
},
|
|
2170
|
+
"arguments": [],
|
|
2171
|
+
"directives": []
|
|
2172
|
+
}
|
|
2173
|
+
]
|
|
2174
|
+
}
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
"kind": "Field",
|
|
2178
|
+
"name": {
|
|
2179
|
+
"kind": "Name",
|
|
2180
|
+
"value": "groupsTruncated"
|
|
2181
|
+
},
|
|
2182
|
+
"arguments": [],
|
|
2183
|
+
"directives": []
|
|
2184
|
+
}
|
|
2185
|
+
]
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
]
|
|
2189
|
+
};
|
|
2190
|
+
|
|
2191
|
+
// src/modules/executions/hooks/useRunsPage.ts
|
|
2192
|
+
/**
|
|
2193
|
+
* The Runs page's data (BOFF-16690, GQL-05): one page operation on load, one
|
|
2194
|
+
* refresh operation after that, and no loading flicker on a refresh.
|
|
2195
|
+
*
|
|
2196
|
+
* Before this the page sent ExecutionsList, ExecutionStats, WorkflowRunsCount,
|
|
2197
|
+
* WorkflowDefinitions and WorkflowSearchAttributes on load and re-sent the
|
|
2198
|
+
* first three on every live update and fallback poll. Each re-read also put
|
|
2199
|
+
* the list and the stat cards back into their loading state, so the page
|
|
2200
|
+
* jumped every few seconds (CLS 0.509 on /workflows/runs in production).
|
|
2201
|
+
*
|
|
2202
|
+
* Now:
|
|
2203
|
+
*
|
|
2204
|
+
* - The first read is RunsPage: rows, stat cards, per-status counts, the
|
|
2205
|
+
* workflow filter's options and the search-attribute definitions.
|
|
2206
|
+
* - Filter changes, live updates and the fallback poll send RunsPageRefresh
|
|
2207
|
+
* (rows, stat cards and counts).
|
|
2208
|
+
* - A part shows its loading state only until it has answered for what it
|
|
2209
|
+
* shows now (the list for its current filter). Re-reading the same thing
|
|
2210
|
+
* keeps what is on screen, so a refresh never moves the page.
|
|
2211
|
+
* - The gateway checks every root field of an operation, so a person who may
|
|
2212
|
+
* not read one part is refused the whole page operation. The page then
|
|
2213
|
+
* reads each part on its own, as before, and stops re-reading the parts it
|
|
2214
|
+
* was refused (a refusal does not change by asking again). An explicit
|
|
2215
|
+
* refresh (the Refresh button, after an action) still asks for every part.
|
|
2216
|
+
*/
|
|
2217
|
+
/** What the page operation's root fields need (their @rbac). */
|
|
2218
|
+
const RUNS_PAGE_PERMISSIONS = [
|
|
2219
|
+
FLUIDGRIDS_PERMISSIONS.WORKFLOW_RUN_READ,
|
|
2220
|
+
FLUIDGRIDS_PERMISSIONS.DASHBOARD_READ,
|
|
2221
|
+
FLUIDGRIDS_PERMISSIONS.WORKFLOW_READ
|
|
2222
|
+
];
|
|
2223
|
+
/**
|
|
2224
|
+
* Whether the page operation can be answered: the host says the person holds
|
|
2225
|
+
* every permission it needs, or does not say (no host data, or still loading;
|
|
2226
|
+
* the gateway then decides). When the host knows one is missing, the page
|
|
2227
|
+
* reads each part on its own straight away instead of sending an operation
|
|
2228
|
+
* the gateway would refuse.
|
|
2229
|
+
*/
|
|
2230
|
+
function runsPageOperationPermitted(permissions) {
|
|
2231
|
+
if (!permissions.enforced || permissions.isLoading) return true;
|
|
2232
|
+
return RUNS_PAGE_PERMISSIONS.every((permission) => permissions.hasPermission(permission));
|
|
2233
|
+
}
|
|
2234
|
+
const WORKFLOW_OPTIONS_LIMIT = 100;
|
|
2235
|
+
/**
|
|
2236
|
+
* The list filter as the generated input type. `ListExecutionsInput` mirrors
|
|
2237
|
+
* `ListWorkflowRunsInput` field for field; only the enum-typed fields differ
|
|
2238
|
+
* in spelling (string unions here, generated enums there) with the same
|
|
2239
|
+
* runtime values, as `fetchRunStatusCounts` notes too.
|
|
2240
|
+
*/
|
|
2241
|
+
function asRunsInput(input) {
|
|
2242
|
+
return input;
|
|
2243
|
+
}
|
|
2244
|
+
/** The workflow filter's options: the first 100, scoped to the host product. */
|
|
2245
|
+
function runsPageWorkflowsInput(productId) {
|
|
2246
|
+
return {
|
|
2247
|
+
limit: WORKFLOW_OPTIONS_LIMIT,
|
|
2248
|
+
customFilters: productId ? { productId } : {}
|
|
2249
|
+
};
|
|
2250
|
+
}
|
|
2251
|
+
/** RunsPageRefresh's variables for a request. */
|
|
2252
|
+
function runsPageRefreshVariables(request) {
|
|
2253
|
+
const withScopedCounts = request.scopedWorkflowKey !== "";
|
|
2254
|
+
return {
|
|
2255
|
+
input: asRunsInput(request.input),
|
|
2256
|
+
countFilter: request.withCounts ? asRunsInput(statusCountFilter(request.input)) : null,
|
|
2257
|
+
withCounts: request.withCounts,
|
|
2258
|
+
scopedFilter: withScopedCounts ? asRunsInput(statusCountFilter({ workflowKey: request.scopedWorkflowKey })) : null,
|
|
2259
|
+
withScopedCounts,
|
|
2260
|
+
groupBy: [...STATUS_COUNT_GROUP_BY]
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
/** RunsPage's variables for a request. */
|
|
2264
|
+
function runsPageVariables(request, productId) {
|
|
2265
|
+
return {
|
|
2266
|
+
...runsPageRefreshVariables(request),
|
|
2267
|
+
workflows: runsPageWorkflowsInput(productId),
|
|
2268
|
+
withSearchAttributes: request.withSearchAttributes
|
|
2269
|
+
};
|
|
2270
|
+
}
|
|
2271
|
+
const NO_COUNTS = {
|
|
2272
|
+
total: null,
|
|
2273
|
+
counts: [],
|
|
2274
|
+
error: null
|
|
2275
|
+
};
|
|
2276
|
+
function countsOf(answer) {
|
|
2277
|
+
return {
|
|
2278
|
+
total: answer.total,
|
|
2279
|
+
counts: statusCountsOf(answer.groups)
|
|
2280
|
+
};
|
|
2281
|
+
}
|
|
2282
|
+
const ALL_PARTS = [
|
|
2283
|
+
"list",
|
|
2284
|
+
"stats",
|
|
2285
|
+
"statusCounts",
|
|
2286
|
+
"scopedCounts"
|
|
2287
|
+
];
|
|
2288
|
+
/** Start a read of `parts`: only the newest read of a part may write it. */
|
|
2289
|
+
function claimParts(generation, parts) {
|
|
2290
|
+
for (const part of parts) generation.current[part] += 1;
|
|
2291
|
+
return { ...generation.current };
|
|
2292
|
+
}
|
|
2293
|
+
/** Whether the read that took `ids` is still the newest read of `part`. */
|
|
2294
|
+
function isCurrent(generation, ids, part) {
|
|
2295
|
+
return ids[part] === generation.current[part];
|
|
2296
|
+
}
|
|
2297
|
+
function toError(error) {
|
|
2298
|
+
return error instanceof Error ? error : new Error(String(error));
|
|
2299
|
+
}
|
|
2300
|
+
/**
|
|
2301
|
+
* What the reads depend on (BOFF-17281): the request without
|
|
2302
|
+
* `withSearchAttributes`. The search-attribute definitions are read once, by
|
|
2303
|
+
* the page operation, and no refresh reads them, so the flag settling after
|
|
2304
|
+
* the first read is no reason to send RunsPageRefresh.
|
|
2305
|
+
*/
|
|
2306
|
+
function runsPageReadKey(request) {
|
|
2307
|
+
return JSON.stringify({
|
|
2308
|
+
input: request.input,
|
|
2309
|
+
withCounts: request.withCounts,
|
|
2310
|
+
scopedWorkflowKey: request.scopedWorkflowKey
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2313
|
+
/**
|
|
2314
|
+
* How long the first read waits for the flags to settle (BOFF-17281) before it
|
|
2315
|
+
* goes with the flags it has. The rollout gates resolve off while the flags
|
|
2316
|
+
* load, so a read sent straight away carried no per-status counts and the
|
|
2317
|
+
* page had to send RunsPageRefresh as soon as they arrived.
|
|
2318
|
+
*/
|
|
2319
|
+
const RUNS_PAGE_FLAG_WAIT_MS = 2e3;
|
|
2320
|
+
/** Keys that tell what each part is reading now. */
|
|
2321
|
+
function runsPagePartKeys(request) {
|
|
2322
|
+
const variables = runsPageRefreshVariables(request);
|
|
2323
|
+
return {
|
|
2324
|
+
list: JSON.stringify(variables.input),
|
|
2325
|
+
statusCounts: JSON.stringify(variables.countFilter),
|
|
2326
|
+
scopedCounts: JSON.stringify(variables.scopedFilter)
|
|
2327
|
+
};
|
|
2328
|
+
}
|
|
2329
|
+
function useRunsPage(request, options = {}) {
|
|
2330
|
+
const ready = options.ready ?? true;
|
|
2331
|
+
const permitted = runsPageOperationPermitted(useFluidGridsPermissions());
|
|
2332
|
+
const setStoreTotal = useExecutionsStore((state) => state.setTotal);
|
|
2333
|
+
const storeTotal = useExecutionsStore((state) => state.pagination.total);
|
|
2334
|
+
const [list, setList] = useState({
|
|
2335
|
+
response: null,
|
|
2336
|
+
key: null,
|
|
2337
|
+
error: null
|
|
2338
|
+
});
|
|
2339
|
+
const [stats, setStats] = useState({
|
|
2340
|
+
value: null,
|
|
2341
|
+
answered: false
|
|
2342
|
+
});
|
|
2343
|
+
const [statusCounts, setStatusCounts] = useState({
|
|
2344
|
+
answer: null,
|
|
2345
|
+
key: null,
|
|
2346
|
+
error: null
|
|
2347
|
+
});
|
|
2348
|
+
const [scopedCounts, setScopedCounts] = useState({
|
|
2349
|
+
answer: null,
|
|
2350
|
+
key: null,
|
|
2351
|
+
error: null
|
|
2352
|
+
});
|
|
2353
|
+
const [workflows, setWorkflows] = useState([]);
|
|
2354
|
+
const [searchAttributes, setSearchAttributes] = useState({
|
|
2355
|
+
settled: false,
|
|
2356
|
+
data: null
|
|
2357
|
+
});
|
|
2358
|
+
const [refused, setRefused] = useState(/* @__PURE__ */ new Set());
|
|
2359
|
+
const requestKey = JSON.stringify(request);
|
|
2360
|
+
const requestRef = useRef(request);
|
|
2361
|
+
useEffect(() => {
|
|
2362
|
+
requestRef.current = request;
|
|
2363
|
+
});
|
|
2364
|
+
const refusedRef = useRef(refused);
|
|
2365
|
+
useEffect(() => {
|
|
2366
|
+
refusedRef.current = refused;
|
|
2367
|
+
}, [refused]);
|
|
2368
|
+
const modeRef = useRef("page");
|
|
2369
|
+
const pageSentRef = useRef(false);
|
|
2370
|
+
const generation = useRef({
|
|
2371
|
+
list: 0,
|
|
2372
|
+
stats: 0,
|
|
2373
|
+
statusCounts: 0,
|
|
2374
|
+
scopedCounts: 0
|
|
2375
|
+
});
|
|
2376
|
+
const lastReadKey = useRef(null);
|
|
2377
|
+
const markRefused = useCallback((part, error) => {
|
|
2378
|
+
if (!isForbiddenError(error)) return;
|
|
2379
|
+
setRefused((previous) => {
|
|
2380
|
+
if (previous.has(part)) return previous;
|
|
2381
|
+
const next = new Set(previous);
|
|
2382
|
+
next.add(part);
|
|
2383
|
+
return next;
|
|
2384
|
+
});
|
|
2385
|
+
}, []);
|
|
2386
|
+
const clearRefused = useCallback((part) => {
|
|
2387
|
+
setRefused((previous) => {
|
|
2388
|
+
if (!previous.has(part)) return previous;
|
|
2389
|
+
const next = new Set(previous);
|
|
2390
|
+
next.delete(part);
|
|
2391
|
+
return next;
|
|
2392
|
+
});
|
|
2393
|
+
}, []);
|
|
2394
|
+
/** Write a page or refresh answer to every part it read. */
|
|
2395
|
+
const applyAnswer = useCallback((answer, ids, target) => {
|
|
2396
|
+
const keys = runsPagePartKeys(target);
|
|
2397
|
+
if (isCurrent(generation, ids, "list")) {
|
|
2398
|
+
setList({
|
|
2399
|
+
response: answer.workflowRuns,
|
|
2400
|
+
key: keys.list,
|
|
2401
|
+
error: null
|
|
2402
|
+
});
|
|
2403
|
+
clearRefused("list");
|
|
2404
|
+
}
|
|
2405
|
+
if (isCurrent(generation, ids, "stats")) {
|
|
2406
|
+
setStats({
|
|
2407
|
+
value: answer.dashboardSummary,
|
|
2408
|
+
answered: true
|
|
2409
|
+
});
|
|
2410
|
+
clearRefused("stats");
|
|
2411
|
+
}
|
|
2412
|
+
if (target.withCounts && answer.statusCounts && isCurrent(generation, ids, "statusCounts")) {
|
|
2413
|
+
setStatusCounts({
|
|
2414
|
+
answer: countsOf(answer.statusCounts),
|
|
2415
|
+
key: keys.statusCounts,
|
|
2416
|
+
error: null
|
|
2417
|
+
});
|
|
2418
|
+
clearRefused("statusCounts");
|
|
2419
|
+
}
|
|
2420
|
+
if (target.scopedWorkflowKey !== "" && answer.scopedCounts && isCurrent(generation, ids, "scopedCounts")) {
|
|
2421
|
+
setScopedCounts({
|
|
2422
|
+
answer: countsOf(answer.scopedCounts),
|
|
2423
|
+
key: keys.scopedCounts,
|
|
2424
|
+
error: null
|
|
2425
|
+
});
|
|
2426
|
+
clearRefused("scopedCounts");
|
|
2427
|
+
}
|
|
2428
|
+
}, [clearRefused]);
|
|
2429
|
+
/** Read the parts one by one (split mode). Resolves true when all answered. */
|
|
2430
|
+
const readParts = useCallback(async (target, parts) => {
|
|
2431
|
+
const client = getFluidGridsClient();
|
|
2432
|
+
const keys = runsPagePartKeys(target);
|
|
2433
|
+
const variables = runsPageRefreshVariables(target);
|
|
2434
|
+
const ids = claimParts(generation, parts);
|
|
2435
|
+
const reads = [];
|
|
2436
|
+
if (parts.includes("list")) reads.push(client.query({
|
|
2437
|
+
query: ExecutionsListDocument,
|
|
2438
|
+
variables: { input: variables.input },
|
|
2439
|
+
fetchPolicy: "network-only",
|
|
2440
|
+
context: { queryDeduplication: false }
|
|
2441
|
+
}).then((result) => {
|
|
2442
|
+
throwIfResultError(result);
|
|
2443
|
+
if (!isCurrent(generation, ids, "list")) return true;
|
|
2444
|
+
setList({
|
|
2445
|
+
response: result.data?.workflowRuns ?? null,
|
|
2446
|
+
key: keys.list,
|
|
2447
|
+
error: null
|
|
2448
|
+
});
|
|
2449
|
+
clearRefused("list");
|
|
2450
|
+
return true;
|
|
2451
|
+
}).catch((error) => {
|
|
2452
|
+
if (!isCurrent(generation, ids, "list")) return true;
|
|
2453
|
+
setList((previous) => ({
|
|
2454
|
+
...previous,
|
|
2455
|
+
key: keys.list,
|
|
2456
|
+
error: toError(error)
|
|
2457
|
+
}));
|
|
2458
|
+
markRefused("list", error);
|
|
2459
|
+
return false;
|
|
2460
|
+
}));
|
|
2461
|
+
if (parts.includes("stats")) reads.push(client.query({
|
|
2462
|
+
query: RunsPageStatsDocument,
|
|
2463
|
+
variables: {},
|
|
2464
|
+
fetchPolicy: "network-only",
|
|
2465
|
+
context: { queryDeduplication: false }
|
|
2466
|
+
}).then((result) => {
|
|
2467
|
+
throwIfResultError(result);
|
|
2468
|
+
if (!isCurrent(generation, ids, "stats")) return true;
|
|
2469
|
+
setStats({
|
|
2470
|
+
value: result.data?.dashboardSummary ?? null,
|
|
2471
|
+
answered: true
|
|
2472
|
+
});
|
|
2473
|
+
clearRefused("stats");
|
|
2474
|
+
return true;
|
|
2475
|
+
}).catch((error) => {
|
|
2476
|
+
if (!isCurrent(generation, ids, "stats")) return true;
|
|
2477
|
+
setStats((previous) => ({
|
|
2478
|
+
...previous,
|
|
2479
|
+
answered: true
|
|
2480
|
+
}));
|
|
2481
|
+
markRefused("stats", error);
|
|
2482
|
+
return false;
|
|
2483
|
+
}));
|
|
2484
|
+
const countRead = (part, filter, key, set) => fetchRunStatusCounts(filter).then((answer) => {
|
|
2485
|
+
if (!isCurrent(generation, ids, part)) return true;
|
|
2486
|
+
set({
|
|
2487
|
+
answer,
|
|
2488
|
+
key,
|
|
2489
|
+
error: null
|
|
2490
|
+
});
|
|
2491
|
+
clearRefused(part);
|
|
2492
|
+
return true;
|
|
2493
|
+
}).catch((error) => {
|
|
2494
|
+
if (!isCurrent(generation, ids, part)) return true;
|
|
2495
|
+
set((previous) => ({
|
|
2496
|
+
...previous,
|
|
2497
|
+
key,
|
|
2498
|
+
error: toError(error).message
|
|
2499
|
+
}));
|
|
2500
|
+
markRefused(part, error);
|
|
2501
|
+
return false;
|
|
2502
|
+
});
|
|
2503
|
+
if (parts.includes("statusCounts") && target.withCounts) reads.push(countRead("statusCounts", target.input, keys.statusCounts, setStatusCounts));
|
|
2504
|
+
if (parts.includes("scopedCounts") && target.scopedWorkflowKey !== "") reads.push(countRead("scopedCounts", { workflowKey: target.scopedWorkflowKey }, keys.scopedCounts, setScopedCounts));
|
|
2505
|
+
return (await Promise.all(reads)).every(Boolean);
|
|
2506
|
+
}, [clearRefused, markRefused]);
|
|
2507
|
+
/** The workflow filter's options, read on their own (split mode). */
|
|
2508
|
+
const readWorkflows = useCallback(async () => {
|
|
2509
|
+
try {
|
|
2510
|
+
const result = await getFluidGridsClient().query({
|
|
2511
|
+
query: WorkflowDefinitionsDocument,
|
|
2512
|
+
variables: { input: runsPageWorkflowsInput(getFluidGridsConfig().productId) },
|
|
2513
|
+
fetchPolicy: "network-only"
|
|
2514
|
+
});
|
|
2515
|
+
throwIfResultError(result);
|
|
2516
|
+
setWorkflows(result.data?.workflowDefinitions?.items ?? []);
|
|
2517
|
+
} catch {}
|
|
2518
|
+
}, []);
|
|
2519
|
+
/** The page's first read: the page operation, or each part when refused. */
|
|
2520
|
+
const readPage = useCallback(async (target) => {
|
|
2521
|
+
const ids = claimParts(generation, ALL_PARTS);
|
|
2522
|
+
const client = getFluidGridsClient();
|
|
2523
|
+
const variables = runsPageVariables(target, getFluidGridsConfig().productId);
|
|
2524
|
+
const cached = readCachedPageOperation(client, RunsPageDocument, variables);
|
|
2525
|
+
if (cached?.workflowRuns && cached.dashboardSummary) {
|
|
2526
|
+
applyAnswer(cached, ids, target);
|
|
2527
|
+
setWorkflows(cached.workflowDefinitions?.items ?? []);
|
|
2528
|
+
setSearchAttributes({
|
|
2529
|
+
settled: true,
|
|
2530
|
+
data: cached.workflowSearchAttributes ?? null
|
|
2531
|
+
});
|
|
2532
|
+
if (takeFreshPreload(RunsPageDocument, variables)) return true;
|
|
2533
|
+
}
|
|
2534
|
+
try {
|
|
2535
|
+
const result = await client.query({
|
|
2536
|
+
query: RunsPageDocument,
|
|
2537
|
+
variables,
|
|
2538
|
+
fetchPolicy: "network-only"
|
|
2539
|
+
});
|
|
2540
|
+
throwIfResultError(result);
|
|
2541
|
+
const answer = result.data;
|
|
2542
|
+
if (!answer) throw new Error("The Runs page returned no data");
|
|
2543
|
+
applyAnswer(answer, ids, target);
|
|
2544
|
+
setWorkflows(answer.workflowDefinitions?.items ?? []);
|
|
2545
|
+
setSearchAttributes({
|
|
2546
|
+
settled: true,
|
|
2547
|
+
data: answer.workflowSearchAttributes ?? null
|
|
2548
|
+
});
|
|
2549
|
+
return true;
|
|
2550
|
+
} catch {
|
|
2551
|
+
modeRef.current = "split";
|
|
2552
|
+
setSearchAttributes({
|
|
2553
|
+
settled: true,
|
|
2554
|
+
data: null
|
|
2555
|
+
});
|
|
2556
|
+
readWorkflows();
|
|
2557
|
+
return readParts(requestRef.current, ALL_PARTS);
|
|
2558
|
+
}
|
|
2559
|
+
}, [
|
|
2560
|
+
applyAnswer,
|
|
2561
|
+
readParts,
|
|
2562
|
+
readWorkflows
|
|
2563
|
+
]);
|
|
2564
|
+
/**
|
|
2565
|
+
* Parts a refresh skips because they were refused: the refusal stands for
|
|
2566
|
+
* the new request too, so it is shown for it instead of a loading state
|
|
2567
|
+
* that no read will ever end. Claiming the parts drops an older read that
|
|
2568
|
+
* would otherwise write the previous request's answer over it.
|
|
2569
|
+
*/
|
|
2570
|
+
const carryRefusals = useCallback((target, parts) => {
|
|
2571
|
+
if (parts.length === 0) return;
|
|
2572
|
+
claimParts(generation, parts);
|
|
2573
|
+
const keys = runsPagePartKeys(target);
|
|
2574
|
+
if (parts.includes("list")) setList((previous) => previous.key === keys.list ? previous : {
|
|
2575
|
+
...previous,
|
|
2576
|
+
key: keys.list
|
|
2577
|
+
});
|
|
2578
|
+
if (parts.includes("statusCounts")) setStatusCounts((previous) => previous.key === keys.statusCounts ? previous : {
|
|
2579
|
+
...previous,
|
|
2580
|
+
key: keys.statusCounts
|
|
2581
|
+
});
|
|
2582
|
+
if (parts.includes("scopedCounts")) setScopedCounts((previous) => previous.key === keys.scopedCounts ? previous : {
|
|
2583
|
+
...previous,
|
|
2584
|
+
key: keys.scopedCounts
|
|
2585
|
+
});
|
|
2586
|
+
}, []);
|
|
2587
|
+
const refresh = useCallback(async (options = {}) => {
|
|
2588
|
+
const target = requestRef.current;
|
|
2589
|
+
const skip = options.all ? /* @__PURE__ */ new Set() : refusedRef.current;
|
|
2590
|
+
const parts = ALL_PARTS.filter((part) => !skip.has(part));
|
|
2591
|
+
carryRefusals(target, ALL_PARTS.filter((part) => skip.has(part)));
|
|
2592
|
+
if (parts.length === 0) return true;
|
|
2593
|
+
if (modeRef.current === "split") return readParts(target, parts);
|
|
2594
|
+
const ids = claimParts(generation, ALL_PARTS);
|
|
2595
|
+
try {
|
|
2596
|
+
const result = await getFluidGridsClient().query({
|
|
2597
|
+
query: RunsPageRefreshDocument,
|
|
2598
|
+
variables: runsPageRefreshVariables(target),
|
|
2599
|
+
fetchPolicy: "network-only",
|
|
2600
|
+
context: { queryDeduplication: false }
|
|
2601
|
+
});
|
|
2602
|
+
throwIfResultError(result);
|
|
2603
|
+
if (!result.data) throw new Error("The Runs page returned no data");
|
|
2604
|
+
applyAnswer(result.data, ids, target);
|
|
2605
|
+
return true;
|
|
2606
|
+
} catch (error) {
|
|
2607
|
+
if (isForbiddenError(error)) {
|
|
2608
|
+
modeRef.current = "split";
|
|
2609
|
+
return readParts(target, parts);
|
|
2610
|
+
}
|
|
2611
|
+
if (isCurrent(generation, ids, "list")) {
|
|
2612
|
+
const key = runsPagePartKeys(target).list;
|
|
2613
|
+
setList((previous) => ({
|
|
2614
|
+
...previous,
|
|
2615
|
+
key,
|
|
2616
|
+
error: toError(error)
|
|
2617
|
+
}));
|
|
2618
|
+
}
|
|
2619
|
+
if (isCurrent(generation, ids, "stats")) setStats((previous) => ({
|
|
2620
|
+
...previous,
|
|
2621
|
+
answered: true
|
|
2622
|
+
}));
|
|
2623
|
+
return false;
|
|
2624
|
+
}
|
|
2625
|
+
}, [
|
|
2626
|
+
applyAnswer,
|
|
2627
|
+
carryRefusals,
|
|
2628
|
+
readParts
|
|
2629
|
+
]);
|
|
2630
|
+
const refreshStats = useCallback(async () => {
|
|
2631
|
+
if (refusedRef.current.has("stats")) return true;
|
|
2632
|
+
return readParts(requestRef.current, ["stats"]);
|
|
2633
|
+
}, [readParts]);
|
|
2634
|
+
const permittedRef = useRef(permitted);
|
|
2635
|
+
useEffect(() => {
|
|
2636
|
+
permittedRef.current = permitted;
|
|
2637
|
+
});
|
|
2638
|
+
const [waitedForFlags, setWaitedForFlags] = useState(false);
|
|
2639
|
+
useEffect(() => {
|
|
2640
|
+
if (ready || waitedForFlags) return void 0;
|
|
2641
|
+
const timer = setTimeout(() => setWaitedForFlags(true), RUNS_PAGE_FLAG_WAIT_MS);
|
|
2642
|
+
return () => clearTimeout(timer);
|
|
2643
|
+
}, [ready, waitedForFlags]);
|
|
2644
|
+
const mayStart = ready || waitedForFlags;
|
|
2645
|
+
const readKey = runsPageReadKey(request);
|
|
2646
|
+
useEffect(() => {
|
|
2647
|
+
if (!pageSentRef.current && !mayStart) return;
|
|
2648
|
+
if (lastReadKey.current === readKey) return;
|
|
2649
|
+
lastReadKey.current = readKey;
|
|
2650
|
+
const target = JSON.parse(requestKey);
|
|
2651
|
+
if (pageSentRef.current) refresh({ all: false });
|
|
2652
|
+
else if (permittedRef.current) readPage(target);
|
|
2653
|
+
else {
|
|
2654
|
+
modeRef.current = "split";
|
|
2655
|
+
setSearchAttributes({
|
|
2656
|
+
settled: true,
|
|
2657
|
+
data: null
|
|
2658
|
+
});
|
|
2659
|
+
readWorkflows();
|
|
2660
|
+
readParts(target, ALL_PARTS);
|
|
2661
|
+
}
|
|
2662
|
+
pageSentRef.current = true;
|
|
2663
|
+
}, [
|
|
2664
|
+
readKey,
|
|
2665
|
+
requestKey,
|
|
2666
|
+
mayStart,
|
|
2667
|
+
readPage,
|
|
2668
|
+
refresh,
|
|
2669
|
+
readParts,
|
|
2670
|
+
readWorkflows
|
|
2671
|
+
]);
|
|
2672
|
+
const keys = runsPagePartKeys(request);
|
|
2673
|
+
const total = list.response?.total ?? 0;
|
|
2674
|
+
useEffect(() => {
|
|
2675
|
+
if (total !== storeTotal) setStoreTotal(total);
|
|
2676
|
+
}, [
|
|
2677
|
+
total,
|
|
2678
|
+
storeTotal,
|
|
2679
|
+
setStoreTotal
|
|
2680
|
+
]);
|
|
2681
|
+
const countsFor = (state, enabled, key) => {
|
|
2682
|
+
if (!enabled) return NO_COUNTS;
|
|
2683
|
+
const answer = state.key === key ? state.answer : null;
|
|
2684
|
+
return {
|
|
2685
|
+
total: answer?.total ?? null,
|
|
2686
|
+
counts: answer?.counts ?? [],
|
|
2687
|
+
error: state.key === key ? state.error : null
|
|
2688
|
+
};
|
|
2689
|
+
};
|
|
2690
|
+
return {
|
|
2691
|
+
executions: list.response?.items ?? [],
|
|
2692
|
+
total,
|
|
2693
|
+
totalCapped: list.response?.totalCapped ?? false,
|
|
2694
|
+
hasMore: list.response?.hasMore ?? false,
|
|
2695
|
+
loading: list.key !== keys.list,
|
|
2696
|
+
error: list.error,
|
|
2697
|
+
stats: stats.value,
|
|
2698
|
+
statsLoading: !stats.answered,
|
|
2699
|
+
statusCounts: countsFor(statusCounts, request.withCounts, keys.statusCounts),
|
|
2700
|
+
scopedCounts: countsFor(scopedCounts, request.scopedWorkflowKey !== "", keys.scopedCounts),
|
|
2701
|
+
workflows,
|
|
2702
|
+
searchAttributes,
|
|
2703
|
+
listRefused: refused.has("list"),
|
|
2704
|
+
refresh,
|
|
2705
|
+
refreshStats
|
|
2706
|
+
};
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
export { RunsPageStatsDocument as a, RunsPageDocument as i, useRunsPage as n, RunsPageRefreshDocument as r, runsPageVariables as t };
|