Skip to content

Commit

Permalink
[NEAT-209] DMSExporter Support skipping node_types (#417)
Browse files Browse the repository at this point in the history
* fix: Support skipping node_types

* build: changelog
  • Loading branch information
doctrino committed Apr 26, 2024
1 parent a4baef0 commit f83a61a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cognite/neat/rules/exporters/_rules2dms.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from ._base import CDFExporter
from ._models import UploadResult

Component: TypeAlias = Literal["all", "spaces", "data_models", "views", "containers"]
Component: TypeAlias = Literal["all", "spaces", "data_models", "views", "containers", "node_types"]


class DMSExporter(CDFExporter[DMSSchema]):
Expand Down Expand Up @@ -99,7 +99,7 @@ def _create_exclude_set(self):
if "all" in self.export_components:
exclude = set()
else:
exclude = {"spaces", "data_models", "views", "containers"} - self.export_components
exclude = {"spaces", "data_models", "views", "containers", "node_types"} - self.export_components
return exclude

def export(self, rules: Rules) -> DMSSchema:
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Changes are grouped as follows:
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## TBD
### Added
- `DMSExporter` now supports skipping of export of `node_types`.

## [0.75.5] - 24-05-24
### Fixed
- Potential of having duplicated spaces are now fixed
Expand Down

0 comments on commit f83a61a

Please sign in to comment.