1
- import { DBT_URN } from '@app/ingest/source/builder/constants' ;
2
1
import { useGetLineageTimeParams } from '@app/lineage/utils/useGetLineageTimeParams' ;
3
2
import { LineageNodesContext } from '@app/lineageV2/common' ;
4
3
import computeOrFilters from '@app/lineageV2/LineageFilterNode/computeOrFilters' ;
4
+ import { DEFAULT_IGNORE_AS_HOPS , DEFAULT_SEARCH_FLAGS } from '@app/lineageV2/useSearchAcrossLineage' ;
5
5
import { DEGREE_FILTER_NAME } from '@app/search/utils/constants' ;
6
6
import { useContext } from 'react' ;
7
7
import { PlatformFieldsFragment } from '../../../graphql/fragments.generated' ;
8
8
import { useAggregateAcrossLineageQuery } from '../../../graphql/search.generated' ;
9
- import { AggregationMetadata , EntityType , LineageDirection } from '../../../types.generated' ;
9
+ import { AggregationMetadata , LineageDirection } from '../../../types.generated' ;
10
10
import { ENTITY_SUB_TYPE_FILTER_NAME , FILTER_DELIMITER , PLATFORM_FILTER_NAME } from '../../searchV2/utils/constants' ;
11
11
12
12
export type PlatformAggregate = readonly [ string , number , PlatformFieldsFragment ] ;
@@ -25,7 +25,7 @@ export default function useFetchFilterNodeContents(parent: string, direction: Li
25
25
const orFilters = computeOrFilters (
26
26
[ { field : DEGREE_FILTER_NAME , values : [ '1' ] } ] ,
27
27
hideTransformations ,
28
- showDataProcessInstances ,
28
+ ! showDataProcessInstances ,
29
29
) ;
30
30
const { data } = useAggregateAcrossLineageQuery ( {
31
31
skip,
@@ -39,15 +39,10 @@ export default function useFetchFilterNodeContents(parent: string, direction: Li
39
39
lineageFlags : {
40
40
startTimeMillis,
41
41
endTimeMillis,
42
- ignoreAsHops : [
43
- {
44
- entityType : EntityType . Dataset ,
45
- platforms : [ DBT_URN ] ,
46
- } ,
47
- { entityType : EntityType . DataJob } ,
48
- ] ,
42
+ ignoreAsHops : DEFAULT_IGNORE_AS_HOPS ,
49
43
} ,
50
44
searchFlags : {
45
+ ...DEFAULT_SEARCH_FLAGS ,
51
46
skipCache : true , // TODO: Figure how to get around not needing this
52
47
} ,
53
48
} ,
0 commit comments