Skip to content

Commit cf59781

Browse files
committed
updagte graphql fpiles
1 parent 7c2ea0c commit cf59781

File tree

6 files changed

+250
-2
lines changed

6 files changed

+250
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
fragment processInstanceRelationshipResults on EntityRelationshipsResult {
2+
start
3+
count
4+
total
5+
relationships {
6+
type
7+
direction
8+
entity {
9+
urn
10+
type
11+
... on Dataset {
12+
name
13+
properties {
14+
name
15+
description
16+
qualifiedName
17+
}
18+
editableProperties {
19+
description
20+
}
21+
platform {
22+
...platformFields
23+
}
24+
subTypes {
25+
typeNames
26+
}
27+
status {
28+
removed
29+
}
30+
}
31+
... on DataJob {
32+
urn
33+
type
34+
dataFlow {
35+
...nonRecursiveDataFlowFields
36+
}
37+
jobId
38+
properties {
39+
name
40+
description
41+
externalUrl
42+
customProperties {
43+
key
44+
value
45+
}
46+
}
47+
deprecation {
48+
...deprecationFields
49+
}
50+
dataPlatformInstance {
51+
...dataPlatformInstanceFields
52+
}
53+
subTypes {
54+
typeNames
55+
}
56+
editableProperties {
57+
description
58+
}
59+
status {
60+
removed
61+
}
62+
}
63+
}
64+
}
65+
}
66+
67+
fragment dataProcessInstanceFields on DataProcessInstance {
68+
urn
69+
type
70+
name
71+
platform {
72+
...platformFields
73+
}
74+
parentContainers {
75+
...parentContainersFields
76+
}
77+
container {
78+
...entityContainer
79+
}
80+
subTypes {
81+
typeNames
82+
}
83+
properties {
84+
name
85+
createdTS: created {
86+
time
87+
actor
88+
}
89+
customProperties {
90+
key
91+
value
92+
}
93+
}
94+
mlTrainingRunProperties {
95+
outputUrls
96+
trainingMetrics {
97+
name
98+
description
99+
value
100+
}
101+
hyperParams {
102+
name
103+
description
104+
value
105+
}
106+
}
107+
dataPlatformInstance {
108+
...dataPlatformInstanceFields
109+
}
110+
state(startTimeMillis: null, endTimeMillis: null, limit: 1) {
111+
status
112+
attempt
113+
result {
114+
resultType
115+
nativeResultType
116+
}
117+
timestampMillis
118+
durationMillis
119+
}
120+
relationships(input: { types: ["InstanceOf", "Consumes", "Produces"], direction: OUTGOING, start: 0, count: 50 }) {
121+
...processInstanceRelationshipResults
122+
}
123+
}
124+
125+
query getDataProcessInstance($urn: String!) {
126+
dataProcessInstance(urn: $urn) {
127+
urn
128+
type
129+
platform {
130+
...platformFields
131+
}
132+
parentContainers {
133+
...parentContainersFields
134+
}
135+
subTypes {
136+
typeNames
137+
}
138+
container {
139+
...entityContainer
140+
}
141+
name
142+
properties {
143+
name
144+
created {
145+
time
146+
actor
147+
}
148+
}
149+
mlTrainingRunProperties {
150+
id
151+
outputUrls
152+
trainingMetrics {
153+
name
154+
description
155+
value
156+
}
157+
hyperParams {
158+
name
159+
description
160+
value
161+
}
162+
}
163+
relationships(
164+
input: { types: ["InstanceOf", "Consumes", "Produces"], direction: OUTGOING, start: 0, count: 50 }
165+
) {
166+
...processInstanceRelationshipResults
167+
}
168+
dataPlatformInstance {
169+
...dataPlatformInstanceFields
170+
}
171+
state(startTimeMillis: null, endTimeMillis: null, limit: 1) {
172+
status
173+
attempt
174+
result {
175+
resultType
176+
nativeResultType
177+
}
178+
timestampMillis
179+
durationMillis
180+
}
181+
}
182+
}

datahub-web-react/src/graphql/fragments.graphql

+15-2
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,16 @@ fragment nonRecursiveMLModel on MLModel {
860860
...ownershipFields
861861
}
862862
properties {
863+
name
863864
description
864-
date
865+
created {
866+
time
867+
actor
868+
}
869+
lastModified {
870+
time
871+
actor
872+
}
865873
externalUrl
866874
version
867875
type
@@ -870,6 +878,7 @@ fragment nonRecursiveMLModel on MLModel {
870878
description
871879
value
872880
}
881+
trainingJobs
873882
hyperParams {
874883
name
875884
description
@@ -954,6 +963,10 @@ fragment nonRecursiveMLModelGroupFields on MLModelGroup {
954963
}
955964
properties {
956965
description
966+
created {
967+
time
968+
actor
969+
}
957970
}
958971
browsePathV2 {
959972
...browsePathV2Fields
@@ -1544,4 +1557,4 @@ fragment businessAttribute on BusinessAttributeAssociation {
15441557
}
15451558
}
15461559
associatedUrn
1547-
}
1560+
}

datahub-web-react/src/graphql/lineage.graphql

+21
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ fragment lineageNodeProperties on EntityWithRelationships {
259259
name
260260
description
261261
origin
262+
tags {
263+
...globalTagsFields
264+
}
262265
platform {
263266
...platformFields
264267
}
@@ -289,6 +292,21 @@ fragment lineageNodeProperties on EntityWithRelationships {
289292
status {
290293
removed
291294
}
295+
properties {
296+
createdTS: created {
297+
time
298+
actor
299+
}
300+
modelVersion: version
301+
tags
302+
customProperties {
303+
key
304+
value
305+
}
306+
}
307+
editableProperties {
308+
description
309+
}
292310
structuredProperties {
293311
properties {
294312
...structuredPropertiesFields
@@ -328,6 +346,9 @@ fragment lineageNodeProperties on EntityWithRelationships {
328346
urn
329347
type
330348
}
349+
... on DataProcessInstance {
350+
...dataProcessInstanceFields
351+
}
331352
}
332353

333354
fragment lineageFields on EntityWithRelationships {

datahub-web-react/src/graphql/mlModel.graphql

+17
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@ query getMLModel($urn: String!) {
2020
}
2121
}
2222
}
23+
trainedBy: relationships(input: { types: ["TrainedBy"], direction: OUTGOING, start: 0, count: 100 }) {
24+
start
25+
count
26+
total
27+
relationships {
28+
type
29+
direction
30+
entity {
31+
... on DataProcessInstance {
32+
urn
33+
name
34+
type
35+
...dataProcessInstanceFields
36+
}
37+
}
38+
}
39+
}
2340
privileges {
2441
...entityPrivileges
2542
}

datahub-web-react/src/graphql/mlModelGroup.graphql

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ query getMLModelGroup($urn: String!) {
22
mlModelGroup(urn: $urn) {
33
urn
44
type
5+
properties {
6+
description
7+
created {
8+
time
9+
actor
10+
}
11+
lastModified {
12+
time
13+
actor
14+
}
15+
}
16+
517
...nonRecursiveMLModelGroupFields
618
incoming: relationships(
719
input: {

datahub-web-react/src/graphql/search.graphql

+3
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,9 @@ fragment searchResultsWithoutSchemaField on Entity {
930930
... on BusinessAttribute {
931931
...businessAttributeFields
932932
}
933+
... on DataProcessInstance {
934+
...dataProcessInstanceFields
935+
}
933936
... on StructuredPropertyEntity {
934937
...structuredPropertyFields
935938
}

0 commit comments

Comments
 (0)