diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7e78428a..417bd83d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,7 @@ TBD - Expanded PublishClient to support Registering and Unregistering commands to Topics after a plugin has been initialized - Fixed bug where threading a SystemClient within a plugin lost current_request context and failed to map `requester`, SystemClient will still drop the current_request context,but the requester field can be provided via `_requester` +- Expanded Garden model to support tracking the version of Beer Garden running 3.27.1 ------ diff --git a/brewtils/models.py b/brewtils/models.py index 80c6de5f..5c5aa020 100644 --- a/brewtils/models.py +++ b/brewtils/models.py @@ -1510,6 +1510,7 @@ def __init__( metadata=None, default_user=None, shared_users=None, + version="0.0.0", ): self.id = id self.name = name @@ -1530,16 +1531,19 @@ def __init__( self.default_user = default_user self.shared_users = shared_users + self.version = version + def __str__(self): return "%s" % self.name def __repr__(self): return ( - "" % ( self.name, self.status, + self.version, self.parent, self.has_parent, self.connection_type, diff --git a/brewtils/schemas.py b/brewtils/schemas.py index f0553380..3d2eb385 100644 --- a/brewtils/schemas.py +++ b/brewtils/schemas.py @@ -492,6 +492,7 @@ class GardenSchema(BaseSchema): metadata = fields.Dict(allow_none=True) default_user = fields.Str(allow_none=True) shared_users = fields.Bool(allow_none=True) + version = fields.Str(allow_none=True) class JobSchema(BaseSchema): diff --git a/brewtils/test/fixtures.py b/brewtils/test/fixtures.py index 44e26b21..367335e7 100644 --- a/brewtils/test/fixtures.py +++ b/brewtils/test/fixtures.py @@ -991,6 +991,7 @@ def garden_dict( "metadata": {}, "default_user": None, "shared_users": True, + "version": "1.1.1", }