From 2c936c411b8a05efa998323c3670da22e8b4e9d9 Mon Sep 17 00:00:00 2001
From: SimonCockx <47859223+SimonCockx@users.noreply.github.com>
Date: Fri, 24 Nov 2023 10:49:48 +0100
Subject: [PATCH] DSL update: type coercions (#2533)
* Set DSL version
* Set bundle version
* Formatted
* Cleaned
* Cleaned
* Added release notes
* Fixed release notes
* Workaround for equality check
* Cleaned
* Updated release notes
* Update RELEASE.md
---------
Co-authored-by: Hugo Hills <39260692+hugohills-regnosys@users.noreply.github.com>
---
RELEASE.md | 17 +++++++++++++++++
pom.xml | 4 ++--
.../main/rosetta/observable-common-func.rosetta | 7 ++++++-
3 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/RELEASE.md b/RELEASE.md
index 34d5791f22..4de6397d0e 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -46,3 +46,20 @@ This release updates the FpML schema used for FpML to CDM ingestion. The version
_Review Directions_
This change has no impact on the model or test expectations. The changes can be reviewed in PR [2542](https://github.com/finos/common-domain-model/pull/2542).
+
+# *Infrastructure - Dependency Update*
+
+_What is being released?_
+
+This release updates the `rosetta-dsl` dependency.
+
+Version updates include:
+- `rosetta-dsl` 9.1.0: this release fixes several code generation issues such as [when assigning a Rosetta int to a Rosetta number](https://github.com/REGnosys/rosetta-dsl/issues/579). For further details see DSL release notes: https://github.com/REGnosys/rosetta-dsl/releases/tag/9.1.0.
+
+The issue brought to light a bug in the model having to do with the `CashPriceQuantityNoOfUnitsTriangulation` function, which has been resolved.
+
+_Review directions_
+
+Test expectations remain the same.
+
+The changes can be reviewed in PR [#2533](https://github.com/finos/common-domain-model/pull/2533).
diff --git a/pom.xml b/pom.xml
index fe8aebee0e..6d519ecf7a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,9 +82,9 @@
oss.sonatype.org
- 9.1.0
+ 9.2.0
${rosetta.bundle.version}
- 9.0.3
+ 9.1.0
2.27.0
1.7.0
diff --git a/rosetta-source/src/main/rosetta/observable-common-func.rosetta b/rosetta-source/src/main/rosetta/observable-common-func.rosetta
index 0f52adafc3..3d454b4efa 100644
--- a/rosetta-source/src/main/rosetta/observable-common-func.rosetta
+++ b/rosetta-source/src/main/rosetta/observable-common-func.rosetta
@@ -33,8 +33,13 @@ func CashPriceQuantityNoOfUnitsTriangulation: <"Data rule to check the relations
extract value
then only-element
- alias cashPrice: price -> value only-element
+ alias cashPrice:
+ price
+ filter priceType = PriceTypeEnum -> AssetPrice
+ then extract value
+ then only-element
set success:
if cashPrice exists and noOfUnits exists and notional exists
then cashPrice * noOfUnits = notional
+ else True