Skip to content

Commit

Permalink
fix: Store group description in public_info (#1384)
Browse files Browse the repository at this point in the history
Currently, `create_or_update_user_group()` sets the group description directly inside the `properties` dict, but only the values of the `public_info` key are exposed via the API.

This change stores the description in the correct location so that the UI can display it.
  • Loading branch information
baumandm committed Dec 11, 2023
1 parent 1f14756 commit 3686d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion querybook/server/logic/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def create_or_update_user_group(user_group: UserGroup, commit=True, session=None
"fullname": user_group.display_name,
"email": user_group.email,
"is_group": True,
"properties": {"description": user_group.description},
"properties": {"public_info": {"description": user_group.description}},
}

if not group:
Expand Down

0 comments on commit 3686d0d

Please sign in to comment.