File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ def link_objects(event: Event):
68
68
# e.g. all parts would be in Event.data.parts = list[Part]
69
69
70
70
for field_name in data .model_fields_set :
71
- # go through each field in data and look for fields that are lists
72
- # objects will always be passed in a list
71
+ # go through each field in data and look for fields that are lists of BaseObjects
72
+ # or direct BaseObjects
73
73
74
74
field = getattr (data , field_name )
75
75
if isinstance (field , list ):
@@ -78,9 +78,7 @@ def link_objects(event: Event):
78
78
if isinstance (obj , BaseObject ):
79
79
obj .link_objects (data )
80
80
elif isinstance (field , BaseObject ):
81
- # if the field is not a list, we check if it is an object and link it
82
81
field .link_objects (data )
83
- # if the field is not a list or an object, we ignore it
84
82
85
83
86
84
def execute (function_name : str , request_body : str , function_dir : str = "src" ) -> str :
Original file line number Diff line number Diff line change
1
+ ### Version 0.13.1:
2
+ - Fix: Status Changed Events did not correctly link Engineering Changes.
3
+
1
4
### Version 0.13.0:
2
5
- Feature: Added status change events for engineering changes
3
6
You can’t perform that action at this time.
0 commit comments