datajunction-ui 0.0.1-a74 → 0.0.1-a76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ export default function NodeHistory({ node, djClient }) {
|
|
|
57
57
|
</div>
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
60
|
+
if (['create', 'update', 'delete'].includes(event.activity_type) && event.entity_type === 'link') {
|
|
61
61
|
return (
|
|
62
62
|
<div className="history-left">
|
|
63
63
|
<b style={{ textTransform: 'capitalize' }}>{event.activity_type}</b>{' '}
|
|
@@ -166,7 +166,7 @@ export default function NodeHistory({ node, djClient }) {
|
|
|
166
166
|
) {
|
|
167
167
|
return (
|
|
168
168
|
<div className="history-left">
|
|
169
|
-
Materialized table{' '}
|
|
169
|
+
<b>Materialized</b> table{' '}
|
|
170
170
|
<code>
|
|
171
171
|
{event.post.catalog}.{event.post.schema_}.{event.post.table}
|
|
172
172
|
</code>{' '}
|
|
@@ -180,10 +180,10 @@ export default function NodeHistory({ node, djClient }) {
|
|
|
180
180
|
if (event.activity_type === 'create' && event.entity_type === 'backfill') {
|
|
181
181
|
return (
|
|
182
182
|
<div className="history-left">
|
|
183
|
-
Backfill created for materialization {event.details.materialization}{' '}
|
|
184
|
-
for partition {event.details.partition.column_name} from{' '}
|
|
185
|
-
{event.details.partition.range[0]} to{' '}
|
|
186
|
-
{event.details.partition.range[1]}
|
|
183
|
+
<b>Backfill</b> created for materialization {event.details.materialization}{' '}
|
|
184
|
+
for partition {event.details.partition[0].column_name} from{' '}
|
|
185
|
+
{event.details.partition[0].range[0]} to{' '}
|
|
186
|
+
{event.details.partition[0].range[1]}
|
|
187
187
|
</div>
|
|
188
188
|
);
|
|
189
189
|
}
|
|
@@ -182,6 +182,8 @@ export default function RevisionDiff() {
|
|
|
182
182
|
{prevRevision[0].query}
|
|
183
183
|
</SyntaxHighlighter>
|
|
184
184
|
</>
|
|
185
|
+
) : field === 'columns' ? (
|
|
186
|
+
<div>{prevRevision[0][field].map(col => <>{col.name}<br /></>)}</div>
|
|
185
187
|
) : (
|
|
186
188
|
prevRevision[0][field].toString()
|
|
187
189
|
)
|
package/src/mocks/mockNodes.jsx
CHANGED
|
@@ -422,11 +422,11 @@ export const mocks = {
|
|
|
422
422
|
post: { status: 'invalid' },
|
|
423
423
|
details: {
|
|
424
424
|
materialization: 'druid_metrics_cube__incremental_time__xyz',
|
|
425
|
-
partition: {
|
|
425
|
+
partition: [{
|
|
426
426
|
column_name: 'xyz.abc',
|
|
427
427
|
values: null,
|
|
428
428
|
range: ['20240201', '20240301'],
|
|
429
|
-
},
|
|
429
|
+
}],
|
|
430
430
|
},
|
|
431
431
|
created_at: '2023-08-21T16:48:56.950482+00:00',
|
|
432
432
|
},
|