Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Brewtils Changelog
Examples: SystemClient(..., choice_validation_enabled=True) or SystemClient().call_command(..., _choice_validation_enabled=True)
- Added Target-Garden header to set target garden when provided in kwargs (#567,#578)

3.33.0rc0
------
12/17/25

- Added support for preferences in User model (Not Released yet, but will be used for future features) (#582)

3.32.0
------
3/4/26
Expand Down
2 changes: 2 additions & 0 deletions brewtils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1918,6 +1918,7 @@ def __init__(
is_remote=False,
protected=False,
file_generated=False,
preferences=None,
):
self.username = username
self.id = id
Expand All @@ -1930,6 +1931,7 @@ def __init__(
self.metadata = metadata or {}
self.protected = protected
self.file_generated = file_generated
self.preferences = preferences or {}

def __str__(self):
return "%s: %s" % (self.username, self.roles)
Expand Down
1 change: 1 addition & 0 deletions brewtils/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ class UserSchema(BaseSchema):
metadata = fields.Dict(allow_none=True)
protected = fields.Boolean(allow_none=True)
file_generated = fields.Boolean(allow_none=True)
preferences = fields.Dict(allow_none=True)


model_schema_map.update(
Expand Down
1 change: 1 addition & 0 deletions brewtils/test/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ def user_dict(role_dict, upstream_role_dict, alias_user_map_dict):
"metadata": {},
"protected": False,
"file_generated": False,
"preferences": {"theme": "dark"},
}


Expand Down
Loading