Skip to main content
Version: 12.x (Current)

Changelog

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.

[6.4.0] 2023-12-14

Updated

  • updated to @mia-platform-internal/single-view-creator-lib@14.10.0:
    • support for Control Plane resume and pause commands (@mia-platform-internal/single-view-creator-lib@14.10.0)
    • introduction of sv-retry mechanism (@mia-platform-internal/single-view-creator-lib@14.9.0)

[6.3.0] 2023-11-24

Updated

  • update @mia-platform-internal/single-view-creator-lib@14.9.0 to introduce sv-retry mechanism
  • update @mia-platform-internal/single-view-creator-lib@14.9.1 to add metrics for the sv-retry

Fixed

  • NO_SV_GENERATED error is only tracked when aggregation does not return a valid result but it should.

Added

  • Add grafana to local docker compose
  • introduce new environment variables KAFKA_CONSUMER_MAX_WAIT_TIME_MS to manage the consumer max poll time and SV_UPDATE_VERSION to define which event format should be adopted by the service to emit sv-update events

Changed

  • updated @mia-platform-internal/single-view-creator-lib@14.8.1 to introduce the opt-in feature of generating sv-update events adopting the version 2
  • updated Docker image to use NodeJS v20
  • updated Gitlab pipeline to use NodeJS v20

[6.2.2] 2023-10-25

Fixed

  • re-add ramda dependency

[6.2.1] 2023-10-03

Added

  • configuration and input data for running a simple demo of the service

Changed

  • updated @mia-platform-internal/single-view-creator-lib@14.7.2 to fix a commit issue introduced in previous release

[6.2.0] 2023-09-27

Changed

  • updated @mia-platform-internal/single-view-creator-lib@14.7.0 to leverage messages compactions in Kafka Message Handler
  • reviewed pipeline described in gitlab-ci.yml to update the employed Kafka image
  • reviewed docker-compose.yml to setup all the systems needed to run the service
  • removed dependencies not necessaries or classified as dev-dependencies

[6.1.0] 2023-09-07

Added

  • Support for pr-update version 2.0.0 and message ajv validation for all input message types

Updated

Fixed

  • Now at the startup, the service will not only check that a configMap exists, but also that it isn't empty and contains a valid function.

[6.0.0] 2023-07-18

BREAKING CHANGE

  • The service will crash at startup if the Aggregation configuration file contains at least a condition that does not exist in the ER Schema or it includes an empty query. Before this update, an error was thrown at every Single View aggregation attempt, but the service would stay up. Now it stops, forcing the user to review their configurations.

Updated

  • A clean up operation is performed to remove empty conditions in the ER Schema configuration file and a safety check is performed in the Aggregation configuration file to verify if includes conditions that does not exists (or refer to empty conditions). This feature comes with the library @mia-platform-internal/fast-data-automation-lib@3.1.0.

Fixed

  • avoid to re-evaluate erSchema.json and aggregation.json content every time an aggregation of a Single View is performed, from now on these operation will be executed at service startup.

[5.6.8] 2023-06-26

Changed

  • Upgraded @mia-platform-internal/single-view-creator-lib to v14.5.5 to fix a bug related to error logging

[5.6.7] 2023-06-20

Changed

  • Upgraded @mia-platform-internal/single-view-creator-lib to v14.5.4 to fix a bug related to the readiness and healthiness routes. When Kafka fails for a faulty message, the healthiness and readiness routes now return KO

[5.6.6] 2023-04-21

Fixed

  • aggregation not mapping fields with mongo operators. This feature comes with fast-data-automation-lib@3.0.2
  • Upgraded service image node version to v18.16.0

[5.6.5] 2023-01-30

Added

  • Added a more self-explanatory error message on aggregation.json validation

Changed

  • Upgraded @mia-platform-internal/single-view-creator-lib to v14.5.3 to fix multiple bugs and introduce support to MongoDB v6. In particular the following improvements were made:
    • When using Single View Creator in PATCH mode, patch actions that employed complex types (such as Date) in the projection identifiers were not handled correctly (due to reconversion towards JSON string). Thus, no related Single View was updated with respect to the modified projection. To fix this behavior it has been introduced a fallback mechanism that exploits the MongoDB document identifier generated in a previous step within Fast Data flow to correctly select the projection from which the update value should be retrieved.
    • When the Kafka Message Handler failed to parse a Kafka message, instead of stopping itself to retry processing the invalid message, it simply skipped it. The correct behavior has been restored to enable retrying processing such message.
    • When UPSERT_STRATEGY is set to replace the service now adds the field createdAt every time it insert or replace a Single View
  • Upgraded service image node version to v18.13.0

