@@ -85,14 +104,29 @@ export const TableSchema = ({
{column.name}
-
+
{!column.constraints.nullable && NonNullableTag}
{column.constraints.unique && UniqueTag}
{column.constraints.other.map((constraint, i) => (
))}
|
- {column.description} |
+
+
+ |
+ {assetKey ? (
+
+
+ }
+ to={assetDetailsPathForKey(assetKey, {
+ view: 'lineage',
+ column: column.name,
+ })}
+ />
+
+ |
+ ) : undefined}
))}
{rows.length === 0 && (
@@ -108,7 +142,7 @@ export const TableSchema = ({
);
};
-const iconForType = (type: string): IconName | null => {
+export const iconForColumnType = (type: string): IconName | null => {
const lower = type.toLowerCase();
if (lower.includes('bool')) {
return 'datatype_bool';
@@ -128,12 +162,14 @@ const iconForType = (type: string): IconName | null => {
return null;
};
-const TypeTag = ({type = '', icon}: {type: string; icon: IconName | null}) => {
+export const TypeTag = ({type = ''}: {type: string}) => {
if (type.trim().replace(/\?/g, '').length === 0) {
// Do not render type '' or '?' or any other empty value.
return ;
}
+ const icon = iconForColumnType(type);
+
return (
diff --git a/js_modules/dagster-ui/patches/dagre+0.8.5.patch b/js_modules/dagster-ui/patches/dagre+0.8.5.patch
deleted file mode 100644
index fab38165260b3..0000000000000
--- a/js_modules/dagster-ui/patches/dagre+0.8.5.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff --git a/node_modules/dagre/lib/order/index.js b/node_modules/dagre/lib/order/index.js
-index 4ac2d9f..a2182fe 100644
---- a/node_modules/dagre/lib/order/index.js
-+++ b/node_modules/dagre/lib/order/index.js
-@@ -73,7 +73,9 @@ function sweepLayerGraphs(layerGraphs, biasRight) {
- function assignOrder(g, layering) {
- _.forEach(layering, function(layer) {
- _.forEach(layer, function(v, i) {
-- g.node(v).order = i;
-+ try {
-+ g.node(v).order = i;
-+ } catch (e) {}
- });
- });
- }
diff --git a/js_modules/dagster-ui/yarn.lock b/js_modules/dagster-ui/yarn.lock
index f44fbb20646dc..fb58b04e57528 100644
--- a/js_modules/dagster-ui/yarn.lock
+++ b/js_modules/dagster-ui/yarn.lock
@@ -2598,7 +2598,7 @@ __metadata:
codemirror: "npm:^5.65.2"
color: "npm:^3.0.0"
cronstrue: "npm:^1.84.0"
- dagre: "npm:^0.8.5"
+ dagre: "dagster-io/dagre#0.8.5"
date-fns: "npm:^2.28.0"
dayjs: "npm:^1.11.7"
deepmerge: "npm:^4.2.2"
@@ -11528,13 +11528,13 @@ __metadata:
languageName: node
linkType: hard
-"dagre@npm:^0.8.5":
+"dagre@dagster-io/dagre#0.8.5":
version: 0.8.5
- resolution: "dagre@npm:0.8.5"
+ resolution: "dagre@https://github.com/dagster-io/dagre.git#commit=c2a1821cc7f8a220e819461b82b6ddbf48189100"
dependencies:
graphlib: "npm:^2.1.8"
lodash: "npm:^4.17.15"
- checksum: f39899e29e9090581d67177ef6e2dd3ca5d7f764fbf3de81758d879bba66fee6fd8802d41d0c5d3d9a0563b334e99e1454a8d6ab4ce17e8e4f50836a3a403fdd
+ checksum: 6a94d8d9b1c3132b406b5921fd2bbd1a207c78fc1048216787fec68fad1d96f649cb084d1ae576f5456532a4275f22a113d140265f05937db60e5918a25adac5
languageName: node
linkType: hard