-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[prep NEAT-236] Refactor DMS schema single model #449
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
@@ -179,21 +180,12 @@ def to_rules( | |||
|
|||
def _create_rule_components( | |||
self, | |||
data_model: dm.DataModelApply, | |||
schema: DMSSchema, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would not schema have data model ? why it is necessary to additionally data_model as arg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case it is missing, the error has to be raised/not raised on the error above.
@@ -73,7 +73,7 @@ def to_schema(self) -> DMSSchema: | |||
|
|||
output = DMSSchema( | |||
spaces=spaces, | |||
data_models=dm.DataModelApplyList([data_model]), | |||
data_model=data_model, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this if not mistaken reverts back to the original idea of only having single data model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version of the schema have always had multiple, but could have been in the legacy.
No description provided.