[5.6.4] 2022-12-20

Fixed

  • Aggregation matched all documents when both fields in the identifierQueryMapping were inexistent on the starting document. Now the query does not match any documents in that case. This fix comes with @mia-platform-internal/fast-data-automation-lib: 2.3.2

Added

  • Added metric for the sv-patch in @mia-platform-internal/single-view-creator-lib: 14.5.2 (just a label in the svGenCounter and errorCounter metrics)

[5.6.3] 2022-11-28

Fixed

  • Aggregation matched all documents when both fields in a condition were inexistent in the erSchema. Now the query does not match any documents.

Changed

  • upgrade @mia-platform-internal/fast-data-automation-lib to v2.3.1

[5.6.2] 2022-11-10

Added

  • Environment Variable MAX_INTERVAL_BETWEEN_FETCHES_TO_BE_ALIVE_IN_MS used by the single-view-creator-lib.

Changed

  • upgrade @mia-platform-internal/fast-data-automation-lib to v2.2.1

[5.6.1] 2022-11-08

Added

  • The SV Patch can now be applied with a single step operation employing a MongoDB updateMany instead scanning all the matching records. This speeds up the process but no SV update/creation event is produced.

[5.6.0] 2022-10-27

Changed

  • updated single-view-creator-lib to v14.5.0 to remove documentId, before and after in sv-update topics

[5.5.1] 2022-10-25

Added

  • updated @mia-platform-internal/single-view-creator-lib @14.4.1, introducing arrayFilters option to custom patch action functions

[5.5.0] 2022-10-25

Added

  • updated @mia-platform-internal/single-view-creator-lib @14.4.0, introducing the READ_TOPIC_FROM_BEGINNING environment variable to decide whether read from the beginning of a topic when subscribing to it (default value: false);

[5.4.0] 2022-10-24

Updated

  • updated @mia-platform-internal/single-view-creator-lib @14.3.0, introducing support for SV patch on legacy architecture, and updated other outdated dependencies.

Fixed

  • updated @mia-platform-internal/single-view-creator-lib @14.3.1, fixing certification authority handling by the kafka consumer

[5.3.0] 2022-09-27

Added

  • added support for the new svTriggerHandlerCustomConfig configuration, added interpretation of the new configuration so as to pass the patch operation to the library to execute.

[5.2.1] 2022-09-27

Added

  • updated @mia-platform-internal/single-view-creator-lib @14.2.1 and introduced virtual delete as delete operation option

[5.2.0] 2022-09-14

BREAKING CHANGE

  • the properties before and after in sv-update messages are empty by default (to include them, the environment variable ADD_BEFORE_AFTER_CONTENT must be included and set to true)

Added

  • mia_metadata_custom_metrics exposed prometheus client

Changed

  • Changed env vars KAFKA_CONSUMER_GROUP_ID and KAFKA_BROKERS_LIST to KAFKA_GROUP_ID and KAFKA_BROKERS to match the RTU env vars' name

  • PROJECTIONS_CHANGES_COLLECTION env var is not required anymore

Updated

  • @mia-platform-internal/single-view-creator-lib @14.1.1

[5.1.0] 2022-07-26

Fixed

  • Broken documentation links

Updated

  • @mia-platform-internal/fast-data-automation-lib ^2.1.0

[5.0.0] 2022-07-01

BREAKING CHANGES

  • When performing insert/update of the Single View, the STATE field of the single view passed is kept if existing; otherwise is set to PUBLIC. So, it is now possible to create a Single View or update one to set it to a state different from PUBLIC.

Updated

  • @mia-platform-internal/single-view-creator-lib @12.0.0

[4.3.0] 2022-06-29

Added

  • Updated SVC lib version to 11.1.1 and added new env vars KAFKA_SV_UPDATE_TOPIC and SEND_SV_UPDATE_TO_KAFKA

[4.2.0] 2022-05-26

Added

  • Added the possibility to specify a custom function as updateSV and deleteSV through the environments variable UPSERT_STRATEGY and DELETE_STRATEGY

[4.1.1] 2022-05-25

Fixed

  • removed sorting of reading PC from MongoDB for performance reasons

[4.1.0] 2022-05-23

Updated

  • @mia-platform-internal/fast-data-automation-lib ^1.5.0

Added

  • added dependencyOrder field for aggregation schema to specify the order of solving of dependencies

[4.0.0] 2022-05-17

BREAKING CHANGE

  • single view before-after message kafkaInfo field changed into __internal__kafkaInfo to align it to others events

