Hey guys.. Seeing some behavior which seems confus...
# advice-metadata-modeling
o
Hey guys.. Seeing some behavior which seems confusing. When I do cli upsert for a user with a non existent group as part of the user yaml the cli creates the user and the group. But if I go to the group tab on the UI the group does not show and on the user tab it shows the group and if I click it opens the group but cannot find it in the group tab. If I create the group explicitly later then the user screen correctly maps the group to the newly created one. See same behavior with data products and owners as well. Can you help me understand what is happening ?
a
@gray-shoe-75895 could you confirm if this is an expected behavior?
g
This is some subtle behavior around how datahub handles non-existent references. The upsert for the user references a missing group, and so in the UI datahub pretends like the group exists even though it doesn’t actually exist in the backend db. That’s why the group tab doesn’t work properly
The easiest workaround is to make sure the groups exist. We have a similar
datahub group
command that you can use to do it
o
👍