Skip to content

Commit

Permalink
fix(ui) Fix parentNodes overfetching everywhere it's used (#6446)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Collins <[email protected]>
  • Loading branch information
chriscollins3456 and Chris Collins authored Nov 15, 2022
1 parent 9862eff commit 3de95d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 38 deletions.
39 changes: 2 additions & 37 deletions datahub-web-react/src/graphql/dataset.graphql
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
fragment simplifiedGlossaryTerms on GlossaryTerms {
terms {
term {
urn
name
type
hierarchicalName
properties {
name
description
definition
termSource
customProperties {
key
value
}
}
ownership {
...ownershipFields
}
parentNodes {
count
nodes {
urn
type
properties {
name
}
}
}
}
associatedUrn
}
}

query getDataProfiles($urn: String!, $limit: Int, $startTime: Long, $endTime: Long) {
dataset(urn: $urn) {
urn
Expand Down Expand Up @@ -84,7 +49,7 @@ fragment nonSiblingDatasetFields on Dataset {
...globalTagsFields
}
glossaryTerms {
...simplifiedGlossaryTerms
...glossaryTerms
}
}
}
Expand All @@ -98,7 +63,7 @@ fragment nonSiblingDatasetFields on Dataset {
...globalTagsFields
}
glossaryTerms {
...simplifiedGlossaryTerms
...glossaryTerms
}
subTypes {
typeNames
Expand Down
6 changes: 5 additions & 1 deletion datahub-web-react/src/graphql/fragments.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ fragment parentContainersFields on ParentContainersResult {
fragment parentNodesFields on ParentNodesResult {
count
nodes {
...glossaryNode
urn
type
properties {
name
}
}
}

Expand Down

0 comments on commit 3de95d0

Please sign in to comment.