Changed

  • single view event messages now have __internal__kafkaInfo field

Updated

  • @mia-platform-internal/fast-data-automation-lib "^1.4.1
  • @mia-platform-internal/single-view-creator-lib "^11.0.0

[3.10.0] 2022-05-04

Updated

  • @mia-platform-internal/single-view-creator-lib @^10.0.0
  • @mia-platform-internal/fast-data-automation-lib @^1.4.0

[3.9.0] 2022-04-26

Fixed

  • __string__ constant now supports any characters

Updated

  • @mia-platform-internal/fast-data-automation-lib ^1.3.2

Added

  • add CA cert support. Env var for path definition: CA_CERT_PATH.

[3.8.1] 2022-04-11

Updated

  • @mia-platform-internal/single-view-creator-lib @^9.8.1

Fixed

  • parsing of timestamp when using Projection Changes read from kafka

[3.8.0] 2022-04-06

Updated

  • @mia-platform-internal/single-view-creator-lib @^9.8.0

Added

  • Added option to read projection changes from kafka instead of mongo. The newly introduced variables are: PROJECTIONS_CHANGES_SOURCE, KAFKA_CONSUMER_GROUP_ID, KAFKA_PROJECTION_CHANGES_TOPICS.

[3.7.2] 2022-03-29

Updated

  • @mia-platform-internal/single-view-creator-lib @^9.7.0

[3.7.1] 2022-03-28

Updated

  • @mia-platform-internal/fast-data-automation-lib ^1.3.0

[3.7.0] 2022-03-28

Updated

  • @mia-platform-internal/single-view-creator-lib @^9.7.0

Added

  • Added projectionToSvTime prometheus metric to track the time spent between the projection kafka production to the SV generation.

[3.6.0] 2022-03-21

Added

  • @mia-platform-internal/fast-data-automation-lib": "^1.2.0
  • logical expression and conditions in aggregation
  • validate aggregation schema against a JSON Schema

[3.5.1] 2022-03-17

Changed

  • updated MongoDb npm driver to version 4.4.1

[3.5.0] 2022-03-11

Added

  • added the possibility of inserting inside the CONFIGURATION_FOLDER a custom validator function for single views

[3.4.2] 2022-02-25

Fixed

  • process again Projection Changes left IN_PROGRESS due to a prior Single View Creator crash while processing fixed

Added

  • SINGLE_VIEWS_MAX_PROCESSING_MINUTES environment variable

Updated

  • @mia-platform-internal/single-view-creator-lib @^9.6.3

[3.4.1] 2022-02-25

Fixed

  • process again Projection Changes left IN_PROGRESS due to a prior Single View Creator crash while processing

Updated

  • tap@15.1.6
  • node:14.19.0-alpine
  • @mia-platform-internal/single-view-creator-lib @^9.6.3
  • @mia-platform-internal/fast-data-automation-lib @^1.1.1

[3.4.0] 2022-02-10

Updated

Added

  • support to string, integer, boolean

[3.3.1] 2022-02-01

Fixed

  • do not use dependency resolved of previous iteration for mapping in a config

Updated

[3.3.0] 2022-01-25

Added

  • Added automation of aggregation and singleViewKey using json configuration

[3.2.0] 2021-11-30

Added

  • insert in Single View and Before After kafka information about original kafka message that triggered the Fast Data update. Information are taken from the projection changes.

[3.1.0] 2021-10-26

Added

  • UPSERT_STRATEGY env to choose if SV have to be updated or replaced with the new one

[3.0.2] 2021-09-28

Updated

  • @mia-platform-internal/single-view-creator-lib": ^9.3.0 to have crud fields in single view error documents

[3.0.1] 2021-09-23

Fixed

  • dockerfile use node:14.16.1

[3.0.0] 2021-09-22

Breaking Changes

  • @mia-platform-internal/single-view-creator-lib": ^9.2.1
  • @mia-platform-internal/single-view-versioning-lib": ^1.10.9
  • @mia-platform/custom-plugin-lib: ^2.3.0
  • @mia-platform/lc39: "^3.3.0"
  • luxon: ^1.28.0
  • mongodb: ^3.7.1
  • node: 14.17.6

[2.0.0] 2021-07-13

Updated

  • @mia-platform-internal/single-view-creator-lib": ^8.3.0
  • @mia-platform-internal/single-view-versioning-lib": ^1.10.7

Breaking changes

  • changed docker image into fast-data/single-view-creator-plugin

[1.0.0] 2021-04-16

  • init