From 88d2a172c314eba607f04812b482ff6f2848d230 Mon Sep 17 00:00:00 2001 From: Mathieu Larose Date: Mon, 23 Sep 2024 12:45:59 -0400 Subject: [PATCH] feat: View Container Metrics action visible based on new graphql field Use the new GraphQL hasRunMetricsEnabled field created in #24662 to condition visibility of run metrics in action menu --- .../dagster-ui/packages/ui-core/client.json | 22 +++++++++---------- .../types/InstigationTick.types.ts | 3 ++- .../types/PartitionRunList.types.ts | 3 ++- .../pipelines/types/PipelineRunsRoot.types.ts | 3 ++- .../ui-core/src/runs/RunActionsMenu.tsx | 6 ++--- .../ui-core/src/runs/RunFragments.tsx | 1 + .../ui-core/src/runs/RunHeaderActions.tsx | 3 +-- .../ui-core/src/runs/RunTableRunFragment.tsx | 1 + .../packages/ui-core/src/runs/RunTag.tsx | 1 - .../__fixtures__/RunActionsMenu.fixtures.tsx | 1 + .../types/RunActionButtonsTestQuery.types.ts | 3 ++- .../src/runs/types/RunActionsMenu.types.ts | 4 +++- .../src/runs/types/RunFragments.types.ts | 2 ++ .../ui-core/src/runs/types/RunRoot.types.ts | 3 ++- .../runs/types/RunTableRunFragment.types.ts | 1 + .../src/runs/types/RunsFeedRoot.types.ts | 3 ++- .../src/runs/types/RunsFeedRow.types.ts | 1 + .../types/usePaginatedRunsTableRuns.types.ts | 3 ++- .../src/schedules/types/ScheduleRoot.types.ts | 3 ++- .../sensors/types/SensorPreviousRuns.types.ts | 3 ++- 20 files changed, 43 insertions(+), 27 deletions(-) diff --git a/js_modules/dagster-ui/packages/ui-core/client.json b/js_modules/dagster-ui/packages/ui-core/client.json index c332b6dd5d277..3716702db5ebc 100644 --- a/js_modules/dagster-ui/packages/ui-core/client.json +++ b/js_modules/dagster-ui/packages/ui-core/client.json @@ -72,7 +72,7 @@ "InstanceConfigHasInfo": "771982a9ee439781255f82986d55aa6a75ab2929d784f2cd27b40f537baf7f27", "InstanceWarningQuery": "7ead177b08f678cb85bfebac63b1b25fff6c60c50c862a3c3d20d8d701463823", "InstanceRunQueueConfig": "51de03303f49487cecbfbcd9a6624b8999779a88412c035aced402cb295e40c5", - "LaunchedRunListQuery": "e4ae437ebe25fa33cb6b3f658cf90b5c9ce035ae9c03ceb519129a61c585325a", + "LaunchedRunListQuery": "c4a50f5d4e56aff9965413816c16db2489bf487d5dacd786bfadfad508f8f32b", "SelectedTickQuery": "4a6a1911d0769b8b5bb17ed1415d3691da3d029d6760ab42dc56de6431fc1fb6", "TickHistoryQuery": "4dff0791129120937abefb56bf6b21102cd3b67f81f7285763f01d6467f850e8", "OverviewJobsQuery": "d3bc0af22121e31483422a5681cf80671a6cdae56da120acd353c042c07fc45b", @@ -103,11 +103,11 @@ "AddDynamicPartitionMutation": "09fbfa963ad43c7fecfc8e4f780e1ca98ffcea9f0b04e916c78061667cb250eb", "JobBackfillsQuery": "520e31190a97fd72e51daf0e8f9a6f718afaa30ce223fb6f767f8d56c08716cd", "PartitionsStatusQuery": "b51624d0ee6d3afd7bfd67307b3391318d53e7e3d977d3605f8a405d38c5969e", - "PartitionRunListQuery": "a767fc2c778f8dc83fe1c265924cd6e5944e3e0daf6a94b14eda6f45a409f4ec", + "PartitionRunListQuery": "259838c720999c3fe679ef5c302d5cfb62a970202ee03cdd6cd25ac3dea45046", "PartitionStepStatusPipelineQuery": "d5ef608096052079835b7080ed72204eab4168a32953d065b398ae7de975c0fb", "PartitionStepLoaderQuery": "c81bb54e0d99fe562bdeab9ae126f737c827cb034601c62cd7a6962ac93a9e48", "PipelineExplorerRootQuery": "f351896aa934dd97af817742b8d069bd5876a9315933e98aa988931c90ad17c2", - "PipelineRunsRootQuery": "1bd4f2bf438e93ad548322f890922479027e7636517b360fd8910a12600c5f95", + "PipelineRunsRootQuery": "3ed2a4c2669f29ed627eb12c6d95beb7d7c6d87a4914938ff83da8f174c61695", "SidebarPipelineOpQuery": "e7c81b4abaefc0eeea9128b4e39c74a1c68d7b28f154ac5ad9cd2d5182d48d5f", "SidebarGraphOpQuery": "c53856856bea89e1eb944ab02f6e175a8dbccc99ee4c8600f0df96e05535be89", "SidebarOpGraphsQuery": "3feca8de1ac2e1f479a0a6b88b76e731da4162cb717f7174e5f232527cc6ce52", @@ -120,24 +120,24 @@ "RunLogsQuery": "a7e61774ee31f4b2f9c2354ce17ed62b14b404a11de9a576d66702b5664a059e", "QueuedRunCriteriaQuery": "da19aeed8a0a7e6f47619c6ba9efd721345481d8f08223282ea774e468400f21", "QueueDaemonStatusQuery": "aa51c596ee907346e60e2fe173bba10ae2ead067d45109225a2cd400a2278841", - "PipelineEnvironmentQuery": "762f0cd2639e98c470cecdb3d2f7ca4609bd77be7f916e0134021bd0b589da59", + "PipelineEnvironmentQuery": "3b668b028997fb35b17b4d8a90a18b78dd8a70910f2c12aac63065c0584e3a10", "RunAssetChecksQuery": "6946372fc625c6aba249a54be1943c0858c8efbd5e6f5c64c55723494dc199e4", "RunAssetsQuery": "53c1e7814d451dfd58fb2427dcb326a1e9628c8bbc91b3b9c76f8d6c7b75e278", "RunTabsCountQuery": "5fe1760a3bf0494fb98e3c09f31add5138f9f31d59507a8b25186e2103bebbb4", - "RunRootQuery": "b6d9cd067c92c1608b185d8386a54867378dfdbc4caea5e7e1799699031e40b0", + "RunRootQuery": "1aa4561b33c2cfb079d7a3ff284096fc3208a46dee748a24c7af827a2cb22919", "RunStatsQuery": "75e80f740a79607de9e1152f9b7074d319197fbc219784c767c1abd5553e9a49", "LaunchPipelineExecution": "292088c4a697aca6be1d3bbc0cfc45d8a13cdb2e75cfedc64b68c6245ea34f89", "Delete": "3c61c79b99122910e754a8863e80dc5ed479a0c23cc1a9d9878d91e603fc0dfe", "Terminate": "67acf403eb320a93c9a9aa07f675a1557e0887d499cd5598f1d5ff360afc15c0", "LaunchPipelineReexecution": "d21e4ecaf3d1d163c4772f1d847dbdcbdaa9a40e6de0808a064ae767adf0c311", - "RunsFeedRootQuery": "fbfc82cccaebc1698305767c04c4dc16ed15b7a272342135d5a83745ffece37e", - "RunFeedTabsCountQuery": "fe1a07dfc152faddc4fd8936aee1f856b8d8308edf8078bdaa4e5cd111e044cc", + "RunsFeedRootQuery": "ef8eb6ca144d661c6bcd409ed878551851f15dd1c0aa8c03ee9c68c1c4c301d1", + "RunFeedTabsCountQuery": "5ddccded028ae94b64bda3c2b850bcc8f384de9851c0dd393f158b2a53469262", "RunTagKeysQuery": "833a405f7cb8f30c0901bc8a272edb51ac5281ebdf563e3017eace5d6976b2a9", "RunTagValuesQuery": "0c0a9998c215bb801eb0adcd5449c0ac4cf1e8efbc6d0fcc5fb6d76fcc95cb92", "ScheduledRunsListQuery": "2650d8ebdfc444fe76fcf8acd9ff54f9ecacdb680b1d83e3f487cb71dd0c7eae", "TerminateRunIdsQuery": "d38573af47f3ab2f2b11d90cb85ce8426307e2384e67a5b20e2bf67d5c1054bb", - "RunActionButtonsTestQuery": "a10ee12da7843c87453578a2723bd3f9db19215ad9f50ac897d0979ac6187365", - "RunsRootQuery": "1e4b08de38e10b8cfd771e756150925d8925d5cdb87650397782f6f030399901", + "RunActionButtonsTestQuery": "d85a7e0201a27eb36be5a7471d2724fe5a68b7257e6635f54f120fc40f8169c0", + "RunsRootQuery": "091646e47ecea81ba4765a3f2cead18880b09ee400d1d7e9dcb6e194ee364e51", "OngoingRunTimelineQuery": "055420e85ba799b294bab52c01d3f4a4470580606a40483031c35777d88d527f", "CompletedRunTimelineQuery": "a551b5ebeb919ea7ea4ca74385d3711d6a7e4f0e4042c04ab43bf9b939f4975c", "FutureTicksQuery": "9b947053273ecaa20ef19df02f0aa8e6f33b8a1628175987670e3c73a350e640", @@ -147,7 +147,7 @@ "ResetSchedule": "4de0dab719e737defe9787ab0b0bcef44f5384c92b2dd1c0bc0942643681b09b", "SchedulePartitionStatusQuery": "f5440153ccc2480dfdd8c6a7e9371c7276d1d27016e3820c0ba1488523e55d5b", "ScheduleRootQuery": "b54dfb64f816baa5c52c4676dcbd3808477130cab5237a5b96b988ec002adafc", - "PreviousRunsForScheduleQuery": "7955ced58f846514ce4272707e9682b6bd66f53a26b4f6ff3754f1581f5ef92f", + "PreviousRunsForScheduleQuery": "0ffc329d3c65a2f7a29553bd3a72f8e8adb4b3a10944221b4a3c68335fad1d31", "ScheduleStateQuery": "75bc752d4f1df0fc2829736c14a4c2f707981571eb83a9139fa7048d202b3491", "ScheduleTickConfigQuery": "acdec3206ff12d652fe6657c8c51202a65b652b9575625d1f024014bbb828788", "SearchPrimaryQuery": "5d98265169496aabdee190894e504f0dd6205c3a8be462c5eac2a6c9c0c75f4a", @@ -157,7 +157,7 @@ "StartSensor": "d091651f745822f99d00968a3d5bd8bc68c11061bdcb2391d06f5ef6f5775ed9", "StopRunningSensor": "810e2b80630b6c8f5a037fbf31eb2d8ece51d4168973270e6d2249e45d064b81", "ResetSensor": "fba64da1f1979a7c53b618ba02c58cb72bd20c06220eeeef0318b15b502e3783", - "PreviousRunsForSensorQuery": "f35e444f6c30827ce07db188568d5e62537b0f47e4b7e75d1b442e42c6353552", + "PreviousRunsForSensorQuery": "11280246962f31faf7d5e8a479dd3e97bdfe074bb64a56a76ff436eda018d5b6", "SensorRootQuery": "fd32c8557a75c273133137c289091357635f3be0af17b9a57b052087f8e9d023", "SensorAssetSelectionQuery": "a3410d20906553473a54e9045ecb19e92d08defefc17c2d9f1802338147ed470", "SensorStateQuery": "867ed8f85db89c801fcd6f099356971c9c8a64ce52e6c61e6b73dc18680439aa", diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationTick.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationTick.types.ts index d0bed7caadfd1..e6e9038a68960 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationTick.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationTick.types.ts @@ -51,6 +51,7 @@ export type LaunchedRunListQuery = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; mode: string; rootRunId: string | null; parentRunId: string | null; @@ -78,4 +79,4 @@ export type LaunchedRunListQuery = { }; }; -export const LaunchedRunListQueryVersion = 'e4ae437ebe25fa33cb6b3f658cf90b5c9ce035ae9c03ceb519129a61c585325a'; +export const LaunchedRunListQueryVersion = 'c4a50f5d4e56aff9965413816c16db2489bf487d5dacd786bfadfad508f8f32b'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionRunList.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionRunList.types.ts index 01077d27f87ee..e0d50db812cad 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionRunList.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionRunList.types.ts @@ -31,6 +31,7 @@ export type PartitionRunListQuery = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; mode: string; rootRunId: string | null; parentRunId: string | null; @@ -58,4 +59,4 @@ export type PartitionRunListQuery = { }; }; -export const PartitionRunListQueryVersion = 'a767fc2c778f8dc83fe1c265924cd6e5944e3e0daf6a94b14eda6f45a409f4ec'; +export const PartitionRunListQueryVersion = '259838c720999c3fe679ef5c302d5cfb62a970202ee03cdd6cd25ac3dea45046'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineRunsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineRunsRoot.types.ts index 3818d204f623a..7f418c399f1f6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineRunsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineRunsRoot.types.ts @@ -33,6 +33,7 @@ export type PipelineRunsRootQuery = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; mode: string; rootRunId: string | null; parentRunId: string | null; @@ -60,4 +61,4 @@ export type PipelineRunsRootQuery = { }; }; -export const PipelineRunsRootQueryVersion = '1bd4f2bf438e93ad548322f890922479027e7636517b360fd8910a12600c5f95'; +export const PipelineRunsRootQueryVersion = '3ed2a4c2669f29ed627eb12c6d95beb7d7c6d87a4914938ff83da8f174c61695'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionsMenu.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionsMenu.tsx index 9a0be7ba2a908..11db2a009d32f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionsMenu.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionsMenu.tsx @@ -23,7 +23,6 @@ import {DeletionDialog} from './DeletionDialog'; import {ReexecutionDialog} from './ReexecutionDialog'; import {RunConfigDialog} from './RunConfigDialog'; import {doneStatuses, failedStatuses} from './RunStatuses'; -import {DagsterTag} from './RunTag'; import {RunTags} from './RunTags'; import {RunsQueryRefetchContext} from './RunUtils'; import {RunFilterToken} from './RunsFilterInput'; @@ -92,8 +91,7 @@ export const RunActionsMenu = React.memo(({run, onAddTag, anchorLabel}: Props) = const pipelineRun = data?.pipelineRunOrError?.__typename === 'Run' ? data?.pipelineRunOrError : null; const runConfigYaml = pipelineRun?.runConfigYaml; - const runMetricsEnabled = run.tags.some((t) => t.key === DagsterTag.RunMetrics); - + const runMetricsEnabled = run.hasRunMetricsEnabled; const repoMatch = useRepositoryForRunWithParentSnapshot(pipelineRun); const jobError = useJobAvailabilityErrorForRun({ ...run, @@ -518,6 +516,7 @@ export const RUN_ACTIONS_MENU_RUN_FRAGMENT = gql` repositoryName repositoryLocationName } + hasRunMetricsEnabled } `; @@ -537,6 +536,7 @@ export const PIPELINE_ENVIRONMENT_QUERY = gql` repositoryName repositoryLocationName } + hasRunMetricsEnabled } } } diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunFragments.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunFragments.tsx index 214ba81ad0cf7..c0ebb65c183fd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunFragments.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunFragments.tsx @@ -17,6 +17,7 @@ export const RUN_FRAGMENT = gql` hasReExecutePermission hasTerminatePermission hasDeletePermission + hasRunMetricsEnabled status mode tags { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunHeaderActions.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunHeaderActions.tsx index 38db35889aefd..e885bf7cbd8db 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunHeaderActions.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunHeaderActions.tsx @@ -7,7 +7,6 @@ import {DeletionDialog} from './DeletionDialog'; import {QueuedRunCriteriaDialog} from './QueuedRunCriteriaDialog'; import {RunConfigDialog} from './RunConfigDialog'; import {doneStatuses} from './RunStatuses'; -import {DagsterTag} from './RunTag'; import {RunsQueryRefetchContext} from './RunUtils'; import {TerminationDialog} from './TerminationDialog'; import {RunFragment} from './types/RunFragments.types'; @@ -35,7 +34,7 @@ type VisibleDialog = export const RunHeaderActions = ({run, isJob}: {run: RunFragment; isJob: boolean}) => { const {runConfigYaml} = run; - const runMetricsEnabled = run.tags.some((t) => t.key === DagsterTag.RunMetrics); + const runMetricsEnabled = run.hasRunMetricsEnabled; const [visibleDialog, setVisibleDialog] = useState(null); diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTableRunFragment.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTableRunFragment.tsx index 74f5178894af0..a3063a3977c82 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTableRunFragment.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTableRunFragment.tsx @@ -11,6 +11,7 @@ export const RUN_TABLE_RUN_FRAGMENT = gql` hasReExecutePermission hasTerminatePermission hasDeletePermission + hasRunMetricsEnabled mode rootRunId parentRunId diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTag.tsx index e71ff0b6af6b4..71ab7cc54f9d2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTag.tsx @@ -33,7 +33,6 @@ export enum DagsterTag { SnapshotID = 'dagster/snapshot_id', // This only exists on the client, not the server. ReportingUser = 'dagster/reporting_user', User = 'user', - RunMetrics = 'dagster/run_metrics', // Hidden tags (using ".dagster" HIDDEN_TAG_PREFIX) RepositoryLabelTag = '.dagster/repository', diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__fixtures__/RunActionsMenu.fixtures.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__fixtures__/RunActionsMenu.fixtures.tsx index 1bccdafca8dac..3750210614ccb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__fixtures__/RunActionsMenu.fixtures.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__fixtures__/RunActionsMenu.fixtures.tsx @@ -34,6 +34,7 @@ export const buildRunActionsMenuFragment = ({hasReExecutePermission}: RunConfigI canTerminate: true, hasDeletePermission: true, hasReExecutePermission, + hasRunMetricsEnabled: true, hasTerminatePermission: true, mode: 'default', rootRunId: 'abcdef12', diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/types/RunActionButtonsTestQuery.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/types/RunActionButtonsTestQuery.types.ts index 806cee4aee446..ea344cf423ea4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/types/RunActionButtonsTestQuery.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/types/RunActionButtonsTestQuery.types.ts @@ -17,6 +17,7 @@ export type RunActionButtonsTestQuery = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; status: Types.RunStatus; mode: string; rootRunId: string | null; @@ -76,4 +77,4 @@ export type RunActionButtonsTestQuery = { | {__typename: 'RunNotFoundError'}; }; -export const RunActionButtonsTestQueryVersion = 'a10ee12da7843c87453578a2723bd3f9db19215ad9f50ac897d0979ac6187365'; +export const RunActionButtonsTestQueryVersion = 'd85a7e0201a27eb36be5a7471d2724fe5a68b7257e6635f54f120fc40f8169c0'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunActionsMenu.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunActionsMenu.types.ts index 7e64c684a4bf7..0ceeab63acc0d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunActionsMenu.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunActionsMenu.types.ts @@ -13,6 +13,7 @@ export type RunActionsMenuRunFragment = { status: Types.RunStatus; pipelineName: string; pipelineSnapshotId: string | null; + hasRunMetricsEnabled: boolean; assetSelection: Array<{__typename: 'AssetKey'; path: Array}> | null; assetCheckSelection: Array<{ __typename: 'AssetCheckhandle'; @@ -42,6 +43,7 @@ export type PipelineEnvironmentQuery = { pipelineSnapshotId: string | null; runConfigYaml: string; parentPipelineSnapshotId: string | null; + hasRunMetricsEnabled: boolean; repositoryOrigin: { __typename: 'RepositoryOrigin'; id: string; @@ -52,4 +54,4 @@ export type PipelineEnvironmentQuery = { | {__typename: 'RunNotFoundError'}; }; -export const PipelineEnvironmentQueryVersion = '762f0cd2639e98c470cecdb3d2f7ca4609bd77be7f916e0134021bd0b589da59'; +export const PipelineEnvironmentQueryVersion = '3b668b028997fb35b17b4d8a90a18b78dd8a70910f2c12aac63065c0584e3a10'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunFragments.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunFragments.types.ts index 4e9d85715451c..ed63240aa621b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunFragments.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunFragments.types.ts @@ -10,6 +10,7 @@ export type RunFragment = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; status: Types.RunStatus; mode: string; rootRunId: string | null; @@ -3112,6 +3113,7 @@ export type RunPageFragment = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; status: Types.RunStatus; mode: string; rootRunId: string | null; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunRoot.types.ts index 1600a5f9cc9b7..d32da61f71afd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunRoot.types.ts @@ -19,6 +19,7 @@ export type RunRootQuery = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; status: Types.RunStatus; mode: string; rootRunId: string | null; @@ -78,4 +79,4 @@ export type RunRootQuery = { | {__typename: 'RunNotFoundError'}; }; -export const RunRootQueryVersion = 'b6d9cd067c92c1608b185d8386a54867378dfdbc4caea5e7e1799699031e40b0'; +export const RunRootQueryVersion = '1aa4561b33c2cfb079d7a3ff284096fc3208a46dee748a24c7af827a2cb22919'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTableRunFragment.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTableRunFragment.types.ts index 7c1b2fbb15913..c8a7ce646f720 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTableRunFragment.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTableRunFragment.types.ts @@ -11,6 +11,7 @@ export type RunTableRunFragment = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; mode: string; rootRunId: string | null; parentRunId: string | null; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFeedRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFeedRoot.types.ts index 6e69a7ee0bc8c..ddaf3a80c8bed 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFeedRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFeedRoot.types.ts @@ -79,6 +79,7 @@ export type RunsFeedRootQuery = { status: Types.RunStatus; pipelineName: string; pipelineSnapshotId: string | null; + hasRunMetricsEnabled: boolean; repositoryOrigin: { __typename: 'RepositoryOrigin'; id: string; @@ -97,4 +98,4 @@ export type RunsFeedRootQuery = { }; }; -export const RunsFeedRootQueryVersion = 'fbfc82cccaebc1698305767c04c4dc16ed15b7a272342135d5a83745ffece37e'; +export const RunsFeedRootQueryVersion = 'ef8eb6ca144d661c6bcd409ed878551851f15dd1c0aa8c03ee9c68c1c4c301d1'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFeedRow.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFeedRow.types.ts index 5af75f8a74002..106464c6c643c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFeedRow.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFeedRow.types.ts @@ -55,6 +55,7 @@ export type RunsFeedTableEntryFragment_Run = { status: Types.RunStatus; pipelineName: string; pipelineSnapshotId: string | null; + hasRunMetricsEnabled: boolean; repositoryOrigin: { __typename: 'RepositoryOrigin'; id: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/usePaginatedRunsTableRuns.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/usePaginatedRunsTableRuns.types.ts index 8c3ae34596bb7..d2020d6ec30a2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/usePaginatedRunsTableRuns.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/usePaginatedRunsTableRuns.types.ts @@ -33,6 +33,7 @@ export type RunsRootQuery = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; mode: string; rootRunId: string | null; parentRunId: string | null; @@ -60,4 +61,4 @@ export type RunsRootQuery = { }; }; -export const RunsRootQueryVersion = '1e4b08de38e10b8cfd771e756150925d8925d5cdb87650397782f6f030399901'; +export const RunsRootQueryVersion = '091646e47ecea81ba4765a3f2cead18880b09ee400d1d7e9dcb6e194ee364e51'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleRoot.types.ts index 1e6a5718bc5b1..756398f1b90fe 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleRoot.types.ts @@ -135,6 +135,7 @@ export type PreviousRunsForScheduleQuery = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; mode: string; rootRunId: string | null; parentRunId: string | null; @@ -164,4 +165,4 @@ export type PreviousRunsForScheduleQuery = { export const ScheduleRootQueryVersion = 'b54dfb64f816baa5c52c4676dcbd3808477130cab5237a5b96b988ec002adafc'; -export const PreviousRunsForScheduleQueryVersion = '7955ced58f846514ce4272707e9682b6bd66f53a26b4f6ff3754f1581f5ef92f'; +export const PreviousRunsForScheduleQueryVersion = '0ffc329d3c65a2f7a29553bd3a72f8e8adb4b3a10944221b4a3c68335fad1d31'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorPreviousRuns.types.ts b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorPreviousRuns.types.ts index 8f5a2ac750d50..ff292d51499a1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorPreviousRuns.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorPreviousRuns.types.ts @@ -24,6 +24,7 @@ export type PreviousRunsForSensorQuery = { hasReExecutePermission: boolean; hasTerminatePermission: boolean; hasDeletePermission: boolean; + hasRunMetricsEnabled: boolean; mode: string; rootRunId: string | null; parentRunId: string | null; @@ -51,4 +52,4 @@ export type PreviousRunsForSensorQuery = { }; }; -export const PreviousRunsForSensorQueryVersion = 'f35e444f6c30827ce07db188568d5e62537b0f47e4b7e75d1b442e42c6353552'; +export const PreviousRunsForSensorQueryVersion = '11280246962f31faf7d5e8a479dd3e97bdfe074bb64a56a76ff436eda018d5b6';