Releases: cognitedata/neat
Releases · cognitedata/neat
v0.77.4
[0.77.4] - 22-05-24
Improves
- Information rules are now read using InformationRulesInput data class, replicate the form of DMS rules.
- Information rules are now serialized using dedicated serializer class
- Information rules are now validated using dedicated validator class
- Defaulting to "enterprise" data model type and "partial" schema completeness set to avoid validation error on import
Fixed
- Fixed bug in
ExcelImporter
when importing a data model with a last spreadsheet and no reference model.
This would trigger an errorRefMetadata sheet is missing or it failed
even though the
ReferenceMetadata sheet is not needed.
[0.77.3] - 14-05-24
Fixed
- When using
DMSExporter
and importing a data model with a view pointing to a view not in the data model,
it would fail to convert to anInformation
rules. This is now fixed. - In the
ExcelExporter
, themetadata
sheet is now created correctly when you use the argumentsdump_as="last"
,
ordump_as="reference"
, combined with and withoutnew_model_id
. [Note] The order of thedump_as
and
new_model_id
arguments have switched places. This is to make it more intuitive to use theExcelExporter
asnew_model_id
is only relevant ifdump_as
is set tolast
orreference
.
[0.77.2] - 14-05-24
Added
- Missing warning when
RawFilter
is used to warn users that the usage of this filter is not recommended.
Details
- Neat 251 missing warning when detecting raw filter in post validation by @nikokaoja in #454
- [NEAT-250] 🐛DMSImporter missing referenced views by @doctrino in #452
- [NEAT-240] 🏃Setting up metadata ExcelExporter by @doctrino in #453
- 🖇 add structure to info rules by @nikokaoja in #455
- Neat 256 create serializer module for information rules by @nikokaoja in #456
- [NEAT-218] 🐻❄️ Ensure Lifecycle Tutorials are up-to-date by @doctrino in #457
- [NEAT-261] 🤴Data Modeling Principles by @doctrino in #458
- 🚿Clean space by @doctrino in #461
- [NEAT-237, NEAT-262] 🫠Adding Svein Harald Spreadsheets by @doctrino in #459
- [NEAT-263] 🌳Document Extension/Model Validation by @doctrino in #462
- Neat 257 create validation module for information rules by @nikokaoja in #463
Full Changelog: v0.77.1...v0.77.4
v0.77.1
v0.77
Changed
- [BREAKING] The subpackage
cognite.neat.rules.models
is reorganized. All imports using this subpackage must be
updated.
Added
- Support for exporting/importing
Last
spreadsheets in theExcelExporter
andExcelImporter
. - [BREAKING] As a result of the above, in the
ExcelExporter
the parameteris_reference
is replaced bydump_as
.
To continue using the old behavior, setdump_as='reference'
. - In the
DMSImporter.from_data_model_id
, now supports settingreference_model_id
to download a solution model
with a reference model.
Details
- [NEAT-235] Excel Importer/Exporter Support Last 🛟 by @doctrino in #444
- Neat 239 a has data filter can reference at most 10 views and or containers by @nikokaoja in #445
- Remove unused parameter 🧹 by @doctrino in #447
- [prep NEAT-236] Refactor DMS schema single model by @doctrino in #449
- [NEAT-236] DMS Exporter Support downloading Solution with Enterprise 🧑🧒 by @doctrino in #448
Full Changelog: v0.76.2...v0.77
v0.76.2
v0.76.1
v0.76.0
[0.76.0] - 06-05-24
Removed
- [BREAKING] In
DMSRules
,default_view_version
is no longer supported. Instead, you will now get a warning if view versions
are not matching the data model version.
Added/Changed
- [BREAKING] The following renaming of columns in
DMSRules
, properties sheet:Relation
->Connection
ViewProperty
->View Property
ContainerProperty
->Container Property
IsList
->Is List
Class
->Class (linage)
Property
->Property (linage)
- [BREAKING] The following renaming of columns in
DMSRules
, views sheet:InModel
->In Model
Class
->Class (linage)
- [BREAKING] The following renaming of columns in
DMSRules
, containers sheet:Class
->Class (linage)
- [BREAKING] Added support for listable direct relations in
DMSRules
. In addition, there is now a complete reimplementation
of theconnection
column in theDMRRules
properties
sheet. - [BREAKING] Connection (former relation) can now be
direct
,reverse
, oredge
.
Whilemultiedge
andreversedirectc
have been removed. For more details,
see the DMS Rules Details
documentation. - In
DMSRules
, added support for setting containerId and nodeId inView.Filter
. Earlier, onlynodeType
and
hasData
were supported which always used an implicitcontainerId
andnodeId
respectively. Now, the user can
specify the node type and container id(s) by settingnodeType(my_space:my_node_type)
and
hasData(my_space:my_container_id, my_space:my_other_container_id)
. - Introduced,
dataModelType
inDMSRules
andInformationRules
to explicitly set the type of data model. This
will be used to different types of validation and make the user aware of the type of data model they are working with. - In
DMSExporter
, created smart defaults for settingview.filters
. This is now recommended that the user uses
the default values forview.filters
and only set them explicitly if they now very well what they are doing.
Improved
- Steps are now categorized as
current
,legacy
, andio
steps - Workflow fails if one mix
current
andlegacy
steps in the same workflow
Fixed
DMSExporter
now correctly exports direct relations with unknown source.
Added
DMSExporter
now supports deletion of data model and data model componentsDeleteDataModelFromCDF
added to the step library
Changed
- All
NEAT
importers does not haveis_reference
parameter in.to_rules()
method. This has been moved
to theExcelExporter
__init__
method. This is because this is the only place where this parameter was used.
Added
DMSExporter
now supports skipping of export ofnode_types
.
Fixed
- When importing an
Excel
rules set with a reference model, theExcelImporter
would produce the warning
The copy method is deprecated; use the model_copy instead
. This is now fixed.
Fixed
- Potential of having duplicated spaces are now fixed
Fixed
- Rendering of correct metadata in UI for information architect
Added
- Added
OntologyToRules
that works with V2 Rules (profiling)
Details
- Neat 103 ontology2rules step missing by @nikokaoja in #413
- Neat 186 duplicated spaces bug by @nikokaoja in #414
- [NEAT-209] DMSExporter Support skipping node_types by @doctrino in #417
- [NEAT-211] Move is_reference from importers to Excel Importer by @doctrino in #415
- [NEAT-208] Pydantic v2 model_copy instead of copy by @doctrino in #416
- [NEAT-183] Refactor entities by @doctrino in #418
- [NEAT-183] Refactor DataTypes by @doctrino in #419
- Neat 206 delete dms data model step is missing in v2 rules by @nikokaoja in #421
- [NEAT-183] Apply new entities by @doctrino in #420
- [NEAT-217] Import/Export Unknown Type by @doctrino in #422
- 🚅Ruffing it up by @doctrino in #423
- 🪨Robustify by @doctrino in #424
- Neat 141 legacy rules UI switch by @nikokaoja in #426
- [NEAT-210] Explicit View Filter ✄ by @doctrino in #425
- [NEAT-219] Moved legacy tests 👴 by @doctrino in #428
- [NEAT-219] Moved legacy tests 👴 by @doctrino in #429
- Test fix 🔥 by @doctrino in #431
- [NEAT-221] Smart default filter 🧠 by @doctrino in #427
- [NEAT-220] Support listable direct relations 🖹 by @doctrino in #430
- [NEAT-161, NEAT-225] Upgrade DMS Importer 🛠 by @doctrino in #432
- [NEAT-222] DMS (and all other rules) dump order 🖶 by @doctrino in #433
- [NEAT-224] Remove default-view-version 🚨 by @doctrino in #434
- [NEAT-223] DMSExporter Warnings ⚠ by @doctrino in #435
- [NEAT-228] Rename columns 𐇦 by @doctrino in #436
Full Changelog: v0.75.3...v0.76.0