@@ -104,29 +85,14 @@ export const TableSchema = ({
{column.name}
-
+
{!column.constraints.nullable && NonNullableTag}
{column.constraints.unique && UniqueTag}
{column.constraints.other.map((constraint, i) => (
))}
|
-
-
- |
- {assetKey ? (
-
-
- }
- to={assetDetailsPathForKey(assetKey, {
- view: 'lineage',
- column: column.name,
- })}
- />
-
- |
- ) : undefined}
+ {column.description} |
))}
{rows.length === 0 && (
@@ -142,7 +108,7 @@ export const TableSchema = ({
);
};
-export const iconForColumnType = (type: string): IconName | null => {
+const iconForType = (type: string): IconName | null => {
const lower = type.toLowerCase();
if (lower.includes('bool')) {
return 'datatype_bool';
@@ -162,14 +128,12 @@ export const iconForColumnType = (type: string): IconName | null => {
return null;
};
-export const TypeTag = ({type = ''}: {type: string}) => {
+const TypeTag = ({type = '', icon}: {type: string; icon: IconName | null}) => {
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
new file mode 100644
index 0000000000000..fab38165260b3
--- /dev/null
+++ b/js_modules/dagster-ui/patches/dagre+0.8.5.patch
@@ -0,0 +1,15 @@
+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 fb58b04e57528..f44fbb20646dc 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: "dagster-io/dagre#0.8.5"
+ dagre: "npm:^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@dagster-io/dagre#0.8.5":
+"dagre@npm:^0.8.5":
version: 0.8.5
- resolution: "dagre@https://github.com/dagster-io/dagre.git#commit=c2a1821cc7f8a220e819461b82b6ddbf48189100"
+ resolution: "dagre@npm:0.8.5"
dependencies:
graphlib: "npm:^2.1.8"
lodash: "npm:^4.17.15"
- checksum: 6a94d8d9b1c3132b406b5921fd2bbd1a207c78fc1048216787fec68fad1d96f649cb084d1ae576f5456532a4275f22a113d140265f05937db60e5918a25adac5
+ checksum: f39899e29e9090581d67177ef6e2dd3ca5d7f764fbf3de81758d879bba66fee6fd8802d41d0c5d3d9a0563b334e99e1454a8d6ab4ce17e8e4f50836a3a403fdd
languageName: node
linkType: hard