Skip to content

Commit

Permalink
adds source asset metadata to dagit (#7015)
Browse files Browse the repository at this point in the history
  • Loading branch information
smackesey committed Mar 12, 2022
1 parent 809665e commit 94c8e7f
Show file tree
Hide file tree
Showing 11 changed files with 1,285 additions and 377 deletions.
8 changes: 4 additions & 4 deletions js_modules/dagit/packages/core/src/assets/AssetMetadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const metadataForAssetNode = (
assetNode: AssetNodeOpMetadataFragment,
): {assetType?: DagsterTypeFragment; assetMetadata: MetadataEntryFragment[]} => {
const assetType = assetNode.op?.outputDefinitions[0]?.type;
const assetMetadata = assetNode.op?.outputDefinitions[0]?.metadataEntries || [];
const assetMetadata = assetNode.metadataEntries || [];
return {assetType, assetMetadata};
};

Expand All @@ -37,11 +37,11 @@ export const AssetMetadataTable: React.FC<{
export const ASSET_NODE_OP_METADATA_FRAGMENT = gql`
fragment AssetNodeOpMetadataFragment on AssetNode {
id
metadataEntries {
...MetadataEntryFragment
}
op {
outputDefinitions {
metadataEntries {
...MetadataEntryFragment
}
type {
...DagsterTypeFragment
}
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94c8e7f

Please sign in to comment.