File tree 1 file changed +5
-0
lines changed
js_modules/dagster-ui/packages/ui-core/src/asset-data
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import { FeatureFlag } from 'shared/app/FeatureFlags.oss' ;
2
3
3
4
import { ApolloClient , gql , useApolloClient } from '../apollo-client' ;
4
5
import { AssetBaseData } from './AssetBaseDataProvider' ;
@@ -8,13 +9,17 @@ import {liveDataFactory} from '../live-data-provider/Factory';
8
9
import { LiveDataThreadID } from '../live-data-provider/LiveDataThread' ;
9
10
import { useBlockTraceUntilTrue } from '../performance/TraceContext' ;
10
11
import { AssetHealthQuery , AssetHealthQueryVariables } from './types/AssetHealthDataProvider.types' ;
12
+ import { featureEnabled } from '../app/Flags' ;
11
13
12
14
function init ( ) {
13
15
return liveDataFactory (
14
16
( ) => {
15
17
return useApolloClient ( ) ;
16
18
} ,
17
19
async ( keys , client : ApolloClient < any > ) => {
20
+ if ( ! featureEnabled ( FeatureFlag . flagUseNewObserveUIs ) ) {
21
+ return Object . fromEntries ( keys . map ( ( key ) => [ key , null ] ) ) ;
22
+ }
18
23
const assetKeys = keys . map ( tokenToAssetKey ) ;
19
24
const healthResponse = await client . query < AssetHealthQuery , AssetHealthQueryVariables > ( {
20
25
query : ASSETS_HEALTH_INFO_QUERY ,
You can’t perform that action at this time.
0 commit comments