Skip to content

Commit

Permalink
display non-sda assets in asset catalog (#6779)
Browse files Browse the repository at this point in the history
  • Loading branch information
prha committed Feb 24, 2022
1 parent e53dec4 commit f470ea9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions js_modules/dagit/packages/core/src/assets/AssetTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,18 @@ const AssetEntryRow: React.FC<{
<td>
{asset ? (
<Box flex={{gap: 8, alignItems: 'center'}}>
<Link
to={instanceAssetsExplorerPathToURL({
opsQuery: `++"${tokenForAssetKey({path})}"++`,
opNames: [tokenForAssetKey({path})],
})}
>
<ButtonWIP disabled={!asset.definition?.opName}>View in Asset Graph</ButtonWIP>
</Link>
{asset.definition?.opName ? (
<Link
to={instanceAssetsExplorerPathToURL({
opsQuery: `++"${tokenForAssetKey({path})}"++`,
opNames: [tokenForAssetKey({path})],
})}
>
<ButtonWIP>View in Asset Graph</ButtonWIP>
</Link>
) : (
<ButtonWIP disabled={true}>View in Asset Graph</ButtonWIP>
)}
<Popover
position="bottom-right"
content={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const filterAssetsToRepos = (assets: Asset[], visibleRepos: DagsterRepoOption[])
);
return assets.filter(
(a) =>
a.definition &&
!a.definition ||
visibleRepoHashes.includes(
buildRepoPath(a.definition.repository.name, a.definition.repository.location.name),
),
Expand Down

0 comments on commit f470ea9

Please sign in to comment.