You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streampipes.apache.org by "SvenO3 (via GitHub)" <gi...@apache.org> on 2023/01/24 12:22:15 UTC

[GitHub] [streampipes] SvenO3 commented on a diff in pull request #1147: refactor: further clean up python data model & introduce function definition

SvenO3 commented on code in PR #1147:
URL: https://github.com/apache/streampipes/pull/1147#discussion_r1085223742


##########
streampipes-client-python/streampipes_client/model/common.py:
##########
@@ -55,30 +55,33 @@ class BaseElement(BasicModel):
     element_id: Optional[StrictStr]
 
 
-class EventPropertyQualityRequirement(BaseElement):
+class EventPropertyQualityRequirement(BasicModel):
     """
     Data model of an `EventPropertyQualityRequirement` in compliance to the StreamPipes Backend.
     """
 
+    element_id: Optional[StrictStr]
     minimum_property_quality: Optional[BaseElement] = Field(alias="eventPropertyQualityDefinition")
     maximum_property_quality: Optional[BaseElement] = Field(alias="eventPropertyQualityDefinition")

Review Comment:
   The EventPropertyQualities and EventPropertyQualityRequirement aren't used by the API anymore and I think we could remove them. The elementId is also not used for every class anymore and we probably should change this. But I can do this in another PR too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@streampipes.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org