Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions hub/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
=========

.. _changelog_2025-03-17:

2025-03-17
----------
* Added the ``trigger_on`` property to the following transforms:

- :ref:`DTL transform <dtl_transform>`.
- :ref:`JSON schema transform <json_schema_transform>`.
- :ref:`XML transform <xml_transform>`.

.. _changelog_2025-03-10:

2025-03-10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ Properties
- ``true``
-

* - ``trigger_on``
- Object
- A dictionary with two properties: ``"key"`` (optional, defaults to ``"_trigger"``) and ``"value"``. The ``"key"``
should point to a property in the entity (it supports path notation) and ``"value"`` should contain a value that
this property should have to be passed into the transform. The ``"value"`` supports wildcards ("*") for substring
matching. If the ``"key"`` doesn't exist or the ``"value"`` does not match the corresponding value in the entity,
the entity will be passed through without being transformed. Note that this property is experimental and may
be changed or removed.
-
-

Example configuration
^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -52,6 +63,10 @@ Transformation Language before writing them to the
},
"transform": {
"type": "dtl",
"trigger_on": {
"key":"_trigger",
"value": "some-value*"
},
"rules": {
"default": [
["copy", "_id"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ Properties
- ``"errors"``
-

* - ``trigger_on``
- Object
- A dictionary with two properties: ``"key"`` (optional, defaults to ``"_trigger"``) and ``"value"``. The ``"key"``
should point to a property in the entity (it supports path notation) and ``"value"`` should contain a value that
this property should have to be passed into the transform. The ``"value"`` supports wildcards ("*") for substring
matching. If the ``"key"`` doesn't exist or the ``"value"`` does not match the corresponding value in the entity,
the entity will be passed through without being transformed. Note that this property is experimental and may
be changed or removed.
-
-

Example configuration
^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -69,6 +80,10 @@ Example configuration
},
"transform": {
"type": "json_schema",
"trigger_on": {
"key":"_trigger",
"value": "some-value*"
},
"schema": {
"type" : "object",
"properties" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Properties
-
-

* - ``trigger_on`` (experimental)
* - ``trigger_on``
- Object
- A dictionary with two properties: ``"key"`` (optional, defaults to ``"_trigger"``) and ``"value"``. The ``"key"``
should point to a property in the entity (it supports path notation) and ``"value"`` should contain a value that
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ The properties are identical to the :ref:`XML endpoint sink <xml_endpoint_sink>`

{
"type": "xml",
"trigger_on": {
"key":"_trigger",
"value": "some-value*"
},
"root-attributes": {
"xmlns": "http://www.example.org/ns1",
"xmlsn:foo": "http://www.example.org/ns2",
Expand Down Expand Up @@ -64,6 +68,17 @@ Properties
- true
-

* - ``trigger_on``
- Object
- A dictionary with two properties: ``"key"`` (optional, defaults to ``"_trigger"``) and ``"value"``. The ``"key"``
should point to a property in the entity (it supports path notation) and ``"value"`` should contain a value that
this property should have to be passed into the transform. The ``"value"`` supports wildcards ("*") for substring
matching. If the ``"key"`` doesn't exist or the ``"value"`` does not match the corresponding value in the entity,
the entity will be passed through without being transformed. Note that this property is experimental and may
be changed or removed.
-
-

Example configuration
^^^^^^^^^^^^^^^^^^^^^

Expand Down