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

Neat 206 delete dms data model step is missing in v2 rules #421

Merged

Conversation

nikokaoja
Copy link
Collaborator

[0.75.7] - 29-05-24

Added

  • DMSExporter now supports deletion of data model and data model components
  • DeleteDataModelFromCDF added to the step library

Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
19226 12867 67% 60% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cognite/neat/_version.py 100% 🟢
cognite/neat/rules/exporters/_models.py 53% 🟢
cognite/neat/rules/exporters/_rules2dms.py 59% 🟢
cognite/neat/utils/cdf_loaders/_data_modeling.py 94% 🟢
cognite/neat/workflows/steps/lib/rules_exporter.py 26% 🟢
TOTAL 66% 🟢

updated for commit: 1f10df6 by action🐍

Copy link
Collaborator

@doctrino doctrino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good. As we discussed yesterday, the support for item and not just id should be in the base class of the loader, but that can be later.

If you have time, an integration test would be great for this.

@@ -87,8 +87,10 @@ def retrieve(self, ids: SequenceNotStr[str]) -> SpaceList:
def update(self, items: Sequence[SpaceApply]) -> SpaceList:
return self.create(items)

def delete(self, ids: SequenceNotStr[str]) -> list[str]:
return self.client.data_modeling.spaces.delete(ids)
def delete(self, ids: SequenceNotStr[str] | Sequence[Space | SpaceApply]) -> list[str]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest adding a technical debt task (unless you want to tackle it immediately) on moving this to the base class.

@nikokaoja nikokaoja merged commit 2dd1dc7 into main May 2, 2024
7 checks passed
@nikokaoja nikokaoja deleted the NEAT-206-DeleteDMSDataModel-step-is-missing-in-V2-rules branch May 2, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants