Closed jakubjezek001 closed 1 month ago
Method get_representation_hierarchy is returning data key as json dump.
get_representation_hierarchy
Data key should be dictionary.
1.0.0
Windows
Query Representation by ID in following way and then check the representation enity on data key type.
repre_hierarchy = get_representation_hierarchy( project_name=self._project_name, representation_id=representation_data["id"], project_fields=["name"], version_fields=VERSION_FIELDS, product_fields=PRODUCT_FIELDS, task_fields=TASK_FIELDS, ) version_entity = repre_hierarchy.version product_entity = repre_hierarchy.product representation_entity = repre_hierarchy.representation
print(type(representation_entity["data"]))
No response
Is there an existing issue for this?
Current Behavior:
Method
get_representation_hierarchy
is returning data key as json dump.Expected Behavior:
Data key should be dictionary.
Version
1.0.0
What platform you are running on?
Windows
Steps To Reproduce:
Query Representation by ID in following way and then check the representation enity on data key type.
repre_hierarchy = get_representation_hierarchy( project_name=self._project_name, representation_id=representation_data["id"], project_fields=["name"], version_fields=VERSION_FIELDS, product_fields=PRODUCT_FIELDS, task_fields=TASK_FIELDS, ) version_entity = repre_hierarchy.version product_entity = repre_hierarchy.product representation_entity = repre_hierarchy.representation
print(type(representation_entity["data"]))
Are there any labels you wish to add?
Relevant log output:
No response
Additional context:
No response