Loading proto/context.proto +3 −3 Original line number Diff line number Diff line Loading @@ -182,9 +182,9 @@ message Component { //Defined previously to this section Uuid component_uuid = 1; string name = 2; string type = 3; repeated string child = 4; // list[sub-component.name] map<string, string> attributes = 5; // dict[attr.name => json.dumps(attr.value)] string parent = 6; map<string, string> attributes = 4; // dict[attr.name => json.dumps(attr.value)] string parent = 5; } // ----------------------------------------------------- Loading src/context/service/database/models/ComponentModel.py +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ class ComponentModel(_Base): #Inherit def dump(self) -> Dict: data = json.loads(self.attributes) data['component_uuid'] = self.component_uuid data['component_uuid'] = {'uuid': self.component_uuid}, data['name'] = self.name data['type'] = self.type data['parent'] = self.parent Loading Loading
proto/context.proto +3 −3 Original line number Diff line number Diff line Loading @@ -182,9 +182,9 @@ message Component { //Defined previously to this section Uuid component_uuid = 1; string name = 2; string type = 3; repeated string child = 4; // list[sub-component.name] map<string, string> attributes = 5; // dict[attr.name => json.dumps(attr.value)] string parent = 6; map<string, string> attributes = 4; // dict[attr.name => json.dumps(attr.value)] string parent = 5; } // ----------------------------------------------------- Loading
src/context/service/database/models/ComponentModel.py +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ class ComponentModel(_Base): #Inherit def dump(self) -> Dict: data = json.loads(self.attributes) data['component_uuid'] = self.component_uuid data['component_uuid'] = {'uuid': self.component_uuid}, data['name'] = self.name data['type'] = self.type data['parent'] = self.parent Loading