Commit 33cf139 1 parent 2e98401 commit 33cf139 Copy full SHA for 33cf139
File tree 3 files changed +22
-2
lines changed
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
- __version__ = "3.16 .0"
1
+ __version__ = "3.17 .0"
Original file line number Diff line number Diff line change 20
20
]
21
21
22
22
23
+ class DesignCandidateComment (Serializable ["DesignCandidateComment" ]):
24
+ message = properties .String ('message' )
25
+ """:str: the text of the comment"""
26
+ created_by = properties .UUID ('created.user' )
27
+ """:UUID: id of the user who created the comment"""
28
+ create_time = properties .Datetime ('created.time' )
29
+ """:datetime: date and time at which the comment was created"""
30
+
31
+
23
32
class DesignVariable (PolymorphicSerializable ["DesignVariable" ]):
24
33
"""Classes containing data corresponding to individual descriptors.
25
34
@@ -185,6 +194,8 @@ class DesignCandidate(Serializable["DesignCandidate"]):
185
194
""":Optional[UUID]: id of the user who pinned the candidate, if it's been pinned"""
186
195
pinned_time = properties .Optional (properties .Datetime , 'pinned.time' )
187
196
""":Optional[datetime]: date and time at which the candidate was pinned, if it's been pinned"""
197
+ comments = properties .List (properties .Object (DesignCandidateComment ), 'comments' )
198
+ """:list[DesignCandidateComment]: the list of comments on the candidate, with metadata."""
188
199
189
200
190
201
class HierarchicalDesignCandidate (Serializable ["HierarchicalDesignCandidate" ]):
Original file line number Diff line number Diff line change @@ -851,7 +851,16 @@ def example_candidates(example_design_material):
851
851
"primary_score" : 0 ,
852
852
"material" : example_design_material ,
853
853
"name" : "Example candidate" ,
854
- "hidden" : True
854
+ "hidden" : True ,
855
+ "comments" : [
856
+ {
857
+ "message" : "a message" ,
858
+ "created" : {
859
+ "user" : str (uuid .uuid4 ()),
860
+ "time" : '2025-02-20T10:46:26Z'
861
+ }
862
+ }
863
+ ]
855
864
}]
856
865
}
857
866
You can’t perform that action at this time.
0 commit comments