diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetGraphJobSidebar.types.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetGraphJobSidebar.types.ts index f6f0bbff6f4fd..51e180ee68456 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetGraphJobSidebar.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetGraphJobSidebar.types.ts @@ -89,6 +89,16 @@ export type AssetGraphSidebarQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/SidebarAssetInfo.types.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/SidebarAssetInfo.types.ts index bcb4a49dd2791..26db65fd75aad 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/SidebarAssetInfo.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/SidebarAssetInfo.types.ts @@ -71,6 +71,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -829,6 +839,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2095,6 +2115,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3361,6 +3391,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4618,6 +4658,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -5890,6 +5940,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7156,6 +7216,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8422,6 +8492,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -9679,6 +9759,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -10951,6 +11041,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -12217,6 +12317,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -13483,6 +13593,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -14740,6 +14860,16 @@ export type SidebarAssetFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -16008,6 +16138,16 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -16775,6 +16915,20 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -18047,6 +18201,20 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -19319,6 +19487,20 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -20582,6 +20764,16 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -21859,6 +22051,20 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -23131,6 +23337,20 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -24403,6 +24623,20 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -25666,6 +25900,16 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -26943,6 +27187,20 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -28215,6 +28473,20 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -29487,6 +29759,20 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -30750,6 +31036,16 @@ export type SidebarAssetQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/GetEvaluationsQuery.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/GetEvaluationsQuery.types.ts index 45cd4e4750a26..cb432e3a3a56d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/GetEvaluationsQuery.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/GetEvaluationsQuery.types.ts @@ -80,6 +80,16 @@ export type SpecificPartitionAssetConditionEvaluationNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -221,6 +231,16 @@ export type UnpartitionedAssetConditionEvaluationNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -459,6 +479,16 @@ export type AssetConditionEvaluationRecordFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -619,6 +649,16 @@ export type AssetConditionEvaluationRecordFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -859,6 +899,20 @@ export type GetEvaluationsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1025,6 +1079,20 @@ export type GetEvaluationsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1246,6 +1314,16 @@ export type GetEvaluationsSpecificPartitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1406,6 +1484,16 @@ export type GetEvaluationsSpecificPartitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/AssetCheckDetailModal.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/AssetCheckDetailModal.types.ts index f5874ac16cf6a..1e9ca47c78d12 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/AssetCheckDetailModal.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/AssetCheckDetailModal.types.ts @@ -86,6 +86,16 @@ export type AssetCheckExecutionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -251,6 +261,16 @@ export type AssetCheckDetailsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/AssetChecks.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/AssetChecks.types.ts index ed2defd73cbe1..eb918837faa7b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/AssetChecks.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/AssetChecks.types.ts @@ -113,6 +113,20 @@ export type AssetChecksQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/VirtualizedAssetCheckTable.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/VirtualizedAssetCheckTable.types.ts index 7b7f95ccb13c3..07a4c7a91763a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/VirtualizedAssetCheckTable.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/types/VirtualizedAssetCheckTable.types.ts @@ -91,6 +91,16 @@ export type AssetCheckTableFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/lineage/types/useColumnLineageDataForAssets.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/lineage/types/useColumnLineageDataForAssets.types.ts index 39c6ffec11e59..31fccd5ed9460 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/lineage/types/useColumnLineageDataForAssets.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/lineage/types/useColumnLineageDataForAssets.types.ts @@ -25,6 +25,7 @@ export type AssetColumnLineageQuery = { | {__typename: 'PathMetadataEntry'; label: string} | {__typename: 'PipelineRunMetadataEntry'; label: string} | {__typename: 'PythonArtifactMetadataEntry'; label: string} + | {__typename: 'SouceCodeLocationsMetadataEntry'; label: string} | {__typename: 'TableColumnLineageMetadataEntry'; label: string} | {__typename: 'TableMetadataEntry'; label: string} | { @@ -60,6 +61,7 @@ export type AssetColumnLineageQuery = { | {__typename: 'PathMetadataEntry'; label: string} | {__typename: 'PipelineRunMetadataEntry'; label: string} | {__typename: 'PythonArtifactMetadataEntry'; label: string} + | {__typename: 'SouceCodeLocationsMetadataEntry'; label: string} | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetMetadata.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetMetadata.types.ts index 3604c77774754..77235895c4737 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetMetadata.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetMetadata.types.ts @@ -67,6 +67,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -230,6 +240,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1496,6 +1516,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2762,6 +2792,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4019,6 +4059,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -5291,6 +5341,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -6557,6 +6617,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7823,6 +7893,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -9080,6 +9160,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -10352,6 +10442,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -11618,6 +11718,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -12884,6 +12994,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -14141,6 +14261,16 @@ export type AssetNodeOpMetadataFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetNodeDefinition.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetNodeDefinition.types.ts index a458939fdb7e9..11b1dab44204c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetNodeDefinition.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetNodeDefinition.types.ts @@ -661,6 +661,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -824,6 +834,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2090,6 +2110,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3356,6 +3386,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4613,6 +4653,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -5885,6 +5935,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7151,6 +7211,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8417,6 +8487,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -9674,6 +9754,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -10946,6 +11036,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -12212,6 +12312,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -13478,6 +13588,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -14735,6 +14855,16 @@ export type AssetNodeDefinitionFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetPartitionDetail.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetPartitionDetail.types.ts index e77b97b0e45fd..833de622be15f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetPartitionDetail.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetPartitionDetail.types.ts @@ -118,6 +118,16 @@ export type AssetPartitionDetailQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -301,6 +311,16 @@ export type AssetPartitionDetailQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetView.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetView.types.ts index c08424fc04ce9..b2ae6f32a90eb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetView.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AssetView.types.ts @@ -725,6 +725,16 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -902,6 +912,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2178,6 +2202,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3454,6 +3492,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4717,6 +4769,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -6001,6 +6067,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7277,6 +7357,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8553,6 +8647,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -9816,6 +9924,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -11100,6 +11222,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -12376,6 +12512,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -13652,6 +13802,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -14915,6 +15079,20 @@ export type AssetViewDefinitionQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -16800,6 +16978,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -16963,6 +17151,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -18229,6 +18427,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -19495,6 +19703,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -20752,6 +20970,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -22024,6 +22252,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -23290,6 +23528,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -24556,6 +24804,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -25813,6 +26071,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -27085,6 +27353,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -28351,6 +28629,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -29617,6 +29905,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -30874,6 +31172,16 @@ export type AssetViewDefinitionNodeFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useLatestPartitionEvents.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useLatestPartitionEvents.types.ts index ec528ac9ad1ec..42b60c482396b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useLatestPartitionEvents.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useLatestPartitionEvents.types.ts @@ -88,6 +88,16 @@ export type AssetOverviewMetadataEventsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -244,6 +254,16 @@ export type AssetOverviewMetadataEventsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useRecentAssetEvents.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useRecentAssetEvents.types.ts index aa387e79c00c6..a9ca6bf00951b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useRecentAssetEvents.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useRecentAssetEvents.types.ts @@ -90,6 +90,16 @@ export type AssetMaterializationFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -254,6 +264,16 @@ export type AssetObservationFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -437,6 +457,16 @@ export type AssetEventsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -615,6 +645,16 @@ export type AssetEventsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/dagstertype/types/DagsterType.types.ts b/js_modules/dagster-ui/packages/ui-core/src/dagstertype/types/DagsterType.types.ts index 15c2fa8932df7..810d2c79126c7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/dagstertype/types/DagsterType.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/dagstertype/types/DagsterType.types.ts @@ -95,6 +95,16 @@ export type DagsterTypeFragment_ListDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1356,6 +1366,16 @@ export type DagsterTypeFragment_ListDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2617,6 +2637,16 @@ export type DagsterTypeFragment_ListDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3859,6 +3889,16 @@ export type DagsterTypeFragment_ListDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -5119,6 +5159,16 @@ export type DagsterTypeFragment_NullableDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -6380,6 +6430,16 @@ export type DagsterTypeFragment_NullableDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7641,6 +7701,16 @@ export type DagsterTypeFragment_NullableDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8883,6 +8953,16 @@ export type DagsterTypeFragment_NullableDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -10143,6 +10223,16 @@ export type DagsterTypeFragment_RegularDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -11404,6 +11494,16 @@ export type DagsterTypeFragment_RegularDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -12665,6 +12765,16 @@ export type DagsterTypeFragment_RegularDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -13907,6 +14017,16 @@ export type DagsterTypeFragment_RegularDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -15151,6 +15271,16 @@ export type InnerDagsterTypeFragment_ListDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -16390,6 +16520,16 @@ export type InnerDagsterTypeFragment_NullableDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -17629,6 +17769,16 @@ export type InnerDagsterTypeFragment_RegularDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graphql/possibleTypes.generated.json b/js_modules/dagster-ui/packages/ui-core/src/graphql/possibleTypes.generated.json index d2d019c1afbf3..604bc9e6d8188 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graphql/possibleTypes.generated.json +++ b/js_modules/dagster-ui/packages/ui-core/src/graphql/possibleTypes.generated.json @@ -1 +1 @@ -{"DisplayableEvent":["EngineEvent","ExecutionStepOutputEvent","ExpectationResult","FailureMetadata","HandledOutputEvent","LoadedInputEvent","ObjectStoreOperationResult","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","MaterializationEvent","ObservationEvent","TypeCheck"],"MarkerEvent":["EngineEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","StepWorkerStartedEvent","StepWorkerStartingEvent"],"ErrorEvent":["EngineEvent","ExecutionStepFailureEvent","ExecutionStepUpForRetryEvent","HookErroredEvent","RunFailureEvent","ResourceInitFailureEvent"],"MessageEvent":["EngineEvent","ExecutionStepFailureEvent","ExecutionStepInputEvent","ExecutionStepOutputEvent","ExecutionStepRestartEvent","ExecutionStepSkippedEvent","ExecutionStepStartEvent","ExecutionStepSuccessEvent","ExecutionStepUpForRetryEvent","HandledOutputEvent","HookCompletedEvent","HookErroredEvent","HookSkippedEvent","LoadedInputEvent","LogMessageEvent","ObjectStoreOperationEvent","RunCanceledEvent","RunCancelingEvent","RunDequeuedEvent","RunEnqueuedEvent","RunFailureEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","RunStartEvent","RunStartingEvent","RunSuccessEvent","StepExpectationResultEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","MaterializationEvent","ObservationEvent","AssetMaterializationPlannedEvent","LogsCapturedEvent","AlertStartEvent","AlertSuccessEvent","AlertFailureEvent","AssetCheckEvaluationPlannedEvent","AssetCheckEvaluationEvent"],"RunEvent":["RunCanceledEvent","RunCancelingEvent","RunDequeuedEvent","RunEnqueuedEvent","RunFailureEvent","RunStartEvent","RunStartingEvent","RunSuccessEvent","AssetMaterializationPlannedEvent","AlertStartEvent","AlertSuccessEvent","AlertFailureEvent"],"PipelineRunStepStats":["RunStepStats"],"StepEvent":["EngineEvent","ExecutionStepFailureEvent","ExecutionStepInputEvent","ExecutionStepOutputEvent","ExecutionStepRestartEvent","ExecutionStepSkippedEvent","ExecutionStepStartEvent","ExecutionStepSuccessEvent","ExecutionStepUpForRetryEvent","HandledOutputEvent","HookCompletedEvent","HookErroredEvent","HookSkippedEvent","LoadedInputEvent","ObjectStoreOperationEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","StepExpectationResultEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","MaterializationEvent","ObservationEvent","AssetCheckEvaluationPlannedEvent","AssetCheckEvaluationEvent"],"AssetOwner":["UserAssetOwner","TeamAssetOwner"],"AssetPartitionStatuses":["DefaultPartitionStatuses","MultiPartitionStatuses","TimePartitionStatuses"],"PartitionStatus1D":["TimePartitionStatuses","DefaultPartitionStatuses"],"AssetChecksOrError":["AssetChecks","AssetCheckNeedsMigrationError","AssetCheckNeedsUserCodeUpgrade","AssetCheckNeedsAgentUpgradeError"],"Instigator":["Schedule","Sensor"],"EvaluationStackEntry":["EvaluationStackListItemEntry","EvaluationStackPathEntry","EvaluationStackMapKeyEntry","EvaluationStackMapValueEntry"],"IPipelineSnapshot":["Pipeline","PipelineSnapshot","Job"],"PipelineConfigValidationError":["FieldNotDefinedConfigError","FieldsNotDefinedConfigError","MissingFieldConfigError","MissingFieldsConfigError","RuntimeMismatchConfigError","SelectorTypeConfigError"],"PipelineConfigValidationInvalid":["RunConfigValidationInvalid"],"PipelineConfigValidationResult":["InvalidSubsetError","PipelineConfigValidationValid","RunConfigValidationInvalid","PipelineNotFoundError","PythonError"],"PipelineReference":["PipelineSnapshot","UnknownPipeline"],"PipelineRun":["Run"],"DagsterRunEvent":["ExecutionStepFailureEvent","ExecutionStepInputEvent","ExecutionStepOutputEvent","ExecutionStepSkippedEvent","ExecutionStepStartEvent","ExecutionStepSuccessEvent","ExecutionStepUpForRetryEvent","ExecutionStepRestartEvent","LogMessageEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","RunFailureEvent","RunStartEvent","RunEnqueuedEvent","RunDequeuedEvent","RunStartingEvent","RunCancelingEvent","RunCanceledEvent","RunSuccessEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","HandledOutputEvent","LoadedInputEvent","LogsCapturedEvent","ObjectStoreOperationEvent","StepExpectationResultEvent","MaterializationEvent","ObservationEvent","EngineEvent","HookCompletedEvent","HookSkippedEvent","HookErroredEvent","AlertStartEvent","AlertSuccessEvent","AlertFailureEvent","AssetMaterializationPlannedEvent","AssetCheckEvaluationPlannedEvent","AssetCheckEvaluationEvent"],"PipelineRunLogsSubscriptionPayload":["PipelineRunLogsSubscriptionSuccess","PipelineRunLogsSubscriptionFailure"],"RunOrError":["Run","RunNotFoundError","PythonError"],"PipelineRunStatsSnapshot":["RunStatsSnapshot"],"RunStatsSnapshotOrError":["RunStatsSnapshot","PythonError"],"PipelineSnapshotOrError":["PipelineNotFoundError","PipelineSnapshot","PipelineSnapshotNotFoundError","PythonError"],"AssetOrError":["Asset","AssetNotFoundError"],"AssetsOrError":["AssetConnection","PythonError"],"DeletePipelineRunResult":["DeletePipelineRunSuccess","UnauthorizedError","PythonError","RunNotFoundError"],"ExecutionPlanOrError":["ExecutionPlan","RunConfigValidationInvalid","PipelineNotFoundError","InvalidSubsetError","PythonError"],"PipelineOrError":["Pipeline","PipelineNotFoundError","InvalidSubsetError","PythonError"],"ReloadRepositoryLocationMutationResult":["WorkspaceLocationEntry","ReloadNotSupported","RepositoryLocationNotFound","UnauthorizedError","PythonError"],"RepositoryLocationOrLoadError":["RepositoryLocation","PythonError"],"ReloadWorkspaceMutationResult":["Workspace","UnauthorizedError","PythonError"],"ShutdownRepositoryLocationMutationResult":["ShutdownRepositoryLocationSuccess","RepositoryLocationNotFound","UnauthorizedError","PythonError"],"TerminatePipelineExecutionFailure":["TerminateRunFailure"],"TerminatePipelineExecutionSuccess":["TerminateRunSuccess"],"TerminateRunResult":["TerminateRunSuccess","TerminateRunFailure","RunNotFoundError","UnauthorizedError","PythonError"],"ScheduleMutationResult":["PythonError","UnauthorizedError","ScheduleStateResult"],"ScheduleOrError":["Schedule","ScheduleNotFoundError","PythonError"],"SchedulerOrError":["Scheduler","SchedulerNotDefinedError","PythonError"],"SchedulesOrError":["Schedules","RepositoryNotFoundError","PythonError"],"ScheduleTickSpecificData":["ScheduleTickSuccessData","ScheduleTickFailureData"],"LaunchBackfillResult":["LaunchBackfillSuccess","PartitionSetNotFoundError","InvalidStepError","InvalidOutputError","RunConfigValidationInvalid","PipelineNotFoundError","RunConflict","UnauthorizedError","PythonError","InvalidSubsetError","PresetNotFoundError","ConflictingExecutionParamsError","NoModeProvidedError"],"ConfigTypeOrError":["EnumConfigType","CompositeConfigType","RegularConfigType","PipelineNotFoundError","ConfigTypeNotFoundError","PythonError"],"ConfigType":["ArrayConfigType","CompositeConfigType","EnumConfigType","NullableConfigType","RegularConfigType","ScalarUnionConfigType","MapConfigType"],"WrappingConfigType":["ArrayConfigType","NullableConfigType"],"DagsterType":["ListDagsterType","NullableDagsterType","RegularDagsterType"],"DagsterTypeOrError":["RegularDagsterType","PipelineNotFoundError","DagsterTypeNotFoundError","PythonError"],"WrappingDagsterType":["ListDagsterType","NullableDagsterType"],"Error":["AssetCheckNeedsMigrationError","AssetCheckNeedsUserCodeUpgrade","AssetCheckNeedsAgentUpgradeError","AssetNotFoundError","ConflictingExecutionParamsError","ConfigTypeNotFoundError","DagsterTypeNotFoundError","InvalidPipelineRunsFilterError","InvalidSubsetError","ModeNotFoundError","NoModeProvidedError","PartitionSetNotFoundError","PipelineNotFoundError","RunConflict","PipelineSnapshotNotFoundError","PresetNotFoundError","PythonError","ErrorChainLink","UnauthorizedError","ReloadNotSupported","RepositoryLocationNotFound","RepositoryNotFoundError","ResourceNotFoundError","RunGroupNotFoundError","RunNotFoundError","ScheduleNotFoundError","SchedulerNotDefinedError","SensorNotFoundError","DuplicateDynamicPartitionError","InstigationStateNotFoundError","SolidStepStatusUnavailableError","GraphNotFoundError","BackfillNotFoundError","PartitionSubsetDeserializationError","AutoMaterializeAssetEvaluationNeedsMigrationError"],"PipelineRunConflict":["RunConflict"],"PipelineRunNotFoundError":["RunNotFoundError"],"RepositoriesOrError":["RepositoryConnection","RepositoryNotFoundError","PythonError"],"RepositoryOrError":["PythonError","Repository","RepositoryNotFoundError"],"WorkspaceLocationEntryOrError":["WorkspaceLocationEntry","PythonError"],"InstigationTypeSpecificData":["SensorData","ScheduleData"],"InstigationStateOrError":["InstigationState","InstigationStateNotFoundError","PythonError"],"InstigationStatesOrError":["InstigationStates","PythonError"],"MetadataEntry":["TableColumnLineageMetadataEntry","TableSchemaMetadataEntry","TableMetadataEntry","FloatMetadataEntry","IntMetadataEntry","JsonMetadataEntry","BoolMetadataEntry","MarkdownMetadataEntry","PathMetadataEntry","NotebookMetadataEntry","PythonArtifactMetadataEntry","TextMetadataEntry","UrlMetadataEntry","PipelineRunMetadataEntry","AssetMetadataEntry","JobMetadataEntry","NullMetadataEntry","TimestampMetadataEntry"],"PartitionRunConfigOrError":["PartitionRunConfig","PythonError"],"AssetBackfillStatus":["AssetPartitionsStatusCounts","UnpartitionedAssetStatus"],"PartitionSetOrError":["PartitionSet","PartitionSetNotFoundError","PythonError"],"PartitionSetsOrError":["PartitionSets","PipelineNotFoundError","PythonError"],"PartitionsOrError":["Partitions","PythonError"],"PartitionStatusesOrError":["PartitionStatuses","PythonError"],"PartitionTagsOrError":["PartitionTags","PythonError"],"RunConfigSchemaOrError":["RunConfigSchema","PipelineNotFoundError","InvalidSubsetError","ModeNotFoundError","PythonError"],"LaunchRunResult":["LaunchRunSuccess","InvalidStepError","InvalidOutputError","RunConfigValidationInvalid","PipelineNotFoundError","RunConflict","UnauthorizedError","PythonError","InvalidSubsetError","PresetNotFoundError","ConflictingExecutionParamsError","NoModeProvidedError"],"LaunchRunReexecutionResult":["LaunchRunSuccess","InvalidStepError","InvalidOutputError","RunConfigValidationInvalid","PipelineNotFoundError","RunConflict","UnauthorizedError","PythonError","InvalidSubsetError","PresetNotFoundError","ConflictingExecutionParamsError","NoModeProvidedError"],"LaunchPipelineRunSuccess":["LaunchRunSuccess"],"RunsOrError":["Runs","InvalidPipelineRunsFilterError","PythonError"],"PipelineRuns":["Runs"],"RunGroupOrError":["RunGroup","RunGroupNotFoundError","PythonError"],"SensorOrError":["Sensor","SensorNotFoundError","UnauthorizedError","PythonError"],"SensorsOrError":["Sensors","RepositoryNotFoundError","PythonError"],"StopSensorMutationResultOrError":["StopSensorMutationResult","UnauthorizedError","PythonError"],"ISolidDefinition":["CompositeSolidDefinition","SolidDefinition"],"SolidContainer":["Pipeline","PipelineSnapshot","Job","CompositeSolidDefinition","Graph"],"SolidStepStatsOrError":["SolidStepStatsConnection","SolidStepStatusUnavailableError"],"WorkspaceOrError":["Workspace","PythonError"],"WorkspaceLocationStatusEntriesOrError":["WorkspaceLocationStatusEntries","PythonError"],"GraphOrError":["Graph","GraphNotFoundError","PythonError"],"ResourceDetailsOrError":["ResourceDetails","ResourceNotFoundError","PythonError"],"ResourcesOrError":["ResourceDetailsList","RepositoryNotFoundError","PythonError"],"EnvVarWithConsumersOrError":["EnvVarWithConsumersList","PythonError"],"RunTagKeysOrError":["PythonError","RunTagKeys"],"RunTagsOrError":["PythonError","RunTags"],"RunIdsOrError":["RunIds","InvalidPipelineRunsFilterError","PythonError"],"AssetNodeOrError":["AssetNode","AssetNotFoundError"],"PartitionBackfillOrError":["PartitionBackfill","BackfillNotFoundError","PythonError"],"PartitionBackfillsOrError":["PartitionBackfills","PythonError"],"EventConnectionOrError":["EventConnection","RunNotFoundError","PythonError"],"AutoMaterializeAssetEvaluationRecordsOrError":["AutoMaterializeAssetEvaluationRecords","AutoMaterializeAssetEvaluationNeedsMigrationError"],"PartitionKeysOrError":["PartitionKeys","PartitionSubsetDeserializationError"],"AutoMaterializeRuleEvaluationData":["TextRuleEvaluationData","ParentMaterializedRuleEvaluationData","WaitingOnKeysRuleEvaluationData"],"AssetConditionEvaluationNode":["UnpartitionedAssetConditionEvaluationNode","PartitionedAssetConditionEvaluationNode","SpecificPartitionAssetConditionEvaluationNode"],"AssetConditionEvaluationRecordsOrError":["AssetConditionEvaluationRecords","AutoMaterializeAssetEvaluationNeedsMigrationError"],"SensorDryRunResult":["PythonError","SensorNotFoundError","DryRunInstigationTick"],"ScheduleDryRunResult":["DryRunInstigationTick","PythonError","ScheduleNotFoundError"],"TerminateRunsResultOrError":["TerminateRunsResult","PythonError"],"AssetWipeMutationResult":["AssetNotFoundError","UnauthorizedError","PythonError","AssetWipeSuccess"],"ReportRunlessAssetEventsResult":["UnauthorizedError","PythonError","ReportRunlessAssetEventsSuccess"],"ResumeBackfillResult":["ResumeBackfillSuccess","UnauthorizedError","PythonError"],"CancelBackfillResult":["CancelBackfillSuccess","UnauthorizedError","PythonError"],"LogTelemetryMutationResult":["LogTelemetrySuccess","PythonError"],"AddDynamicPartitionResult":["AddDynamicPartitionSuccess","UnauthorizedError","PythonError","DuplicateDynamicPartitionError"]} \ No newline at end of file +{"DisplayableEvent":["EngineEvent","ExecutionStepOutputEvent","ExpectationResult","FailureMetadata","HandledOutputEvent","LoadedInputEvent","ObjectStoreOperationResult","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","MaterializationEvent","ObservationEvent","TypeCheck"],"MarkerEvent":["EngineEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","StepWorkerStartedEvent","StepWorkerStartingEvent"],"ErrorEvent":["EngineEvent","ExecutionStepFailureEvent","ExecutionStepUpForRetryEvent","HookErroredEvent","RunFailureEvent","ResourceInitFailureEvent"],"MessageEvent":["EngineEvent","ExecutionStepFailureEvent","ExecutionStepInputEvent","ExecutionStepOutputEvent","ExecutionStepRestartEvent","ExecutionStepSkippedEvent","ExecutionStepStartEvent","ExecutionStepSuccessEvent","ExecutionStepUpForRetryEvent","HandledOutputEvent","HookCompletedEvent","HookErroredEvent","HookSkippedEvent","LoadedInputEvent","LogMessageEvent","ObjectStoreOperationEvent","RunCanceledEvent","RunCancelingEvent","RunDequeuedEvent","RunEnqueuedEvent","RunFailureEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","RunStartEvent","RunStartingEvent","RunSuccessEvent","StepExpectationResultEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","MaterializationEvent","ObservationEvent","AssetMaterializationPlannedEvent","LogsCapturedEvent","AlertStartEvent","AlertSuccessEvent","AlertFailureEvent","AssetCheckEvaluationPlannedEvent","AssetCheckEvaluationEvent"],"RunEvent":["RunCanceledEvent","RunCancelingEvent","RunDequeuedEvent","RunEnqueuedEvent","RunFailureEvent","RunStartEvent","RunStartingEvent","RunSuccessEvent","AssetMaterializationPlannedEvent","AlertStartEvent","AlertSuccessEvent","AlertFailureEvent"],"PipelineRunStepStats":["RunStepStats"],"StepEvent":["EngineEvent","ExecutionStepFailureEvent","ExecutionStepInputEvent","ExecutionStepOutputEvent","ExecutionStepRestartEvent","ExecutionStepSkippedEvent","ExecutionStepStartEvent","ExecutionStepSuccessEvent","ExecutionStepUpForRetryEvent","HandledOutputEvent","HookCompletedEvent","HookErroredEvent","HookSkippedEvent","LoadedInputEvent","ObjectStoreOperationEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","StepExpectationResultEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","MaterializationEvent","ObservationEvent","AssetCheckEvaluationPlannedEvent","AssetCheckEvaluationEvent"],"AssetOwner":["UserAssetOwner","TeamAssetOwner"],"AssetPartitionStatuses":["DefaultPartitionStatuses","MultiPartitionStatuses","TimePartitionStatuses"],"PartitionStatus1D":["TimePartitionStatuses","DefaultPartitionStatuses"],"AssetChecksOrError":["AssetChecks","AssetCheckNeedsMigrationError","AssetCheckNeedsUserCodeUpgrade","AssetCheckNeedsAgentUpgradeError"],"Instigator":["Schedule","Sensor"],"EvaluationStackEntry":["EvaluationStackListItemEntry","EvaluationStackPathEntry","EvaluationStackMapKeyEntry","EvaluationStackMapValueEntry"],"IPipelineSnapshot":["Pipeline","PipelineSnapshot","Job"],"PipelineConfigValidationError":["FieldNotDefinedConfigError","FieldsNotDefinedConfigError","MissingFieldConfigError","MissingFieldsConfigError","RuntimeMismatchConfigError","SelectorTypeConfigError"],"PipelineConfigValidationInvalid":["RunConfigValidationInvalid"],"PipelineConfigValidationResult":["InvalidSubsetError","PipelineConfigValidationValid","RunConfigValidationInvalid","PipelineNotFoundError","PythonError"],"PipelineReference":["PipelineSnapshot","UnknownPipeline"],"PipelineRun":["Run"],"DagsterRunEvent":["ExecutionStepFailureEvent","ExecutionStepInputEvent","ExecutionStepOutputEvent","ExecutionStepSkippedEvent","ExecutionStepStartEvent","ExecutionStepSuccessEvent","ExecutionStepUpForRetryEvent","ExecutionStepRestartEvent","LogMessageEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","RunFailureEvent","RunStartEvent","RunEnqueuedEvent","RunDequeuedEvent","RunStartingEvent","RunCancelingEvent","RunCanceledEvent","RunSuccessEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","HandledOutputEvent","LoadedInputEvent","LogsCapturedEvent","ObjectStoreOperationEvent","StepExpectationResultEvent","MaterializationEvent","ObservationEvent","EngineEvent","HookCompletedEvent","HookSkippedEvent","HookErroredEvent","AlertStartEvent","AlertSuccessEvent","AlertFailureEvent","AssetMaterializationPlannedEvent","AssetCheckEvaluationPlannedEvent","AssetCheckEvaluationEvent"],"PipelineRunLogsSubscriptionPayload":["PipelineRunLogsSubscriptionSuccess","PipelineRunLogsSubscriptionFailure"],"RunOrError":["Run","RunNotFoundError","PythonError"],"PipelineRunStatsSnapshot":["RunStatsSnapshot"],"RunStatsSnapshotOrError":["RunStatsSnapshot","PythonError"],"PipelineSnapshotOrError":["PipelineNotFoundError","PipelineSnapshot","PipelineSnapshotNotFoundError","PythonError"],"AssetOrError":["Asset","AssetNotFoundError"],"AssetsOrError":["AssetConnection","PythonError"],"DeletePipelineRunResult":["DeletePipelineRunSuccess","UnauthorizedError","PythonError","RunNotFoundError"],"ExecutionPlanOrError":["ExecutionPlan","RunConfigValidationInvalid","PipelineNotFoundError","InvalidSubsetError","PythonError"],"PipelineOrError":["Pipeline","PipelineNotFoundError","InvalidSubsetError","PythonError"],"ReloadRepositoryLocationMutationResult":["WorkspaceLocationEntry","ReloadNotSupported","RepositoryLocationNotFound","UnauthorizedError","PythonError"],"RepositoryLocationOrLoadError":["RepositoryLocation","PythonError"],"ReloadWorkspaceMutationResult":["Workspace","UnauthorizedError","PythonError"],"ShutdownRepositoryLocationMutationResult":["ShutdownRepositoryLocationSuccess","RepositoryLocationNotFound","UnauthorizedError","PythonError"],"TerminatePipelineExecutionFailure":["TerminateRunFailure"],"TerminatePipelineExecutionSuccess":["TerminateRunSuccess"],"TerminateRunResult":["TerminateRunSuccess","TerminateRunFailure","RunNotFoundError","UnauthorizedError","PythonError"],"ScheduleMutationResult":["PythonError","UnauthorizedError","ScheduleStateResult"],"ScheduleOrError":["Schedule","ScheduleNotFoundError","PythonError"],"SchedulerOrError":["Scheduler","SchedulerNotDefinedError","PythonError"],"SchedulesOrError":["Schedules","RepositoryNotFoundError","PythonError"],"ScheduleTickSpecificData":["ScheduleTickSuccessData","ScheduleTickFailureData"],"LaunchBackfillResult":["LaunchBackfillSuccess","PartitionSetNotFoundError","InvalidStepError","InvalidOutputError","RunConfigValidationInvalid","PipelineNotFoundError","RunConflict","UnauthorizedError","PythonError","InvalidSubsetError","PresetNotFoundError","ConflictingExecutionParamsError","NoModeProvidedError"],"ConfigTypeOrError":["EnumConfigType","CompositeConfigType","RegularConfigType","PipelineNotFoundError","ConfigTypeNotFoundError","PythonError"],"ConfigType":["ArrayConfigType","CompositeConfigType","EnumConfigType","NullableConfigType","RegularConfigType","ScalarUnionConfigType","MapConfigType"],"WrappingConfigType":["ArrayConfigType","NullableConfigType"],"DagsterType":["ListDagsterType","NullableDagsterType","RegularDagsterType"],"DagsterTypeOrError":["RegularDagsterType","PipelineNotFoundError","DagsterTypeNotFoundError","PythonError"],"WrappingDagsterType":["ListDagsterType","NullableDagsterType"],"Error":["AssetCheckNeedsMigrationError","AssetCheckNeedsUserCodeUpgrade","AssetCheckNeedsAgentUpgradeError","AssetNotFoundError","ConflictingExecutionParamsError","ConfigTypeNotFoundError","DagsterTypeNotFoundError","InvalidPipelineRunsFilterError","InvalidSubsetError","ModeNotFoundError","NoModeProvidedError","PartitionSetNotFoundError","PipelineNotFoundError","RunConflict","PipelineSnapshotNotFoundError","PresetNotFoundError","PythonError","ErrorChainLink","UnauthorizedError","ReloadNotSupported","RepositoryLocationNotFound","RepositoryNotFoundError","ResourceNotFoundError","RunGroupNotFoundError","RunNotFoundError","ScheduleNotFoundError","SchedulerNotDefinedError","SensorNotFoundError","DuplicateDynamicPartitionError","InstigationStateNotFoundError","SolidStepStatusUnavailableError","GraphNotFoundError","BackfillNotFoundError","PartitionSubsetDeserializationError","AutoMaterializeAssetEvaluationNeedsMigrationError"],"PipelineRunConflict":["RunConflict"],"PipelineRunNotFoundError":["RunNotFoundError"],"RepositoriesOrError":["RepositoryConnection","RepositoryNotFoundError","PythonError"],"RepositoryOrError":["PythonError","Repository","RepositoryNotFoundError"],"WorkspaceLocationEntryOrError":["WorkspaceLocationEntry","PythonError"],"InstigationTypeSpecificData":["SensorData","ScheduleData"],"InstigationStateOrError":["InstigationState","InstigationStateNotFoundError","PythonError"],"InstigationStatesOrError":["InstigationStates","PythonError"],"MetadataEntry":["TableColumnLineageMetadataEntry","TableSchemaMetadataEntry","TableMetadataEntry","FloatMetadataEntry","IntMetadataEntry","JsonMetadataEntry","BoolMetadataEntry","MarkdownMetadataEntry","PathMetadataEntry","NotebookMetadataEntry","PythonArtifactMetadataEntry","TextMetadataEntry","UrlMetadataEntry","PipelineRunMetadataEntry","AssetMetadataEntry","JobMetadataEntry","SouceCodeLocationsMetadataEntry","NullMetadataEntry","TimestampMetadataEntry"],"SourceLocation":["LocalFileSource"],"PartitionRunConfigOrError":["PartitionRunConfig","PythonError"],"AssetBackfillStatus":["AssetPartitionsStatusCounts","UnpartitionedAssetStatus"],"PartitionSetOrError":["PartitionSet","PartitionSetNotFoundError","PythonError"],"PartitionSetsOrError":["PartitionSets","PipelineNotFoundError","PythonError"],"PartitionsOrError":["Partitions","PythonError"],"PartitionStatusesOrError":["PartitionStatuses","PythonError"],"PartitionTagsOrError":["PartitionTags","PythonError"],"RunConfigSchemaOrError":["RunConfigSchema","PipelineNotFoundError","InvalidSubsetError","ModeNotFoundError","PythonError"],"LaunchRunResult":["LaunchRunSuccess","InvalidStepError","InvalidOutputError","RunConfigValidationInvalid","PipelineNotFoundError","RunConflict","UnauthorizedError","PythonError","InvalidSubsetError","PresetNotFoundError","ConflictingExecutionParamsError","NoModeProvidedError"],"LaunchRunReexecutionResult":["LaunchRunSuccess","InvalidStepError","InvalidOutputError","RunConfigValidationInvalid","PipelineNotFoundError","RunConflict","UnauthorizedError","PythonError","InvalidSubsetError","PresetNotFoundError","ConflictingExecutionParamsError","NoModeProvidedError"],"LaunchPipelineRunSuccess":["LaunchRunSuccess"],"RunsOrError":["Runs","InvalidPipelineRunsFilterError","PythonError"],"PipelineRuns":["Runs"],"RunGroupOrError":["RunGroup","RunGroupNotFoundError","PythonError"],"SensorOrError":["Sensor","SensorNotFoundError","UnauthorizedError","PythonError"],"SensorsOrError":["Sensors","RepositoryNotFoundError","PythonError"],"StopSensorMutationResultOrError":["StopSensorMutationResult","UnauthorizedError","PythonError"],"ISolidDefinition":["CompositeSolidDefinition","SolidDefinition"],"SolidContainer":["Pipeline","PipelineSnapshot","Job","CompositeSolidDefinition","Graph"],"SolidStepStatsOrError":["SolidStepStatsConnection","SolidStepStatusUnavailableError"],"WorkspaceOrError":["Workspace","PythonError"],"WorkspaceLocationStatusEntriesOrError":["WorkspaceLocationStatusEntries","PythonError"],"GraphOrError":["Graph","GraphNotFoundError","PythonError"],"ResourceDetailsOrError":["ResourceDetails","ResourceNotFoundError","PythonError"],"ResourcesOrError":["ResourceDetailsList","RepositoryNotFoundError","PythonError"],"EnvVarWithConsumersOrError":["EnvVarWithConsumersList","PythonError"],"RunTagKeysOrError":["PythonError","RunTagKeys"],"RunTagsOrError":["PythonError","RunTags"],"RunIdsOrError":["RunIds","InvalidPipelineRunsFilterError","PythonError"],"AssetNodeOrError":["AssetNode","AssetNotFoundError"],"PartitionBackfillOrError":["PartitionBackfill","BackfillNotFoundError","PythonError"],"PartitionBackfillsOrError":["PartitionBackfills","PythonError"],"EventConnectionOrError":["EventConnection","RunNotFoundError","PythonError"],"AutoMaterializeAssetEvaluationRecordsOrError":["AutoMaterializeAssetEvaluationRecords","AutoMaterializeAssetEvaluationNeedsMigrationError"],"PartitionKeysOrError":["PartitionKeys","PartitionSubsetDeserializationError"],"AutoMaterializeRuleEvaluationData":["TextRuleEvaluationData","ParentMaterializedRuleEvaluationData","WaitingOnKeysRuleEvaluationData"],"AssetConditionEvaluationNode":["UnpartitionedAssetConditionEvaluationNode","PartitionedAssetConditionEvaluationNode","SpecificPartitionAssetConditionEvaluationNode"],"AssetConditionEvaluationRecordsOrError":["AssetConditionEvaluationRecords","AutoMaterializeAssetEvaluationNeedsMigrationError"],"SensorDryRunResult":["PythonError","SensorNotFoundError","DryRunInstigationTick"],"ScheduleDryRunResult":["DryRunInstigationTick","PythonError","ScheduleNotFoundError"],"TerminateRunsResultOrError":["TerminateRunsResult","PythonError"],"AssetWipeMutationResult":["AssetNotFoundError","UnauthorizedError","PythonError","AssetWipeSuccess"],"ReportRunlessAssetEventsResult":["UnauthorizedError","PythonError","ReportRunlessAssetEventsSuccess"],"ResumeBackfillResult":["ResumeBackfillSuccess","UnauthorizedError","PythonError"],"CancelBackfillResult":["CancelBackfillSuccess","UnauthorizedError","PythonError"],"LogTelemetryMutationResult":["LogTelemetrySuccess","PythonError"],"AddDynamicPartitionResult":["AddDynamicPartitionSuccess","UnauthorizedError","PythonError","DuplicateDynamicPartitionError"]} \ No newline at end of file diff --git a/js_modules/dagster-ui/packages/ui-core/src/graphql/schema.graphql b/js_modules/dagster-ui/packages/ui-core/src/graphql/schema.graphql index 97dcb9ee5244a..15e6d75b7075f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graphql/schema.graphql +++ b/js_modules/dagster-ui/packages/ui-core/src/graphql/schema.graphql @@ -2678,6 +2678,24 @@ type JobMetadataEntry implements MetadataEntry { locationName: String! } +type SouceCodeLocationsMetadataEntry implements MetadataEntry { + label: String! + description: String + sources: [SourceEntry!]! +} + +type SourceEntry { + key: String! + source: SourceLocation! +} + +union SourceLocation = LocalFileSource + +type LocalFileSource { + filePath: String! + lineNumber: Int! +} + type NullMetadataEntry implements MetadataEntry { label: String! description: String diff --git a/js_modules/dagster-ui/packages/ui-core/src/graphql/types.ts b/js_modules/dagster-ui/packages/ui-core/src/graphql/types.ts index 9b684fb5cd718..260492a87b53e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graphql/types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/graphql/types.ts @@ -178,6 +178,7 @@ export type AssetCheckEvaluation = { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -457,6 +458,7 @@ export type AssetNode = { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -1049,6 +1051,7 @@ export type DagsterType = { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -1142,6 +1145,7 @@ export type DisplayableEvent = { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -1217,6 +1221,7 @@ export type EngineEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -1456,6 +1461,7 @@ export type ExecutionStepOutputEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -1556,6 +1562,7 @@ export type ExpectationResult = DisplayableEvent & { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -1583,6 +1590,7 @@ export type FailureMetadata = DisplayableEvent & { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -1689,6 +1697,7 @@ export type HandledOutputEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -1759,6 +1768,7 @@ export type IPipelineSnapshot = { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -1829,6 +1839,7 @@ export type InputDefinition = { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -2051,6 +2062,7 @@ export type Job = IPipelineSnapshot & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -2240,6 +2252,7 @@ export type ListDagsterType = DagsterType & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -2284,6 +2297,7 @@ export type LoadedInputEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -2299,6 +2313,12 @@ export type LoadedInputEvent = DisplayableEvent & upstreamStepKey: Maybe; }; +export type LocalFileSource = { + __typename: 'LocalFileSource'; + filePath: Scalars['String']['output']; + lineNumber: Scalars['Int']['output']; +}; + export type LocationStateChangeEvent = { __typename: 'LocationStateChangeEvent'; eventType: LocationStateChangeEventType; @@ -2450,6 +2470,7 @@ export type MaterializationEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -2827,6 +2848,7 @@ export type NullableDagsterType = DagsterType & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -2877,6 +2899,7 @@ export type ObjectStoreOperationResult = DisplayableEvent & { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -2917,6 +2940,7 @@ export type ObservationEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -2958,6 +2982,7 @@ export type OutputDefinition = { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -3278,6 +3303,7 @@ export type Pipeline = IPipelineSnapshot & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -3504,6 +3530,7 @@ export type PipelineSnapshot = IPipelineSnapshot & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -3938,6 +3965,7 @@ export type RegularDagsterType = DagsterType & { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -4157,6 +4185,7 @@ export type ResourceInitFailureEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -4195,6 +4224,7 @@ export type ResourceInitStartedEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -4233,6 +4263,7 @@ export type ResourceInitSuccessEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -4933,6 +4964,21 @@ export type SolidStepStatusUnavailableError = Error & { message: Scalars['String']['output']; }; +export type SouceCodeLocationsMetadataEntry = MetadataEntry & { + __typename: 'SouceCodeLocationsMetadataEntry'; + description: Maybe; + label: Scalars['String']['output']; + sources: Array; +}; + +export type SourceEntry = { + __typename: 'SourceEntry'; + key: Scalars['String']['output']; + source: SourceLocation; +}; + +export type SourceLocation = LocalFileSource; + export type SpecificPartitionAssetConditionEvaluationNode = { __typename: 'SpecificPartitionAssetConditionEvaluationNode'; childUniqueIds: Array; @@ -4950,6 +4996,7 @@ export type SpecificPartitionAssetConditionEvaluationNode = { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -5055,6 +5102,7 @@ export type StepWorkerStartedEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -5093,6 +5141,7 @@ export type StepWorkerStartingEvent = DisplayableEvent & | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -5337,6 +5386,7 @@ export type TypeCheck = DisplayableEvent & { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -5376,6 +5426,7 @@ export type UnpartitionedAssetConditionEvaluationNode = { | PathMetadataEntry | PipelineRunMetadataEntry | PythonArtifactMetadataEntry + | SouceCodeLocationsMetadataEntry | TableColumnLineageMetadataEntry | TableMetadataEntry | TableSchemaMetadataEntry @@ -9300,6 +9351,19 @@ export const buildLoadedInputEvent = ( }; }; +export const buildLocalFileSource = ( + overrides?: Partial, + _relationshipsToOmit: Set = new Set(), +): {__typename: 'LocalFileSource'} & LocalFileSource => { + const relationshipsToOmit: Set = new Set(_relationshipsToOmit); + relationshipsToOmit.add('LocalFileSource'); + return { + __typename: 'LocalFileSource', + filePath: overrides && overrides.hasOwnProperty('filePath') ? overrides.filePath! : 'sequi', + lineNumber: overrides && overrides.hasOwnProperty('lineNumber') ? overrides.lineNumber! : 9271, + }; +}; + export const buildLocationStateChangeEvent = ( overrides?: Partial, _relationshipsToOmit: Set = new Set(), @@ -13869,6 +13933,39 @@ export const buildSolidStepStatusUnavailableError = ( }; }; +export const buildSouceCodeLocationsMetadataEntry = ( + overrides?: Partial, + _relationshipsToOmit: Set = new Set(), +): {__typename: 'SouceCodeLocationsMetadataEntry'} & SouceCodeLocationsMetadataEntry => { + const relationshipsToOmit: Set = new Set(_relationshipsToOmit); + relationshipsToOmit.add('SouceCodeLocationsMetadataEntry'); + return { + __typename: 'SouceCodeLocationsMetadataEntry', + description: + overrides && overrides.hasOwnProperty('description') ? overrides.description! : 'itaque', + label: overrides && overrides.hasOwnProperty('label') ? overrides.label! : 'a', + sources: overrides && overrides.hasOwnProperty('sources') ? overrides.sources! : [], + }; +}; + +export const buildSourceEntry = ( + overrides?: Partial, + _relationshipsToOmit: Set = new Set(), +): {__typename: 'SourceEntry'} & SourceEntry => { + const relationshipsToOmit: Set = new Set(_relationshipsToOmit); + relationshipsToOmit.add('SourceEntry'); + return { + __typename: 'SourceEntry', + key: overrides && overrides.hasOwnProperty('key') ? overrides.key! : 'debitis', + source: + overrides && overrides.hasOwnProperty('source') + ? overrides.source! + : relationshipsToOmit.has('LocalFileSource') + ? ({} as LocalFileSource) + : buildLocalFileSource({}, relationshipsToOmit), + }; +}; + export const buildSpecificPartitionAssetConditionEvaluationNode = ( overrides?: Partial, _relationshipsToOmit: Set = new Set(), diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntry.tsx b/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntry.tsx index 1073afb26f1d6..3af812477a59d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntry.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntry.tsx @@ -257,6 +257,8 @@ export const MetadataEntry = ({ ); + case 'SouceCodeLocationsMetadataEntry': + return <>{entry.label}; default: return assertUnreachable(entry); } diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntryFragment.tsx b/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntryFragment.tsx index 12fa831136919..60ffcc99b0eee 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntryFragment.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntryFragment.tsx @@ -76,6 +76,18 @@ export const METADATA_ENTRY_FRAGMENT = gql` ... on TableSchemaMetadataEntry { ...TableSchemaForMetadataEntry } + ... on SouceCodeLocationsMetadataEntry { + sources { + key + source { + __typename + ... on LocalFileSource { + filePath + lineNumber + } + } + } + } } fragment TableSchemaForMetadataEntry on TableSchemaMetadataEntry { diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/__stories__/MetadataEntry.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/metadata/__stories__/MetadataEntry.stories.tsx index 5b22fa5c191e6..79bd643cd551a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/__stories__/MetadataEntry.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/__stories__/MetadataEntry.stories.tsx @@ -258,6 +258,23 @@ function buildMockMetadataEntry(type: MetadataEntryFragment['__typename']): Meta label: 'my_timestamp', timestamp: 1710187280.5, }; + case 'SouceCodeLocationsMetadataEntry': + return { + __typename: 'SouceCodeLocationsMetadataEntry', + description: 'This is the description', + label: 'my_source', + sources: [ + { + __typename: 'SourceEntry', + key: 'asset_definition', + source: { + __typename: 'LocalFileSource', + filePath: '/path/to/file.py', + lineNumber: 12, + }, + }, + ], + }; default: return assertUnreachable(type); } diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/types/MetadataEntryFragment.types.ts b/js_modules/dagster-ui/packages/ui-core/src/metadata/types/MetadataEntryFragment.types.ts index dbab7a50c48e7..1d6f8d4b4255b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/types/MetadataEntryFragment.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/types/MetadataEntryFragment.types.ts @@ -89,6 +89,17 @@ export type MetadataEntryFragment_PythonArtifactMetadataEntry = { description: string | null; }; +export type MetadataEntryFragment_SouceCodeLocationsMetadataEntry = { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; +}; + export type MetadataEntryFragment_TableColumnLineageMetadataEntry = { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -186,6 +197,7 @@ export type MetadataEntryFragment = | MetadataEntryFragment_PathMetadataEntry | MetadataEntryFragment_PipelineRunMetadataEntry | MetadataEntryFragment_PythonArtifactMetadataEntry + | MetadataEntryFragment_SouceCodeLocationsMetadataEntry | MetadataEntryFragment_TableColumnLineageMetadataEntry | MetadataEntryFragment_TableMetadataEntry | MetadataEntryFragment_TableSchemaMetadataEntry diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/GraphExplorer.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/GraphExplorer.types.ts index 6b182c686da21..13d29f9b71fc2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/GraphExplorer.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/GraphExplorer.types.ts @@ -4595,6 +4595,16 @@ export type GraphExplorerFragment_PipelineSnapshot = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineExplorerRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineExplorerRoot.types.ts index 22c0d183b214d..cdb0a63ee6bcb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineExplorerRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineExplorerRoot.types.ts @@ -92,6 +92,16 @@ export type PipelineExplorerRootQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarContainerOverview.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarContainerOverview.types.ts index 901649e9bd267..846ed89de47fa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarContainerOverview.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarContainerOverview.types.ts @@ -4595,6 +4595,16 @@ export type SidebarRootContainerFragment_PipelineSnapshot = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsProvider.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsProvider.types.ts index f80d4b977c2ad..a9facced86deb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsProvider.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsProvider.types.ts @@ -137,6 +137,20 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -323,6 +337,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -506,6 +530,20 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -676,6 +714,20 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -843,6 +895,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -999,6 +1061,20 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1222,6 +1298,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1425,6 +1511,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1611,6 +1707,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1775,6 +1881,20 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1941,6 +2061,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2106,6 +2236,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2280,6 +2420,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2444,6 +2594,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2691,6 +2851,20 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2859,6 +3033,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3023,6 +3207,16 @@ export type PipelineRunLogsSubscription = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3229,6 +3423,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3412,6 +3616,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3590,6 +3804,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3757,6 +3981,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -3921,6 +4155,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4072,6 +4316,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4292,6 +4546,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4490,6 +4754,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4671,6 +4945,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4830,6 +5114,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -4993,6 +5287,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -5153,6 +5457,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -5322,6 +5636,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -5481,6 +5805,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -5723,6 +6057,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -5888,6 +6232,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -6047,6 +6401,16 @@ export type RunLogsSubscriptionSuccessFragment = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -6266,6 +6630,20 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -6452,6 +6830,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -6635,6 +7023,20 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -6805,6 +7207,20 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -6972,6 +7388,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7128,6 +7554,20 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7351,6 +7791,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7554,6 +8004,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7740,6 +8200,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -7904,6 +8374,20 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8070,6 +8554,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8235,6 +8729,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8409,6 +8913,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8573,6 +9087,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8820,6 +9344,20 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: { + __typename: 'LocalFileSource'; + filePath: string; + lineNumber: number; + }; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -8988,6 +9526,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -9152,6 +9700,16 @@ export type RunLogsQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsRow.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsRow.types.ts index 3dd416ebd4e75..1f43519da3831 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsRow.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsRow.types.ts @@ -113,6 +113,16 @@ export type LogsRowStructuredFragment_AssetCheckEvaluationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -276,6 +286,16 @@ export type LogsRowStructuredFragment_EngineEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -444,6 +464,16 @@ export type LogsRowStructuredFragment_ExecutionStepFailureEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -596,6 +626,16 @@ export type LogsRowStructuredFragment_ExecutionStepInputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -740,6 +780,16 @@ export type LogsRowStructuredFragment_ExecutionStepOutputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -881,6 +931,16 @@ export type LogsRowStructuredFragment_ExecutionStepOutputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1081,6 +1141,16 @@ export type LogsRowStructuredFragment_HandledOutputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1264,6 +1334,16 @@ export type LogsRowStructuredFragment_LoadedInputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1429,6 +1509,16 @@ export type LogsRowStructuredFragment_MaterializationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1578,6 +1668,16 @@ export type LogsRowStructuredFragment_ObjectStoreOperationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1721,6 +1821,16 @@ export type LogsRowStructuredFragment_ObservationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1866,6 +1976,16 @@ export type LogsRowStructuredFragment_ResourceInitFailureEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2020,6 +2140,16 @@ export type LogsRowStructuredFragment_ResourceInitStartedEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2164,6 +2294,16 @@ export type LogsRowStructuredFragment_ResourceInitSuccessEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2396,6 +2536,16 @@ export type LogsRowStructuredFragment_StepExpectationResultEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2541,6 +2691,16 @@ export type LogsRowStructuredFragment_StepWorkerStartedEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2685,6 +2845,16 @@ export type LogsRowStructuredFragment_StepWorkerStartingEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsScrollingTable.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsScrollingTable.types.ts index be934b0f31e3c..245e98185d794 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsScrollingTable.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsScrollingTable.types.ts @@ -113,6 +113,16 @@ export type LogsScrollingTableMessageFragment_AssetCheckEvaluationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -276,6 +286,16 @@ export type LogsScrollingTableMessageFragment_EngineEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -444,6 +464,16 @@ export type LogsScrollingTableMessageFragment_ExecutionStepFailureEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -596,6 +626,16 @@ export type LogsScrollingTableMessageFragment_ExecutionStepInputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -740,6 +780,16 @@ export type LogsScrollingTableMessageFragment_ExecutionStepOutputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -881,6 +931,16 @@ export type LogsScrollingTableMessageFragment_ExecutionStepOutputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1081,6 +1141,16 @@ export type LogsScrollingTableMessageFragment_HandledOutputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1264,6 +1334,16 @@ export type LogsScrollingTableMessageFragment_LoadedInputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1429,6 +1509,16 @@ export type LogsScrollingTableMessageFragment_MaterializationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1578,6 +1668,16 @@ export type LogsScrollingTableMessageFragment_ObjectStoreOperationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1721,6 +1821,16 @@ export type LogsScrollingTableMessageFragment_ObservationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1866,6 +1976,16 @@ export type LogsScrollingTableMessageFragment_ResourceInitFailureEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2020,6 +2140,16 @@ export type LogsScrollingTableMessageFragment_ResourceInitStartedEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2164,6 +2294,16 @@ export type LogsScrollingTableMessageFragment_ResourceInitSuccessEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2396,6 +2536,16 @@ export type LogsScrollingTableMessageFragment_StepExpectationResultEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2541,6 +2691,16 @@ export type LogsScrollingTableMessageFragment_StepWorkerStartedEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2685,6 +2845,16 @@ export type LogsScrollingTableMessageFragment_StepWorkerStartingEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; 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 57ba87173029b..682721d7f36b7 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 @@ -170,6 +170,16 @@ export type RunDagsterRunEventFragment_AssetCheckEvaluationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -333,6 +343,16 @@ export type RunDagsterRunEventFragment_EngineEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -501,6 +521,16 @@ export type RunDagsterRunEventFragment_ExecutionStepFailureEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -653,6 +683,16 @@ export type RunDagsterRunEventFragment_ExecutionStepInputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -797,6 +837,16 @@ export type RunDagsterRunEventFragment_ExecutionStepOutputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -938,6 +988,16 @@ export type RunDagsterRunEventFragment_ExecutionStepOutputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1138,6 +1198,16 @@ export type RunDagsterRunEventFragment_HandledOutputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1321,6 +1391,16 @@ export type RunDagsterRunEventFragment_LoadedInputEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1487,6 +1567,16 @@ export type RunDagsterRunEventFragment_MaterializationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1636,6 +1726,16 @@ export type RunDagsterRunEventFragment_ObjectStoreOperationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1779,6 +1879,16 @@ export type RunDagsterRunEventFragment_ObservationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1924,6 +2034,16 @@ export type RunDagsterRunEventFragment_ResourceInitFailureEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2078,6 +2198,16 @@ export type RunDagsterRunEventFragment_ResourceInitStartedEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2222,6 +2352,16 @@ export type RunDagsterRunEventFragment_ResourceInitSuccessEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2454,6 +2594,16 @@ export type RunDagsterRunEventFragment_StepExpectationResultEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2599,6 +2749,16 @@ export type RunDagsterRunEventFragment_StepWorkerStartedEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2743,6 +2903,16 @@ export type RunDagsterRunEventFragment_StepWorkerStartingEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunMetadataProvider.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunMetadataProvider.types.ts index 9ae90384654a8..dd703997098c5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunMetadataProvider.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunMetadataProvider.types.ts @@ -245,6 +245,16 @@ export type RunMetadataProviderMessageFragment_ObjectStoreOperationEvent = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorer.types.ts b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorer.types.ts index 4e10948ee7135..e941d55e082a4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorer.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorer.types.ts @@ -68,6 +68,16 @@ export type TypeExplorerFragment_ListDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -1301,6 +1311,16 @@ export type TypeExplorerFragment_NullableDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; @@ -2534,6 +2554,16 @@ export type TypeExplorerFragment_RegularDagsterType = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorerContainer.types.ts b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorerContainer.types.ts index 682fdacf26ee5..24d3072736ece 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorerContainer.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorerContainer.types.ts @@ -95,6 +95,16 @@ export type TypeExplorerContainerQuery = { label: string; description: string | null; } + | { + __typename: 'SouceCodeLocationsMetadataEntry'; + label: string; + description: string | null; + sources: Array<{ + __typename: 'SourceEntry'; + key: string; + source: {__typename: 'LocalFileSource'; filePath: string; lineNumber: number}; + }>; + } | { __typename: 'TableColumnLineageMetadataEntry'; label: string; diff --git a/python_modules/dagster-graphql/dagster_graphql/implementation/events.py b/python_modules/dagster-graphql/dagster_graphql/implementation/events.py index 64efdb32b5267..e27347d7462ee 100644 --- a/python_modules/dagster-graphql/dagster_graphql/implementation/events.py +++ b/python_modules/dagster-graphql/dagster_graphql/implementation/events.py @@ -25,6 +25,7 @@ from dagster._core.definitions.metadata import ( DagsterRunMetadataValue, MetadataValue, + SouceCodeLocationsMetadataValue, TableColumnLineageMetadataValue, ) from dagster._core.events import ( @@ -37,6 +38,12 @@ from dagster._core.execution.plan.inputs import StepInputData from dagster._core.execution.plan.outputs import StepOutputData +from dagster_graphql.schema.metadata import ( + GrapheneLocalFileSource, + GrapheneSouceCodeLocationsMetadataEntry, + GrapheneSourceEntry, +) + MAX_INT = 2147483647 MIN_INT = -2147483648 @@ -152,6 +159,20 @@ def iterate_metadata_entries(metadata: Mapping[str, MetadataValue]) -> Iterator[ repositoryName=value.repository_name, locationName=value.location_name, ) + elif isinstance(value, SouceCodeLocationsMetadataValue): + yield GrapheneSouceCodeLocationsMetadataEntry( + label=key, + sources=[ + GrapheneSourceEntry( + key=source_key, + source=GrapheneLocalFileSource( + filePath=source.file_path, + lineNumber=source.line_number, + ), + ) + for source_key, source in value.sources.items() + ], + ) elif isinstance(value, TableMetadataValue): yield GrapheneTableMetadataEntry( label=key, diff --git a/python_modules/dagster-graphql/dagster_graphql/schema/metadata.py b/python_modules/dagster-graphql/dagster_graphql/schema/metadata.py index 87b93bdf9fbf9..9a05880b13d59 100644 --- a/python_modules/dagster-graphql/dagster_graphql/schema/metadata.py +++ b/python_modules/dagster-graphql/dagster_graphql/schema/metadata.py @@ -162,6 +162,36 @@ class Meta: name = "JobMetadataEntry" +class GrapheneLocalFileSource(graphene.ObjectType): + filePath = graphene.NonNull(graphene.String) + lineNumber = graphene.NonNull(graphene.Int) + + class Meta: + name = "LocalFileSource" + + +class GrapheneSourceLocation(graphene.Union): + class Meta: + types = (GrapheneLocalFileSource,) + name = "SourceLocation" + + +class GrapheneSourceEntry(graphene.ObjectType): + key = graphene.NonNull(graphene.String) + source = graphene.NonNull(GrapheneSourceLocation) + + class Meta: + name = "SourceEntry" + + +class GrapheneSouceCodeLocationsMetadataEntry(graphene.ObjectType): + sources = non_null_list(GrapheneSourceEntry) + + class Meta: + interfaces = (GrapheneMetadataEntry,) + name = "SouceCodeLocationsMetadataEntry" + + class GrapheneNullMetadataEntry(graphene.ObjectType): class Meta: interfaces = (GrapheneMetadataEntry,) @@ -196,6 +226,7 @@ def types(): GraphenePipelineRunMetadataEntry, GrapheneAssetMetadataEntry, GrapheneJobMetadataEntry, + GrapheneSouceCodeLocationsMetadataEntry, GrapheneNullMetadataEntry, GrapheneTimestampMetadataEntry, ] diff --git a/python_modules/dagster/dagster/__init__.py b/python_modules/dagster/dagster/__init__.py index 04ef1c78d5f2a..8ae9b7620d1b2 100644 --- a/python_modules/dagster/dagster/__init__.py +++ b/python_modules/dagster/dagster/__init__.py @@ -279,6 +279,7 @@ TextMetadataValue as TextMetadataValue, TimestampMetadataValue as TimestampMetadataValue, UrlMetadataValue as UrlMetadataValue, + with_source_code_links as with_source_code_links, ) from dagster._core.definitions.metadata.table import ( TableColumn as TableColumn, diff --git a/python_modules/dagster/dagster/_core/definitions/metadata/__init__.py b/python_modules/dagster/dagster/_core/definitions/metadata/__init__.py index 1d0ee351384c5..3ea241d4bf610 100644 --- a/python_modules/dagster/dagster/_core/definitions/metadata/__init__.py +++ b/python_modules/dagster/dagster/_core/definitions/metadata/__init__.py @@ -36,6 +36,12 @@ NamespacedMetadataSet as NamespacedMetadataSet, TableMetadataSet as TableMetadataSet, ) +from .source_code import ( + DEFAULT_SOURCE_FILE_KEY as DEFAULT_SOURCE_FILE_KEY, + SouceCodeLocationsMetadataValue as SouceCodeLocationsMetadataValue, + SourceCodeLocationsMetadataSet as SourceCodeLocationsMetadataSet, + with_source_code_links as with_source_code_links, +) from .table import ( # re-exported TableColumn as TableColumn, TableColumnConstraints as TableColumnConstraints, @@ -88,7 +94,6 @@ T_Packable = TypeVar("T_Packable", bound=PackableValue, default=PackableValue, covariant=True) - # ######################## # ##### NORMALIZATION # ######################## diff --git a/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py b/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py new file mode 100644 index 0000000000000..3fd8c09d6fc34 --- /dev/null +++ b/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py @@ -0,0 +1,154 @@ +import inspect +import os +from typing import ( + TYPE_CHECKING, + Any, + Callable, + Mapping, + Optional, + Sequence, + Union, +) + +import pydantic + +import dagster._check as check +from dagster._annotations import experimental +from dagster._model import DagsterModel +from dagster._serdes import whitelist_for_serdes + +from .metadata_set import ( + NamespacedMetadataSet as NamespacedMetadataSet, + TableMetadataSet as TableMetadataSet, +) +from .types import MetadataValue + +if TYPE_CHECKING: + from dagster._core.definitions.assets import AssetsDefinition, SourceAsset + from dagster._core.definitions.cacheable_assets import CacheableAssetsDefinition + +DEFAULT_SOURCE_FILE_KEY = "asset_definition" + + +@experimental +@whitelist_for_serdes +class LocalFileSource(DagsterModel): + """Represents a local file source location.""" + + file_path: str + line_number: int + + +@experimental +@whitelist_for_serdes +class SouceCodeLocationsMetadataValue( + DagsterModel, MetadataValue["SouceCodeLocationsMetadataValue"] +): + """Metadata value type which represents source locations (locally or otherwise) + of the asset in question. For example, the file path and line number where the + asset is defined. + + Attributes: + sources (Dict[str, LocalFileSource]): + A labeled dictionary of sources. The main source file should be keyed with + the `DEFAULT_SOURCE_FILE_KEY` constant. + """ + + sources: Mapping[str, LocalFileSource] = {} + + @property + def value(self) -> "SouceCodeLocationsMetadataValue": + return self + + +def source_path_from_fn(fn: Callable[..., Any]) -> Optional[LocalFileSource]: + cwd = os.getcwd() + origin_file: Optional[str] = None + origin_line = None + try: + origin_file = os.path.abspath(os.path.join(cwd, inspect.getsourcefile(fn))) # type: ignore + origin_file = check.not_none(origin_file) + origin_line = inspect.getsourcelines(fn)[1] + except TypeError: + return None + + return LocalFileSource( + file_path=origin_file, + line_number=origin_line, + ) + + +class SourceCodeLocationsMetadataSet(NamespacedMetadataSet): + """Metadata entries that apply to asset definitions and which specify the source code location + for the asset. + """ + + source_code_locations: SouceCodeLocationsMetadataValue + + @classmethod + def namespace(cls) -> str: + return "dagster" + + +def _with_code_source_single_definition( + assets_def: Union["AssetsDefinition", "SourceAsset", "CacheableAssetsDefinition"], +) -> Union["AssetsDefinition", "SourceAsset", "CacheableAssetsDefinition"]: + from dagster._core.definitions.assets import AssetsDefinition + + # SourceAsset doesn't have an op definition to point to - cachable assets + # will be supported eventually but are a bit trickier + if not isinstance(assets_def, AssetsDefinition): + return assets_def + + metadata_by_key = dict(assets_def.metadata_by_key) or {} + + from dagster._core.definitions.decorators.op_decorator import DecoratedOpFunction + + base_fn = ( + assets_def.op.compute_fn.decorated_fn + if isinstance(assets_def.op.compute_fn, DecoratedOpFunction) + else assets_def.op.compute_fn + ) + source_path = source_path_from_fn(base_fn) + + if source_path: + sources = {DEFAULT_SOURCE_FILE_KEY: source_path} + + for key in assets_def.keys: + # defer to any existing metadata + sources_for_asset = {**sources} + try: + existing_source_code_metadata = SourceCodeLocationsMetadataSet.extract( + metadata_by_key.get(key, {}) + ) + sources_for_asset = { + **sources, + **existing_source_code_metadata.source_code_locations.sources, + } + except pydantic.ValidationError: + pass + + metadata_by_key[key] = { + **metadata_by_key.get(key, {}), + **SourceCodeLocationsMetadataSet( + source_code_locations=SouceCodeLocationsMetadataValue(sources=sources_for_asset) + ), + } + + return assets_def.with_attributes(metadata_by_key=metadata_by_key) + + +@experimental +def with_source_code_links( + assets_defs: Sequence[Union["AssetsDefinition", "SourceAsset", "CacheableAssetsDefinition"]], +) -> Sequence[Union["AssetsDefinition", "SourceAsset", "CacheableAssetsDefinition"]]: + """Wrapper function which attaches source code metadata to the provided asset definitions. + + Args: + assets_defs (Sequence[Union[AssetsDefinition, SourceAsset, CacheableAssetsDefinition]]): + The asset definitions to which source code metadata should be attached. + + Returns: + Sequence[AssetsDefinition]: The asset definitions with source code metadata attached. + """ + return [_with_code_source_single_definition(assets_def) for assets_def in assets_defs] diff --git a/python_modules/dagster/dagster_tests/asset_defs_tests/asset_package/module_with_assets.py b/python_modules/dagster/dagster_tests/asset_defs_tests/asset_package/module_with_assets.py index db02f5467a376..bdb8e93c82082 100644 --- a/python_modules/dagster/dagster_tests/asset_defs_tests/asset_package/module_with_assets.py +++ b/python_modules/dagster/dagster_tests/asset_defs_tests/asset_package/module_with_assets.py @@ -1,4 +1,9 @@ from dagster import AssetKey, SourceAsset, asset +from dagster._core.definitions.metadata import ( + LocalFileSource, + SouceCodeLocationsMetadataValue, + SourceCodeLocationsMetadataSet, +) # importing this makes it show up twice when we collect everything from .asset_subpackage.another_module_with_assets import miles_davis @@ -8,6 +13,14 @@ elvis_presley = SourceAsset(key=AssetKey("elvis_presley")) -@asset +@asset( + metadata={ + **SourceCodeLocationsMetadataSet( + source_code_locations=SouceCodeLocationsMetadataValue( + sources={"my_test_source": LocalFileSource(file_path=__file__, line_number=1)} + ) + ), + } +) def chuck_berry(elvis_presley, miles_davis): pass diff --git a/python_modules/dagster/dagster_tests/asset_defs_tests/test_asset_defs_source_metadata.py b/python_modules/dagster/dagster_tests/asset_defs_tests/test_asset_defs_source_metadata.py new file mode 100644 index 0000000000000..46641401d5954 --- /dev/null +++ b/python_modules/dagster/dagster_tests/asset_defs_tests/test_asset_defs_source_metadata.py @@ -0,0 +1,90 @@ +import os +from typing import cast + +from dagster import AssetsDefinition, load_assets_from_modules +from dagster._core.definitions.metadata import ( + DEFAULT_SOURCE_FILE_KEY, + LocalFileSource, + with_source_code_links, +) +from dagster._utils import file_relative_path + + +def test_asset_code_origins() -> None: + from dagster_tests.asset_defs_tests import asset_package + + from .asset_package import module_with_assets + + collection = load_assets_from_modules([asset_package, module_with_assets]) + + for asset in collection: + if isinstance(asset, AssetsDefinition): + for key in asset.keys: + # `chuck_berry` is the only asset with source code metadata manually + # attached to it + if asset.op.name == "chuck_berry": + assert "dagster/source_code_locations" in asset.metadata_by_key[key] + else: + assert "dagster/source_code_locations" not in asset.metadata_by_key[key] + + collection_with_source_metadata = with_source_code_links(collection) + + # path of the `dagster` module on the filesystem + dagster_module_path = os.path.normpath(file_relative_path(__file__, "../../")) + + # path of the current file relative to the `dagster` module root + path_in_module = "/dagster_tests/asset_defs_tests/" + + # {path to module}:{path to file relative to module root}:{line number} + expected_origins = { + "james_brown": dagster_module_path + path_in_module + "asset_package/__init__.py:12", + "chuck_berry": ( + dagster_module_path + path_in_module + "asset_package/module_with_assets.py:16" + ), + "little_richard": (dagster_module_path + path_in_module + "asset_package/__init__.py:4"), + "fats_domino": dagster_module_path + path_in_module + "asset_package/__init__.py:16", + "miles_davis": ( + dagster_module_path + + path_in_module + + "asset_package/asset_subpackage/another_module_with_assets.py:6" + ), + } + + for asset in collection_with_source_metadata: + if isinstance(asset, AssetsDefinition): + op_name = asset.op.name + assert op_name in expected_origins, f"Missing expected origin for op {op_name}" + + expected_file_path, expected_line_number = expected_origins[op_name].split(":") + + for key in asset.keys: + assert "dagster/source_code_locations" in asset.metadata_by_key[key] + + # `chuck_berry` is the only asset with source code metadata manually + # attached to it, which coexists with the automatically attached metadata + if op_name == "chuck_berry": + assert ( + len(asset.metadata_by_key[key]["dagster/source_code_locations"].sources) + == 2 + ) + else: + assert ( + len(asset.metadata_by_key[key]["dagster/source_code_locations"].sources) + == 1 + ) + + assert isinstance( + asset.metadata_by_key[key]["dagster/source_code_locations"].sources[ + DEFAULT_SOURCE_FILE_KEY + ], + LocalFileSource, + ) + meta = cast( + LocalFileSource, + asset.metadata_by_key[key]["dagster/source_code_locations"].sources[ + DEFAULT_SOURCE_FILE_KEY + ], + ) + + assert meta.file_path == expected_file_path + assert meta.line_number == int(expected_line_number) diff --git a/python_modules/dagster/dagster_tests/definitions_tests/metadata_tests/test_source_metadata_set.py b/python_modules/dagster/dagster_tests/definitions_tests/metadata_tests/test_source_metadata_set.py new file mode 100644 index 0000000000000..fd4645fbe72e2 --- /dev/null +++ b/python_modules/dagster/dagster_tests/definitions_tests/metadata_tests/test_source_metadata_set.py @@ -0,0 +1,59 @@ +from typing import cast + +from dagster._core.definitions.events import AssetMaterialization +from dagster._core.definitions.metadata import ( + DEFAULT_SOURCE_FILE_KEY, + LocalFileSource, + SouceCodeLocationsMetadataValue, + SourceCodeLocationsMetadataSet, +) + + +def test_source_metadata_set() -> None: + source_metadata = SourceCodeLocationsMetadataSet( + source_code_locations=SouceCodeLocationsMetadataValue( + sources={ + DEFAULT_SOURCE_FILE_KEY: LocalFileSource( + file_path="/Users/dagster/Documents/my_module/assets/my_asset.py", + line_number=12, + ) + } + ) + ) + + dict_source_metadata = dict(source_metadata) + assert dict_source_metadata == { + "dagster/source_code_locations": source_metadata.source_code_locations + } + source_data = cast( + SouceCodeLocationsMetadataValue, dict_source_metadata["dagster/source_code_locations"] + ) + assert len(source_data.sources) == 1 + assert isinstance( + source_data.sources[DEFAULT_SOURCE_FILE_KEY], + LocalFileSource, + ) + AssetMaterialization(asset_key="a", metadata=dict_source_metadata) + + splat_source_metadata = {**source_metadata} + assert splat_source_metadata == { + "dagster/source_code_locations": source_metadata.source_code_locations + } + source_data = cast( + SouceCodeLocationsMetadataValue, splat_source_metadata["dagster/source_code_locations"] + ) + assert len(source_data.sources) == 1 + assert isinstance( + source_data.sources[DEFAULT_SOURCE_FILE_KEY], + LocalFileSource, + ) + AssetMaterialization(asset_key="a", metadata=splat_source_metadata) + + assert dict( + SourceCodeLocationsMetadataSet(source_code_locations=SouceCodeLocationsMetadataValue()) + ) == {"dagster/source_code_locations": SouceCodeLocationsMetadataValue()} + assert SourceCodeLocationsMetadataSet.extract( + dict( + SourceCodeLocationsMetadataSet(source_code_locations=SouceCodeLocationsMetadataValue()) + ) + ) == SourceCodeLocationsMetadataSet(source_code_locations=SouceCodeLocationsMetadataValue())