Skip to content
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

Merged
merged 9 commits into from
May 13, 2024

Conversation

doctrino
Copy link
Collaborator

No description provided.

Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
19902 13515 68% 60% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cognite/neat/rules/exporters/_rules2dms.py 73% 🟢
cognite/neat/rules/importers/_dms2rules.py 79% 🟢
cognite/neat/rules/models/dms/_exporter.py 90% 🟢
cognite/neat/rules/models/dms/_schema.py 85% 🟢
TOTAL 82% 🟢

updated for commit: d94a672 by action🐍

@@ -179,21 +180,12 @@ def to_rules(

def _create_rule_components(
self,
data_model: dm.DataModelApply,
schema: DMSSchema,
Copy link
Collaborator

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?

Copy link
Collaborator Author

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,
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

Base automatically changed from remove-unused to main May 13, 2024 11:00
@doctrino doctrino merged commit b0886b2 into main May 13, 2024
7 checks passed
@doctrino doctrino deleted the refactor-dms-schema-single-model branch May 13, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants