mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-04 06:43:16 +00:00
feat(ui): Adding GraphQL queries to fetch entity deprecation status (#4614)
This commit is contained in:
parent
060f965577
commit
45e09ca824
@ -1392,7 +1392,7 @@ type Container implements Entity {
|
|||||||
domain: Domain
|
domain: Domain
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The deprecation status of the dashboard
|
The deprecation status of the container
|
||||||
"""
|
"""
|
||||||
deprecation: Deprecation
|
deprecation: Deprecation
|
||||||
|
|
||||||
|
@ -205,6 +205,7 @@ const dataset1 = {
|
|||||||
downstream: null,
|
downstream: null,
|
||||||
health: null,
|
health: null,
|
||||||
assertions: null,
|
assertions: null,
|
||||||
|
deprecation: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
const dataset2 = {
|
const dataset2 = {
|
||||||
@ -283,6 +284,7 @@ const dataset2 = {
|
|||||||
health: null,
|
health: null,
|
||||||
assertions: null,
|
assertions: null,
|
||||||
status: null,
|
status: null,
|
||||||
|
deprecation: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const dataset3 = {
|
export const dataset3 = {
|
||||||
@ -789,6 +791,7 @@ const glossaryTerm1 = {
|
|||||||
sourceRef: 'sourceRef',
|
sourceRef: 'sourceRef',
|
||||||
sourceURI: 'sourceURI',
|
sourceURI: 'sourceURI',
|
||||||
},
|
},
|
||||||
|
deprecation: null,
|
||||||
} as GlossaryTerm;
|
} as GlossaryTerm;
|
||||||
|
|
||||||
const glossaryTerm2 = {
|
const glossaryTerm2 = {
|
||||||
@ -831,6 +834,7 @@ const glossaryTerm2 = {
|
|||||||
],
|
],
|
||||||
__typename: 'GlossaryTermProperties',
|
__typename: 'GlossaryTermProperties',
|
||||||
},
|
},
|
||||||
|
deprecation: null,
|
||||||
isRealtedTerms: {
|
isRealtedTerms: {
|
||||||
start: 0,
|
start: 0,
|
||||||
count: 0,
|
count: 0,
|
||||||
@ -922,6 +926,7 @@ const glossaryTerm3 = {
|
|||||||
],
|
],
|
||||||
__typename: 'GlossaryRelatedTerms',
|
__typename: 'GlossaryRelatedTerms',
|
||||||
},
|
},
|
||||||
|
deprecation: null,
|
||||||
__typename: 'GlossaryTerm',
|
__typename: 'GlossaryTerm',
|
||||||
} as GlossaryTerm;
|
} as GlossaryTerm;
|
||||||
|
|
||||||
@ -1010,6 +1015,7 @@ export const dataFlow1 = {
|
|||||||
...dataPlatform,
|
...dataPlatform,
|
||||||
},
|
},
|
||||||
domain: null,
|
domain: null,
|
||||||
|
deprecation: null,
|
||||||
} as DataFlow;
|
} as DataFlow;
|
||||||
|
|
||||||
export const dataJob1 = {
|
export const dataJob1 = {
|
||||||
@ -1086,6 +1092,7 @@ export const dataJob1 = {
|
|||||||
},
|
},
|
||||||
domain: null,
|
domain: null,
|
||||||
status: null,
|
status: null,
|
||||||
|
deprecation: null,
|
||||||
} as DataJob;
|
} as DataJob;
|
||||||
|
|
||||||
export const dataJob2 = {
|
export const dataJob2 = {
|
||||||
@ -1147,6 +1154,7 @@ export const dataJob2 = {
|
|||||||
domain: null,
|
domain: null,
|
||||||
upstream: null,
|
upstream: null,
|
||||||
downstream: null,
|
downstream: null,
|
||||||
|
deprecation: null,
|
||||||
} as DataJob;
|
} as DataJob;
|
||||||
|
|
||||||
export const dataJob3 = {
|
export const dataJob3 = {
|
||||||
@ -1209,6 +1217,7 @@ export const dataJob3 = {
|
|||||||
upstream: null,
|
upstream: null,
|
||||||
downstream: null,
|
downstream: null,
|
||||||
status: null,
|
status: null,
|
||||||
|
deprecation: null,
|
||||||
} as DataJob;
|
} as DataJob;
|
||||||
|
|
||||||
export const mlModel = {
|
export const mlModel = {
|
||||||
@ -1284,6 +1293,7 @@ export const mlModel = {
|
|||||||
upstream: null,
|
upstream: null,
|
||||||
downstream: null,
|
downstream: null,
|
||||||
status: null,
|
status: null,
|
||||||
|
deprecation: null,
|
||||||
} as MlModel;
|
} as MlModel;
|
||||||
|
|
||||||
export const mlModelGroup = {
|
export const mlModelGroup = {
|
||||||
@ -1347,6 +1357,7 @@ export const mlModelGroup = {
|
|||||||
upstream: null,
|
upstream: null,
|
||||||
downstream: null,
|
downstream: null,
|
||||||
status: null,
|
status: null,
|
||||||
|
deprecation: null,
|
||||||
} as MlModelGroup;
|
} as MlModelGroup;
|
||||||
|
|
||||||
export const recommendationModules = [
|
export const recommendationModules = [
|
||||||
|
@ -24,6 +24,7 @@ import {
|
|||||||
Container,
|
Container,
|
||||||
Health,
|
Health,
|
||||||
Status,
|
Status,
|
||||||
|
Deprecation,
|
||||||
} from '../../../types.generated';
|
} from '../../../types.generated';
|
||||||
import { FetchedEntity } from '../../lineage/types';
|
import { FetchedEntity } from '../../lineage/types';
|
||||||
|
|
||||||
@ -73,6 +74,7 @@ export type GenericEntityProperties = {
|
|||||||
container?: Maybe<Container>;
|
container?: Maybe<Container>;
|
||||||
health?: Maybe<Health>;
|
health?: Maybe<Health>;
|
||||||
status?: Maybe<Status>;
|
status?: Maybe<Status>;
|
||||||
|
deprecation?: Maybe<Deprecation>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GenericEntityUpdate = {
|
export type GenericEntityUpdate = {
|
||||||
|
@ -47,6 +47,9 @@ query getChart($urn: String!) {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
inputs: relationships(input: { types: ["Consumes"], direction: OUTGOING, start: 0, count: 100 }) {
|
inputs: relationships(input: { types: ["Consumes"], direction: OUTGOING, start: 0, count: 100 }) {
|
||||||
...fullRelationshipResults
|
...fullRelationshipResults
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,8 @@ query getContainer($urn: String!) {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,9 @@ fragment dataFlowFields on DataFlow {
|
|||||||
status {
|
status {
|
||||||
removed
|
removed
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query getDataFlow($urn: String!) {
|
query getDataFlow($urn: String!) {
|
||||||
@ -80,6 +83,9 @@ query getDataFlow($urn: String!) {
|
|||||||
glossaryTerms {
|
glossaryTerms {
|
||||||
...glossaryTerms
|
...glossaryTerms
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,9 @@ query getDataJob($urn: String!) {
|
|||||||
status {
|
status {
|
||||||
removed
|
removed
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,13 @@ fragment glossaryTerms on GlossaryTerms {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment deprecationFields on Deprecation {
|
||||||
|
actor
|
||||||
|
deprecated
|
||||||
|
note
|
||||||
|
decommissionTime
|
||||||
|
}
|
||||||
|
|
||||||
fragment ownershipFields on Ownership {
|
fragment ownershipFields on Ownership {
|
||||||
owners {
|
owners {
|
||||||
owner {
|
owner {
|
||||||
@ -171,12 +178,6 @@ fragment nonRecursiveDatasetFields on Dataset {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
deprecation {
|
|
||||||
actor
|
|
||||||
deprecated
|
|
||||||
note
|
|
||||||
decommissionTime
|
|
||||||
}
|
|
||||||
globalTags {
|
globalTags {
|
||||||
...globalTagsFields
|
...globalTagsFields
|
||||||
}
|
}
|
||||||
@ -192,6 +193,9 @@ fragment nonRecursiveDatasetFields on Dataset {
|
|||||||
container {
|
container {
|
||||||
...entityContainer
|
...entityContainer
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment nonRecursiveDataFlowFields on DataFlow {
|
fragment nonRecursiveDataFlowFields on DataFlow {
|
||||||
@ -222,6 +226,9 @@ fragment nonRecursiveDataFlowFields on DataFlow {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment nonRecursiveDataJobFields on DataJob {
|
fragment nonRecursiveDataJobFields on DataJob {
|
||||||
@ -241,6 +248,9 @@ fragment nonRecursiveDataJobFields on DataJob {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment dataJobFields on DataJob {
|
fragment dataJobFields on DataJob {
|
||||||
@ -288,6 +298,9 @@ fragment dataJobFields on DataJob {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment dashboardFields on Dashboard {
|
fragment dashboardFields on Dashboard {
|
||||||
@ -336,6 +349,9 @@ fragment dashboardFields on Dashboard {
|
|||||||
status {
|
status {
|
||||||
removed
|
removed
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment nonRecursiveMLFeature on MLFeature {
|
fragment nonRecursiveMLFeature on MLFeature {
|
||||||
@ -373,6 +389,9 @@ fragment nonRecursiveMLFeature on MLFeature {
|
|||||||
status {
|
status {
|
||||||
removed
|
removed
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment nonRecursiveMLPrimaryKey on MLPrimaryKey {
|
fragment nonRecursiveMLPrimaryKey on MLPrimaryKey {
|
||||||
@ -410,6 +429,9 @@ fragment nonRecursiveMLPrimaryKey on MLPrimaryKey {
|
|||||||
status {
|
status {
|
||||||
removed
|
removed
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment nonRecursiveMLFeatureTable on MLFeatureTable {
|
fragment nonRecursiveMLFeatureTable on MLFeatureTable {
|
||||||
@ -438,6 +460,9 @@ fragment nonRecursiveMLFeatureTable on MLFeatureTable {
|
|||||||
status {
|
status {
|
||||||
removed
|
removed
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment schemaMetadataFields on SchemaMetadata {
|
fragment schemaMetadataFields on SchemaMetadata {
|
||||||
@ -553,6 +578,9 @@ fragment nonRecursiveMLModel on MLModel {
|
|||||||
status {
|
status {
|
||||||
removed
|
removed
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment nonRecursiveMLModelGroupFields on MLModelGroup {
|
fragment nonRecursiveMLModelGroupFields on MLModelGroup {
|
||||||
@ -570,6 +598,9 @@ fragment nonRecursiveMLModelGroupFields on MLModelGroup {
|
|||||||
status {
|
status {
|
||||||
removed
|
removed
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment platformFields on DataPlatform {
|
fragment platformFields on DataPlatform {
|
||||||
@ -620,6 +651,9 @@ fragment entityContainer on Container {
|
|||||||
subTypes {
|
subTypes {
|
||||||
typeNames
|
typeNames
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment entityDomain on Domain {
|
fragment entityDomain on Domain {
|
||||||
|
@ -49,5 +49,8 @@ query getGlossaryTerm($urn: String!, $start: Int, $count: Int) {
|
|||||||
schemaMetadata(version: 0) {
|
schemaMetadata(version: 0) {
|
||||||
...schemaMetadataFields
|
...schemaMetadataFields
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,3 +45,7 @@ mutation unsetDomain($entityUrn: String!) {
|
|||||||
mutation setTagColor($urn: String!, $colorHex: String!) {
|
mutation setTagColor($urn: String!, $colorHex: String!) {
|
||||||
setTagColor(urn: $urn, colorHex: $colorHex)
|
setTagColor(urn: $urn, colorHex: $colorHex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutation updateDeprecation($input: UpdateDeprecationInput!) {
|
||||||
|
updateDeprecation(input: $input)
|
||||||
|
}
|
||||||
|
@ -35,6 +35,9 @@ fragment entityPreview on Entity {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on CorpUser {
|
... on CorpUser {
|
||||||
username
|
username
|
||||||
@ -94,6 +97,9 @@ fragment entityPreview on Entity {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on Chart {
|
... on Chart {
|
||||||
urn
|
urn
|
||||||
@ -128,6 +134,9 @@ fragment entityPreview on Entity {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on DataFlow {
|
... on DataFlow {
|
||||||
urn
|
urn
|
||||||
@ -158,6 +167,9 @@ fragment entityPreview on Entity {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on DataJob {
|
... on DataJob {
|
||||||
urn
|
urn
|
||||||
@ -185,6 +197,9 @@ fragment entityPreview on Entity {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on GlossaryTerm {
|
... on GlossaryTerm {
|
||||||
name
|
name
|
||||||
@ -201,6 +216,9 @@ fragment entityPreview on Entity {
|
|||||||
value
|
value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on MLFeatureTable {
|
... on MLFeatureTable {
|
||||||
urn
|
urn
|
||||||
@ -222,6 +240,9 @@ fragment entityPreview on Entity {
|
|||||||
platform {
|
platform {
|
||||||
...platformFields
|
...platformFields
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on MLModel {
|
... on MLModel {
|
||||||
name
|
name
|
||||||
@ -233,6 +254,9 @@ fragment entityPreview on Entity {
|
|||||||
platform {
|
platform {
|
||||||
...platformFields
|
...platformFields
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on MLModelGroup {
|
... on MLModelGroup {
|
||||||
name
|
name
|
||||||
@ -244,6 +268,9 @@ fragment entityPreview on Entity {
|
|||||||
platform {
|
platform {
|
||||||
...platformFields
|
...platformFields
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on Tag {
|
... on Tag {
|
||||||
name
|
name
|
||||||
|
@ -61,6 +61,9 @@ fragment searchResultFields on Entity {
|
|||||||
container {
|
container {
|
||||||
...entityContainer
|
...entityContainer
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on CorpUser {
|
... on CorpUser {
|
||||||
username
|
username
|
||||||
@ -133,6 +136,9 @@ fragment searchResultFields on Entity {
|
|||||||
container {
|
container {
|
||||||
...entityContainer
|
...entityContainer
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on Chart {
|
... on Chart {
|
||||||
urn
|
urn
|
||||||
@ -170,6 +176,9 @@ fragment searchResultFields on Entity {
|
|||||||
container {
|
container {
|
||||||
...entityContainer
|
...entityContainer
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on DataFlow {
|
... on DataFlow {
|
||||||
urn
|
urn
|
||||||
@ -200,6 +209,9 @@ fragment searchResultFields on Entity {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on DataJob {
|
... on DataJob {
|
||||||
urn
|
urn
|
||||||
@ -227,6 +239,9 @@ fragment searchResultFields on Entity {
|
|||||||
domain {
|
domain {
|
||||||
...entityDomain
|
...entityDomain
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on GlossaryTerm {
|
... on GlossaryTerm {
|
||||||
name
|
name
|
||||||
@ -243,6 +258,9 @@ fragment searchResultFields on Entity {
|
|||||||
value
|
value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on Domain {
|
... on Domain {
|
||||||
urn
|
urn
|
||||||
@ -287,6 +305,9 @@ fragment searchResultFields on Entity {
|
|||||||
container {
|
container {
|
||||||
...entityContainer
|
...entityContainer
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on MLFeatureTable {
|
... on MLFeatureTable {
|
||||||
urn
|
urn
|
||||||
@ -308,6 +329,9 @@ fragment searchResultFields on Entity {
|
|||||||
platform {
|
platform {
|
||||||
...platformFields
|
...platformFields
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on MLModel {
|
... on MLModel {
|
||||||
name
|
name
|
||||||
@ -319,6 +343,9 @@ fragment searchResultFields on Entity {
|
|||||||
platform {
|
platform {
|
||||||
...platformFields
|
...platformFields
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on MLModelGroup {
|
... on MLModelGroup {
|
||||||
name
|
name
|
||||||
@ -330,6 +357,9 @@ fragment searchResultFields on Entity {
|
|||||||
platform {
|
platform {
|
||||||
...platformFields
|
...platformFields
|
||||||
}
|
}
|
||||||
|
deprecation {
|
||||||
|
...deprecationFields
|
||||||
|
}
|
||||||
}
|
}
|
||||||
... on Tag {
|
... on Tag {
|
||||||
name
|
name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user