Hi all, I just started to create user groups with...
# advice-metadata-modeling
c
Hi all, I just started to create user groups with the Python SDK. As apparent from the code, you can provide an instance of
CorpGroup
with an attribute
picture_link
. Creating the user groups works out fine, but the picture is not appearing. Is this a known issue? Or did I miss anything? I tested this with two different public image urls
👀 1
a
Hi Tim, this may be a UI issue- could you share an example request/picture link?
c
HI @astonishing-answer-96712, sure, the request is sent via this command:
Copy code
CorpGroup(
     id="some-id",
     description="some-description",
     display_name="Test",
     picture_link="link"
).emit(emitter=self.emitter)
The two example for picture links that I've tried are: • "

https://cognopia.com/wp-content/uploads/2021/07/Chapter-2-How-does-Data-Stewardship-Work-1024x1024.png

" • "

https://cdn-icons-png.flaticon.com/512/1478/1478892.png

" The DataHub UI then displays the following image (just the fallback):
Bildschirm­foto 2023-01-26 um 07.28.13.png
I just discovered by accident that the corresponding GraphQL entity doesn't have does this property:
Copy code
type CorpGroupEditableProperties {
  """
  DataHub description of the group
  """
  description: String

  """
  Slack handle for the group
  """
  slack: String

  """
  Email address for the group
  """
  email: String
}
a
Ah ok! So it was an API issue?
CC: @big-carpet-38439- any advice on a workaround?
c
I don't know, haven't solved it yet. I just happened to come across the entity It seems like the
picture_link
property for user groups is not yet consistently supported
b
good call out Tim! yeah it looks like we simply don't support this in the UI for corp groups yet. it's supported on the model so I would guess your emitter works and saves in the database properly right? it's just we don't pass that back to the UI to display it (or allow you to edit it from the UI)
c
Yes the emitter works fine and creates the corgourp without any issue. Are there any plans to support this in the future? Just asking out of curiosity, I think it's a nice feature but we do not rely on it 🙂
b
Yeah definitely! I just created a small UX improvement ticket for our team to tackle in between bigger projects
c
Awesome, thanks a lot 🙏