Skip to content

Commit

Permalink
hide soft deleted entities in lineage (datahub-project#4835)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-lyons authored and justinas-marozas committed May 17, 2022
1 parent 23b9400 commit d46c6b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datahub-web-react/src/app/entity/EntityRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,16 @@ export default class EntityRegistry {
...entity.getLineageVizConfig?.(data),
downstreamChildren: genericEntityProperties?.downstream?.relationships
?.filter((relationship) => relationship.entity)
// eslint-disable-next-line @typescript-eslint/dot-notation
?.filter((relationship) => !relationship.entity?.['status']?.removed)
?.map((relationship) => ({
entity: relationship.entity as EntityInterface,
type: (relationship.entity as EntityInterface).type,
})),
upstreamChildren: genericEntityProperties?.upstream?.relationships
?.filter((relationship) => relationship.entity)
// eslint-disable-next-line @typescript-eslint/dot-notation
?.filter((relationship) => !relationship.entity?.['status']?.removed)
?.map((relationship) => ({
entity: relationship.entity as EntityInterface,
type: (relationship.entity as EntityInterface).type,
Expand Down

0 comments on commit d46c6b6

Please sign in to comment.