Skip to content

Commit 9d25a61

Browse files
committed
rebase
1 parent dc31e0e commit 9d25a61

File tree

6 files changed

+342
-299
lines changed

6 files changed

+342
-299
lines changed

js_modules/dagster-ui/packages/ui-core/client.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js_modules/dagster-ui/packages/ui-core/src/asset-graph/SidebarAssetInfo.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import {
3232
import {useRecentAssetEvents} from '../assets/useRecentAssetEvents';
3333
import {DagsterTypeSummary} from '../dagstertype/DagsterType';
3434
import {DagsterTypeFragment} from '../dagstertype/types/DagsterType.types';
35+
import {MaterializationHistoryEventTypeSelector} from '../graphql/types';
3536
import {METADATA_ENTRY_FRAGMENT} from '../metadata/MetadataEntryFragment';
3637
import {TableSchemaAssetContext} from '../metadata/TableSchema';
3738
import {Description} from '../pipelines/Description';
@@ -60,7 +61,11 @@ export const SidebarAssetInfo = ({graphNode}: {graphNode: GraphNode}) => {
6061
const {lastMaterialization} = liveData || {};
6162
const asset = data?.assetNodeOrError.__typename === 'AssetNode' ? data.assetNodeOrError : null;
6263

63-
const recentEvents = useRecentAssetEvents(asset?.assetKey, 1);
64+
const recentEvents = useRecentAssetEvents(
65+
asset?.assetKey,
66+
1,
67+
MaterializationHistoryEventTypeSelector.MATERIALIZATION,
68+
);
6469
const latestMaterializationEvent = recentEvents.materializations
6570
? recentEvents.materializations[recentEvents.materializations.length - 1]
6671
: undefined;

js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventMetadataPlots.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
useLatestAssetPartitionMaterializations,
88
useRecentAssetEvents,
99
} from './useRecentAssetEvents';
10+
import {MaterializationHistoryEventTypeSelector} from '../graphql/types';
1011

1112
export const AssetTimeMetadataPlots = ({
1213
assetKey,
@@ -19,7 +20,11 @@ export const AssetTimeMetadataPlots = ({
1920
asSidebarSection?: boolean;
2021
columnCount?: number;
2122
}) => {
22-
const {materializations, observations, loading} = useRecentAssetEvents(assetKey, limit);
23+
const {materializations, observations, loading} = useRecentAssetEvents(
24+
assetKey,
25+
limit,
26+
MaterializationHistoryEventTypeSelector.MATERIALIZATION,
27+
);
2328
const grouped = useGroupedEvents('time', materializations, observations, undefined);
2429

2530
if (loading) {

js_modules/dagster-ui/packages/ui-core/src/assets/RecentUpdatesTimeline.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {AssetKey} from './types';
2020
import {useRecentAssetEvents} from './useRecentAssetEvents';
2121
import {Timestamp} from '../app/time/Timestamp';
2222
import {AssetRunLink} from '../asset-graph/AssetRunLinking';
23-
import {TimestampMetadataEntry} from '../graphql/types';
23+
import {MaterializationHistoryEventTypeSelector, TimestampMetadataEntry} from '../graphql/types';
2424
import {RunStatusWithStats} from '../runs/RunStatusDots';
2525
import {titleForRun} from '../runs/RunUtils';
2626
import {useFormatDateTime} from '../ui/useFormatDateTime';
@@ -39,7 +39,11 @@ type Props = {
3939
};
4040

4141
export const RecentUpdatesTimelineForAssetKey = memo((props: {assetKey: AssetKey}) => {
42-
const data = useRecentAssetEvents(props.assetKey, 100);
42+
const data = useRecentAssetEvents(
43+
props.assetKey,
44+
100,
45+
MaterializationHistoryEventTypeSelector.ALL,
46+
);
4347
return <RecentUpdatesTimeline assetKey={props.assetKey} {...data} />;
4448
});
4549

0 commit comments

Comments
 (0)