All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Changes are grouped as follows:
Added
for new features.Changed
for changes in existing functionality.Deprecated
for soon-to-be removed features.Improved
for transparent changes, e.g. better performance.Removed
for now removed features.Fixed
for any bug fixes.Security
in case of vulnerabilities.
- Function used to schedule & trigger workflow
- Extended
cognite_modules/examples/my_example_module
with aSecurityCategory
case. - Extended
cognite_modules/examples/my_example_module
with aDatapointSubscription
case.
- The parameter
fileId
is removed from allfunction
configurations (cdf_functions_dummy
,cdf_data_pipeline_files_valhall
,cdf_data_pipeline_timeseries_valhall
, andmy_example_module
) as it is no longer required. - In all modules with an
extraction_pipelines
resource, removeddataSetExternalId
andname
from all ExtractionPipelineConfigs as this is not used and thus only causes confusion. - In all modules with a
function
, renamedexternalIdDataSet
todataSetExternalId
to be consistent with the naming convention used in the Cognite API. - In module
my_example_module
, removedinterval
andisPaused
from the Transformation as these are not used. These parameters should only be present in a TransformationSchedule.
- Removed schedule from annotation function
context:files:oid:fileshare:annotation
- Add use of
map_concat
in transformationfiles_oid_fileshare_file_metadata
to keep existing files metadata. - Switched to using
file.uploaded_time
instead offile.last_updated_time
since update time potentially is updated every time the transformation runs, and don't require a reannotation.
- Workflow with a Function and a Transformation to the cdf_data_pipeline_files_valhall example
- The
cdf_functions_dummy
module now includes codes from the formercommon_function_code
directory.
- In
example_pump_data_model
, in thePump.view.yaml
the propertysource
usedexternal_id
instead ofexternalId
.
- Align tag name in asset hierarchy between the 2 example transformations
- Added default root asset ID to documents for initial annotation
- Aligned use of asset external ID across contextualization functions
- Annotation logic with local time stamp for when to reprocess P&ID files
- Input to P&ID annotation based on list of synonyms for tag
- Updated module
apm_simple_data_model
forcognite-sdk>=7.37
, i.e., container properties of typedirect
have nowlist: false
explicitly set.
- Added Transformation for WorkOrder and WorkItems to OID testdata template
- Added Workflow with a Function and a Transformation to the custom module example
No changes to templates.
- Added functionality for wildcard detection of tags in P&ID
- Added functionality for multiple overlapping annotation to same tag - related to wildcards
No changes to templates.
No changes to templates.
- Module
cognite_modules/example/cdf_data_pipeline_timeseries_valhall
opcua / time series extractor pipeline, CDF function running contextualization of time series to assets.
- In the
infield
section, theinfield_apm_app_config.node.yaml
was moved fromcdf_infield_location
tocdf_infield_common
module. In addition, the modulecdf_infield_second_location
was added to theinfield
section. This is to demonstrate how multiple locations in Infield should be handled. - In the
cdf_data_pipeline_files_valhall
example, the Cognite Functionfu_context_files_oid_fileshare_annotation
has been renamed tofn_context_files_oid_fileshare_annotation
. It has also been split into several files, to be easier to understand. It has also been changed to usingprint
s (overlogging
), as that is unfortunately a hard requirement from the API.
- In the
cdf_data_pipeline_files_valhall
example, theREADME.md
file has been updated with instructions on how to run and test Cognite Functions locally.
- In cdf_oid_example_data, the filename prefixes have been removed from the filenames and instead the new name template functionality is used to prefix the filenames as part of the build step.
- Replaced
shared: True
toisPublic: True
andaction: upsert
toconflictMode: upsert
in all transformation configurations to match the CDF API specification.
- Added a new module
cognite_modules/example/cdf_data_pipeline_files_valhall
file extractor pipeline, transformation and CDF function running annotation on P&ID documents.
- Added missing cognite-sdk dependency to the common_functions_code.
- Added a new module
cognite_modules/example/cdf_functions_dummy
that shows how to create functions and deploy them. - Added common function code examples in
common_function_code/
directory as well as an example of how to use the common code in thecognite_modules/example/cdf_functions_dummy/fn_test2
andfn_example_repeater
functions.
- In module
cognite_modules/example/example_pump_asset_hierarchy
, in the transformationpump_asset_hierarchy_load-collections_pump.sql
the valuepump_assets
was hardcoded instead of using the variable{{raw_db}}
. This has been fixed.
No changes to templates.
No changes to templates.
No changes to templates.
No changes to templates.
- In the package
example_pump
ensure all transformations are prefixed withtr_
.
- Explicitly define model
space
inexperimental/cdf_asset_source_model/
andexperimental/example_pump_model/
. - The module
my_example_module
has been added to thecustom_modules
folder. - Added globally defined schedule variables that can be used across all modules.
- A complete example of an Asset data pipeline in
examples/cdf_asset_data_pipeline/
shows how to configure an Extractor, monitor the status of the Extraction Pipeline, and load the data into the asset hierarchy using Transformations. - DataSet to all example modules:
cdf_apm_simple_data_model
,cdf_asset_source_model
,cdf_oid_example_data
,example_pump_data_model
,example_pump_asset_hierarchy
.
- BREAKING All externalIds and names have been changed to follow the naming conventions for resources
in
examples/cdf_oid_example_data
,examples/cdf_apm_simple_data_model
,modules/cdf_apm_base
,modules/cdf_infield_common
, andmodules/cdf_infield_location
. - BREAKING Transformation Schedules broken out into separate files, following naming convention
<transformation_name>.schedule.yaml
. - All cognite templates have been moved into
cognite_templates
folder, whilelocal_templates
is renamed tocustom_templates
. - Move cdf_apm_base into separate folder.
- The file
local.yaml
has been renamedenvironments.yaml
to better reflect its purpose. - Removed demo
sourceId
fromcdf_infield_location
module. - Changed the isPaused flag to use a module-level variable instead of hardcoded in
cdf_apm_simple_data_model
. - Combined the child and parent transformations
sync_assets_from_hierarchy_to_apm
incdf_infield_location
. This has the benefit of not having to wait for the parent transformation to finish before starting the child transformation, thus no longer a dependency between the two transformations.
- Removed transformation identity provider variables from modules and reused the global cicd_ prefixed ones.
- Ensure all transformations in
cognite_modules
are prefixed withtr_
and all spaces are prefixed withsp_
.
- Remove unused template_version variable from groups and use of group metadata.
- Split up cdf_oid_example_data into data sets and RAW databases per source system.
- Add space yaml files for existing data models when explicit space definition was introduced.
- Fix use of integer value in version for data models.
- Fix wrong reference to
apm_simple
inexamples/cdf_apm_simple_data_model
andmodules/cdf_infield_location
. - Exemplify use of a single config yaml file for multiple file resources in
examples/cdf_oid_example_data/files/files.yaml
.
- Changed format of infield external_ids to be more readable, moving
_dataset
(ds) and_space
to the beginning of the external_id. examples/cdf_apm_simple/raw
andexamples/example_dump_asst_hierarchy/raw
now explicitly defines database and table name in.yaml
files for each table.- Added
data_set
toexamples/example_dump_asst_hierarchy/
, which was implicitly defined in before.
- cdf_infield_common module and the auth applications-configuration.yaml did not load group source id correctly due to source_id being used instead of sourceId. This is now fixed.
Initial release