Changeset View
Changeset View
Standalone View
Standalone View
js_modules/dagit/src/assets/AssetView.tsx
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | const AssetValueGraphFragment = gql` | ||||
} | } | ||||
`; | `; | ||||
const AssetPartitionGridFragment = gql` | const AssetPartitionGridFragment = gql` | ||||
fragment AssetPartitionGridFragment on AssetMaterialization { | fragment AssetPartitionGridFragment on AssetMaterialization { | ||||
partition | partition | ||||
runOrError { | runOrError { | ||||
... on PipelineRun { | ... on PipelineRun { | ||||
id | |||||
pipelineSnapshotId | pipelineSnapshotId | ||||
} | } | ||||
} | } | ||||
} | } | ||||
`; | `; | ||||
export const ASSET_QUERY = gql` | export const ASSET_QUERY = gql` | ||||
query AssetQuery($assetKey: AssetKeyInput!) { | query AssetQuery($assetKey: AssetKeyInput!) { | ||||
assetOrError(assetKey: $assetKey) { | assetOrError(assetKey: $assetKey) { | ||||
... on Asset { | ... on Asset { | ||||
key { | key { | ||||
path | path | ||||
} | } | ||||
historicalMaterializations: assetMaterializations { | historicalMaterializations: assetMaterializations { | ||||
...AssetValueGraphFragment | ...AssetValueGraphFragment | ||||
...AssetPartitionGridFragment | ...AssetPartitionGridFragment | ||||
} | } | ||||
lastMaterializations: assetMaterializations(limit: 1) { | lastMaterializations: assetMaterializations(limit: 1) { | ||||
runOrError { | runOrError { | ||||
... on PipelineRun { | ... on PipelineRun { | ||||
id | |||||
runId | runId | ||||
status | status | ||||
pipelineName | pipelineName | ||||
} | } | ||||
} | } | ||||
materializationEvent { | materializationEvent { | ||||
runId | runId | ||||
timestamp | timestamp | ||||
materialization { | materialization { | ||||
label | label | ||||
description | description | ||||
metadataEntries { | metadataEntries { | ||||
...MetadataEntryFragment | ...MetadataEntryFragment | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
runs(limit: 10) { | runs(limit: 10) { | ||||
id | |||||
...RunTableRunFragment | ...RunTableRunFragment | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
${AssetValueGraphFragment} | ${AssetValueGraphFragment} | ||||
${AssetPartitionGridFragment} | ${AssetPartitionGridFragment} | ||||
${MetadataEntry.fragments.MetadataEntryFragment} | ${MetadataEntry.fragments.MetadataEntryFragment} | ||||
${RunTable.fragments.RunTableRunFragment} | ${RunTable.fragments.RunTableRunFragment} | ||||
`; | `; |