red-napkin-59945
03/23/2022, 5:55 AMproperties
however, the frontend code(group.graphql) does not request properties
field. Is this some bug?red-napkin-59945
03/23/2022, 6:17 AMcorpGroupInfo
aspect which including email info. But it does not render on UIred-napkin-59945
03/23/2022, 6:18 AMred-napkin-59945
03/23/2022, 6:18 AMdiff --git a/datahub-web-react/src/app/entity/group/GroupProfile.tsx b/datahub-web-react/src/app/entity/group/GroupProfile.tsx
index 0c4eb37a6..c508f07cc 100644
--- a/datahub-web-react/src/app/entity/group/GroupProfile.tsx
+++ b/datahub-web-react/src/app/entity/group/GroupProfile.tsx
@@ -91,7 +91,7 @@ export default function GroupProfile() {
photoUrl: undefined,
avatarName: data?.corpGroup?.info?.displayName || data?.corpGroup?.name,
name: data?.corpGroup?.info?.displayName || data?.corpGroup?.name || undefined,
- email: data?.corpGroup?.editableProperties?.email || undefined,
+ email: data?.corpGroup?.editableProperties?.email || data?.corpGroup?.properties?.email || undefined,
slack: data?.corpGroup?.editableProperties?.slack || undefined,
aboutText: data?.corpGroup?.editableProperties?.description || undefined,
groupMemberRelationships: groupMemberRelationships as EntityRelationshipsResult,
diff --git a/datahub-web-react/src/graphql/group.graphql b/datahub-web-react/src/graphql/group.graphql
index 441d5187e..77245f2b2 100644
--- a/datahub-web-react/src/graphql/group.graphql
+++ b/datahub-web-react/src/graphql/group.graphql
@@ -8,6 +8,9 @@ query getGroup($urn: String!, $membersCount: Int!) {
description
email
}
+ properties {
+ email
+ }
editableProperties {
description
slack
orange-night-91387
03/23/2022, 3:51 PMCorpGroupInfo
aspect would not show up though, that should be working. I would also think that you would need to make some backend changes for this to work with the CorpGroupProperties
aspect. Are you sure you were not hitting a cached result from the GraphQL? If you take this change back out and restart the server, does it still show up?red-napkin-59945
03/23/2022, 4:54 PMeditableProperties
email: data?.corpGroup?.editableProperties?.email || undefined,
orange-night-91387
03/23/2022, 5:14 PMred-napkin-59945
03/23/2022, 5:20 PMred-napkin-59945
03/25/2022, 9:11 PM