From 071f2449c39450df400330ee337211f18e799081 Mon Sep 17 00:00:00 2001 From: izzy lyseggen Date: Fri, 10 Dec 2021 11:40:03 +0000 Subject: [PATCH 1/2] fix(client): oopsie missing field in `commit.list` thanks @mortenengen for the spot! closes #142 --- specklepy/api/resources/commit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specklepy/api/resources/commit.py b/specklepy/api/resources/commit.py index 3d3efe5..25d1cd5 100644 --- a/specklepy/api/resources/commit.py +++ b/specklepy/api/resources/commit.py @@ -34,8 +34,8 @@ class Resource(ResourceBase): stream(id: $stream_id) { commit(id: $commit_id) { id - referencedObject message + referencedObject authorId authorName authorAvatar @@ -79,6 +79,7 @@ class Resource(ResourceBase): authorId authorName authorAvatar + branchName createdAt sourceApplication totalChildrenCount From 2075783134b37408c2fa58189a22158d4421a09d Mon Sep 17 00:00:00 2001 From: izzy lyseggen Date: Fri, 10 Dec 2021 11:44:07 +0000 Subject: [PATCH 2/2] feat(models): add branchName to commit repr --- specklepy/api/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specklepy/api/models.py b/specklepy/api/models.py index 99c0caa..c07a2b0 100644 --- a/specklepy/api/models.py +++ b/specklepy/api/models.py @@ -30,7 +30,7 @@ class Commit(BaseModel): parents: Optional[List[str]] def __repr__(self) -> str: - return f"Commit( id: {self.id}, message: {self.message}, referencedObject: {self.referencedObject}, authorName: {self.authorName}, createdAt: {self.createdAt} )" + return f"Commit( id: {self.id}, message: {self.message}, referencedObject: {self.referencedObject}, authorName: {self.authorName}, branchName: {self.branchName}, createdAt: {self.createdAt} )" def __str__(self) -> str: return self.__repr__()