Skip to content

Commit 422ee65

Browse files
committed
backend read/write changes for PRD-982
1 parent 1e96f63 commit 422ee65

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/corpgroup/CorpGroupType.java

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.datahub.authorization.DisjunctivePrivilegeGroup;
88
import com.google.common.collect.ImmutableList;
99
import com.google.common.collect.ImmutableSet;
10+
import com.linkedin.common.url.Url;
1011
import com.linkedin.common.urn.Urn;
1112
import com.linkedin.common.urn.UrnUtils;
1213
import com.linkedin.data.template.RecordTemplate;
@@ -232,6 +233,9 @@ private RecordTemplate mapCorpGroupEditableInfo(
232233
if (input.getEmail() != null) {
233234
result.setEmail(input.getEmail());
234235
}
236+
if (input.getPictureLink() != null) {
237+
result.setPictureLink(new Url(input.getPictureLink()));
238+
}
235239
return result;
236240
}
237241
}

datahub-graphql-core/src/main/resources/entity.graphql

+5
Original file line numberDiff line numberDiff line change
@@ -4070,6 +4070,11 @@ type CorpGroupEditableProperties {
40704070
Email address for the group
40714071
"""
40724072
email: String
4073+
4074+
"""
4075+
A URL which points to a picture which user wants to set as a profile photo
4076+
"""
4077+
pictureLink: String
40734078
}
40744079

40754080
"""

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

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ query getGroup($urn: String!, $membersCount: Int!) {
1717
description
1818
slack
1919
email
20+
pictureLink
2021
}
2122
properties {
2223
displayName

0 commit comments

Comments
 (0)