Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JEAN BAPTISTE ZIADE Acc/Decu/Target_PROD #3325

Draft
wants to merge 162 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
9f85549
TH_Valuation_Instruction
gtarres Nov 29, 2023
2f50aaf
ValuationInstruction now contains the replace flag. Create_Valuation …
manel-martos Dec 1, 2023
b797ab2
Fix CVE scanning (#2561) (#2562)
hugohills-regnosys Dec 1, 2023
d6b68e8
Added Valuation update release notes into RELEASE.md
manel-martos Dec 1, 2023
c977d95
DSL Update (#2550)
SimonCockx Dec 1, 2023
b49ab16
5xx Prevent GitHub Actions from being triggered twice (#2559) (#2563)
SimonCockx Dec 1, 2023
f48a3f3
Fix merging, update to 5.x.x, and resolve conflicts
hugohills-regnosys Dec 1, 2023
e7f64fd
Remove already released release note
hugohills-regnosys Dec 1, 2023
7a408f9
Update RELEASE.md
lolabeis Dec 1, 2023
1a0cf5c
Update RELEASE.md
lolabeis Dec 1, 2023
e641028
Update RELEASE.md
lolabeis Dec 1, 2023
75bccf8
Merge pull request #2552 from rosetta-models/gtarres_auth0_6226136367…
lolabeis Dec 1, 2023
aea4912
Marc Gratacos Updated Qualifying functions for Known Amount ZC (#2571)
hugohills-regnosys Dec 1, 2023
4307cf1
Bataller García Eric Deprecated use of personRole in NaturalPerson ty…
regnosys-prod-user Dec 6, 2023
3b95d26
Update ISO country code to keep in sync with latest ISO list (#2605)
hugohills-regnosys Jan 4, 2024
920c2a3
[5.x.x] Update CDM to use DSL version 9.3.0 (#2606)
hugohills-regnosys Jan 4, 2024
dbb74eb
[5.x.x] BUG-560: Bond forwards do not qualify (#2603)
hugohills-regnosys Jan 4, 2024
c7e8eed
update bundle version 5 x x (#2615)
PayalKhanna Jan 8, 2024
ba8af1a
format 5xx (#2619)
PayalKhanna Jan 9, 2024
809e35d
Update DSL version to 9.3.1 (#2626)
hugohills-regnosys Jan 15, 2024
a5bc6db
FRO_Mappings_Update_prod
JanBaserba Jan 16, 2024
cef5de0
PTRR_Mappings_prod
JanBaserba Jan 16, 2024
e7f60ce
Merge remote-tracking branch 'origin/5.x.x' into jbaserba_FRO_Mapping…
PayalKhanna Jan 17, 2024
d29569c
added Release Note
PayalKhanna Jan 17, 2024
b4ce917
FRO_Mappings_Update_prod
PayalKhanna Jan 17, 2024
fd5cc9b
Update RELEASE.md
PayalKhanna Jan 17, 2024
9ee9fd0
Merge remote-tracking branch 'origin/5.x.x' into jbaserba_PTRR_Mappin…
PayalKhanna Jan 17, 2024
fa8f14c
added Release Note and updated expectations
PayalKhanna Jan 17, 2024
6b267d5
Update RELEASE.md
PayalKhanna Jan 17, 2024
8256526
Merge pull request #2635 from rosetta-models/jbaserba_FRO_Mappings_Up…
lolabeis Jan 17, 2024
7d358f5
Merge remote-tracking branch 'origin/5.x.x' into jbaserba_PTRR_Mappin…
PayalKhanna Jan 17, 2024
f9ebae8
Merge pull request #2637 from rosetta-models/jbaserba_PTRR_Mappings_prod
lolabeis Jan 17, 2024
17c2bc1
[5xx] DSL update (#2645)
SimonCockx Jan 24, 2024
aa7b5e3
Nicholas Moger Create_Execution Update - Release PR (#2649)
JayasriR Jan 25, 2024
e8caa2d
[5.x.x] Fix bond forward mapping issues (#2656)
hugohills-regnosys Jan 26, 2024
e8e90a6
Manuel Carrera PTRR Service Provider - Release PR (#2651)
JayasriR Jan 26, 2024
ea87b77
Marc Gratacos Prod: Updates to the Zero Coupon Qualification - Releas…
JayasriR Jan 29, 2024
4c3566e
Gopazo enhanced price mappings prod rn (#2644)
PayalKhanna Jan 30, 2024
f91ffb4
Format (#2674)
regnosys-prod-user Feb 2, 2024
00be587
[5.x.x] Update bundle dependency for translate fix for FpML oilPhysic…
hugohills-regnosys Feb 2, 2024
153e95a
fix Release Note
PayalKhanna Feb 5, 2024
b73ddb6
Update RELEASE.md
PayalKhanna Feb 5, 2024
cebdb6a
Update RELEASE.md
PayalKhanna Feb 6, 2024
e9dc159
Merge pull request #2682 from rosetta-models/fix_release-note-5xx
lolabeis Feb 6, 2024
83bd967
[5.x.x] JSON schema support (#2686)
hugohills-regnosys Feb 9, 2024
3590371
[5.x.x] STORY-3109: A DRR user can get valid output from ToDateTime f…
hugohills-regnosys Feb 9, 2024
9946b0e
RBA_BOND_BASIS DCF Prod
manucarreramoreno Feb 22, 2024
f22cc39
CommodityClassificationMappings_PROD
rogerguitart Feb 23, 2024
5a80499
update bundle version and Enums with fpml schema updates [Production]…
PayalKhanna Feb 26, 2024
94fb424
CDM Day Count Fraction RBA_BOND_BASIS Prod
manucarreramoreno Feb 26, 2024
8773aec
remove navigation build from pipeline (#2722)
PayalKhanna Feb 26, 2024
2cc6132
Merge remote-tracking branch 'origin/5.x.x' into mcarrera-cdmPRODDayC…
PayalKhanna Feb 26, 2024
a2c52fd
update release Note
PayalKhanna Feb 26, 2024
1788f4f
Update RELEASE.md
PayalKhanna Feb 26, 2024
6067fe9
Mcarrera commodity forwards update expectations PROD (#2719)
PayalKhanna Feb 26, 2024
bb511b9
Merge remote-tracking branch 'origin/5.x.x' into mcarrera-cdmPRODDayC…
PayalKhanna Feb 26, 2024
2ece240
Update RELEASE.md
eacunaISDA Feb 26, 2024
50edb5a
[5.x.x] BUG-572: DSL - handling null values in expressions (#2729)
SimonCockx Feb 26, 2024
149600a
Merge pull request #2726 from rosetta-models/mcarrera-cdmPRODDayCount…
lolabeis Feb 27, 2024
ddac439
Merge remote-tracking branch 'origin/5.x.x' into rguitart-CommodityCl…
PayalKhanna Feb 27, 2024
7b48ca4
update release Note
PayalKhanna Feb 27, 2024
1858ee8
update release Note
PayalKhanna Feb 27, 2024
ea702af
Update RELEASE.md
rogerguitart Feb 27, 2024
3a7bde4
Update RELEASE.md
rogerguitart Feb 27, 2024
5b6d78f
Update RELEASE.md
rogerguitart Feb 27, 2024
fba6669
Update RELEASE.md
rogerguitart Feb 27, 2024
d9ac3f8
Merge pull request #2734 from rosetta-models/rguitart-CommodityClassi…
lolabeis Feb 27, 2024
aaee905
Rguitart settlement type mappings release prod (#2728)
PayalKhanna Feb 27, 2024
7206894
Ebataller isdaiifm tma master agreement type enum release prod (#2720)
PayalKhanna Feb 27, 2024
e702123
Gopazo qualifying functions etd release prod (#2733)
PayalKhanna Feb 27, 2024
f1ae4ad
CDM Commodity Physical Options prod
manucarreramoreno Mar 6, 2024
cd394fe
CDM Commodity Physical Options prod
manucarreramoreno Mar 6, 2024
6846086
Update RELEASE.md
JayasriR Mar 6, 2024
837cbdc
Update RELEASE.md
manucarreramoreno Mar 6, 2024
4fc3b2c
Merge pull request #2750 from rosetta-models/mcarrera_auth0_619cb6a21…
lolabeis Mar 7, 2024
8ce107b
sequential-build-steps (#2782)
PayalKhanna Mar 14, 2024
48f76f5
[5.x.x] Update DSL version to 9.7.0 (#2780)
hugohills-regnosys Mar 15, 2024
b21d83f
[5.x.x] Infrastructure - fix build config file and reformatting (#2791)
regnosys-prod-user Mar 19, 2024
09c15d1
[5.x.x] Remove unused files related to the CDM Portal (#2799)
hugohills-regnosys Mar 21, 2024
9d54df0
[5.x.x] STORY-3208: A CDM user has access to the FpML 5.13 ingestion …
hugohills-regnosys Mar 21, 2024
fa9b3c0
[5.x.x] STORY-3174: Enhanced commodity classification mapping (#2803)
hugohills-regnosys Mar 21, 2024
d3ccccb
Jbziade portfolio price return terms fragmos prod fix mappings (#2776)
PayalKhanna Mar 25, 2024
2b36501
[5xx] Gopazo th contractual party mapping fix prod (#2833)
PayalKhanna Apr 4, 2024
ac73e4b
Jbziade acc decumulator temporay drr prod release (#2830)
PayalKhanna Apr 5, 2024
9deb9c1
Mcarrera product qualification asset class upgrade release 5xx (#2840)
PayalKhanna Apr 5, 2024
5ac9605
[5.x.x] Fix merge issues in PR #2840 (#2843)
hugohills-regnosys Apr 8, 2024
3bfb862
[5.x.x] Fix commodity swap settlement type mappings (#2836)
hugohills-regnosys Apr 8, 2024
f34f1ca
Manuel Carrera CDM Asset Class Qualification PROD fixed with expectat…
PayalKhanna Apr 9, 2024
749fb6d
[5.x.x] STORY-3262 AssetClass qualification fix (#2862)
regnosys-prod-user Apr 16, 2024
966c44a
Manuel Carrera CDM FX NDS prod (#2867)
regnosys-prod-user Apr 18, 2024
8edecc5
Roger Guitart TRS on a bond - PROD (#2856)
regnosys-prod-user Apr 18, 2024
9ca4ce2
[5.x.x] Changes to utilize the new Python code generator (v2) (#2875)
JayasriR Apr 19, 2024
aedac4d
DSL update 5xx (#2876)
SimonCockx Apr 19, 2024
cf38b14
Add nexus-staging-maven-plugin to auto release after close (#2887)
JayasriR Apr 29, 2024
cb8af31
[5.x.x] Update Rosetta Common version to 10.17.1 (#2892)
minesh-s-patel May 2, 2024
f376632
Add nexus-staging-maven-plugin to auto release after close (#2912)
JayasriR May 3, 2024
4400ce3
[5.x.x] RoundToPrecision bug fix (#2916)
hugohills-regnosys May 7, 2024
5a932a5
Reinstate GBP_SONIA_Refinitiv_Term in FloatingRateIndexEnum 5xx (#2922)
PayalKhanna May 14, 2024
696029b
[5.x.x] FpML mapping fixes - FRA payment frequency and other fixes fr…
hugohills-regnosys May 24, 2024
5850a58
Update fpml scheme import additive only 5xx (#2931)
PayalKhanna May 24, 2024
a78ae4c
Update pom.xml (#2939)
davidalk May 28, 2024
d7bd63a
[5.x.x] FRA payment frequency should be mapped to the fixed leg (#2946)
hugohills-regnosys May 31, 2024
b78d382
[5.x.x] A CDM user can create a new TradeLot with a unique Identifier…
JayasriR Jun 12, 2024
545ec6a
[5.x.x] Update FpML mappings based on DRR and ISDA member mapping fix…
hugohills-regnosys Jun 13, 2024
bf9e58a
[5.x.x] JEAN BAPTISTE ZIADE minorFixforPortfolioSwap - Release PR (#2…
JayasriR Jun 13, 2024
87ebfd8
[5.x.x] Support for mangling reserved Python keywords used in CDM Run…
hugohills-regnosys Jun 14, 2024
871d941
[5.x.x] Update DSL version to 9.11.2 (syntax validation fix) (#2990)
hugohills-regnosys Jun 17, 2024
1424498
Update ISOCurrencyCodeEnum based on updated scheme ISO Standard 4217 …
regnosys-prod-user Jul 2, 2024
8f666fa
[5xx] Update DSL (#3006)
SimonCockx Jul 3, 2024
6ea9940
CDMChanges514
winitall01 Jul 8, 2024
e5f9e35
Update observable-asset-type.rosetta
winitall01 Jul 8, 2024
548631d
Update RELEASE.md
JayasriR Jul 8, 2024
3203b5a
Update RELEASE.md
JayasriR Jul 8, 2024
a9b8dc2
Merge pull request #3031 from rosetta-models/vineet.kumar_auth0_63b40…
dshoneisda Jul 9, 2024
889d724
PROD Bug Fix - Modification to product condition for FpML_cd_30 (#3032)
regnosys-prod-user Jul 9, 2024
25b75cc
Adding new value to the ContractualDefinitionsEnum
mgratacos Jul 17, 2024
d1fcedb
DSL Update 5xx (#3065)
SimonCockx Jul 26, 2024
796f5a5
DSL update
SimonCockx Aug 1, 2024
159b669
Merge pull request #3083 from rosetta-models/choice-metadata-fix5xx
dshoneisda Aug 1, 2024
e8ebbd6
Amendments for equity products (#3092)
minesh-s-patel Aug 16, 2024
22135ce
Migrate to s01.oss.sonatype.org (#3103)
hugohills-regnosys Aug 23, 2024
a96cdf9
[5xx] DSL Update (#3098)
SimonCockx Aug 23, 2024
6067adb
[5.x.x] Fix address/location references on nested model types (#3100)
hugohills-regnosys Aug 27, 2024
ab8eee1
task-5050: config update
ja6a-regnosys Aug 27, 2024
c355c37
Update RELEASE.md
ja6a-regnosys Aug 27, 2024
36c061f
removed jfrog references (#3109)
PayalKhanna Aug 28, 2024
69bf367
Merge branch '5.x.x' into story/959/5050xx
ja6a-regnosys Aug 28, 2024
d634a51
Merge pull request #3108 from rosetta-models/story/959/5050xx
dshoneisda Aug 28, 2024
64b10bb
update Dsl and bundle version
PayalKhanna Aug 29, 2024
b7ecb90
Update RELEASE.md
PayalKhanna Aug 29, 2024
598464a
Merge pull request #3111 from rosetta-models/story/3460/updatebundle5xx
dshoneisda Aug 29, 2024
7c8fae0
[5.x.x] Update DSL version to 9.17.2 (#3131)
hugohills-regnosys Sep 16, 2024
cd030b6
[5.x.x] Update DSL version to 9.18.1 (#3142)
hugohills-regnosys Sep 18, 2024
1d90e04
Update RELEASE.md
PayalKhanna Sep 19, 2024
288c54a
Merge remote-tracking branch 'origin/5.x.x' into mgratacos_auth0_5bbb…
PayalKhanna Sep 19, 2024
80e139b
release note updated
PayalKhanna Sep 19, 2024
44a33ba
Merge pull request #3048 from rosetta-models/mgratacos_auth0_5bbb11b4…
dshoneisda Sep 19, 2024
08c3e0f
DSL update (#3153)
SimonCockx Oct 3, 2024
3de148e
Added function RoundToSignificantFigure
PayalKhanna Oct 16, 2024
6b62f65
release added
PayalKhanna Oct 16, 2024
4683925
add java R and RoundToSignificantFiguresImpl and RoundToSignificantFi…
PayalKhanna Oct 16, 2024
ce93581
Merge pull request #3180 from rosetta-models/payal.khanna-CDM-RoundTo…
dshoneisda Oct 16, 2024
c1f9578
add new func RoundToPrecisionRemoveTrailingZero Java Impl RoundToPre…
PayalKhanna Oct 16, 2024
55f893e
Update RELEASE.md
hugohills-regnosys Oct 16, 2024
8c35576
Update base-math-func.rosetta
hugohills-regnosys Oct 17, 2024
4e63a4c
fix test
PayalKhanna Oct 17, 2024
ae0e849
Merge pull request #3181 from rosetta-models/payal.khanna-CDM-RoundTo…
dshoneisda Oct 17, 2024
db74c23
Added Missing the Guice configuration renamed the class (#3183)
PayalKhanna Oct 17, 2024
548091f
update bundle and dsl version (#3192)
davidalk Oct 23, 2024
eb1e1d5
CapacityUnitEnum 5x
LuciaCortesTH Oct 25, 2024
fc6f23e
Updated Expectations for Vineet Kumar EquityProductModifications (#3199)
JayasriR Oct 29, 2024
520257b
Merge branch '5.x.x' into lcortes_auth0_65c35d8032527345d0bc9560-Capa…
JayasriR Nov 11, 2024
a713c4f
Update RELEASE.md
PayalKhanna Nov 12, 2024
17501d3
Merge pull request #3197 from rosetta-models/lcortes_auth0_65c35d8032…
dshoneisda Nov 12, 2024
0121556
InterestRateForwardDebtPriceMappingProcessor updated to handle 'Perce…
JayasriR Nov 12, 2024
734956c
Update to rune dependencies 11.24.2 to support Choice Type (#3255)
PayalKhanna Nov 14, 2024
4eabe92
Update DSL version to 9.22.0
hugohills-regnosys Nov 15, 2024
9a9b8c0
Update release notex
hugohills-regnosys Nov 15, 2024
1357eb4
Sync with FpML coding scheme and update release note
hugohills-regnosys Nov 15, 2024
7cca430
Release note
hugohills-regnosys Nov 15, 2024
efa9366
Merge pull request #3260 from rosetta-models/dsl9220
dshoneisda Nov 18, 2024
dbf41e5
Acc/Decu/Target_PROD
JBZ-Fragmos Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 23 additions & 0 deletions .github/actions/maven-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Maven Build
description: Run a Maven Build

inputs:
run-tests:
description: Whether or not to run tests. The default is true.
required: false
# type: boolean - This is not supported (yet). All inputs are of type `string`. See https://github.com/actions/runner/issues/2238.
default: 'true'

runs:
using: "composite"
steps:
- name: Set up JDK 11 for x64
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
architecture: x64
cache: maven
- name: Build with Maven
shell: bash
run: mvn -B -U clean package${{ inputs.run-tests == 'false' && ' -DskipTests' || '' }}
30 changes: 21 additions & 9 deletions .github/workflows/cve-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CVE Scanning for Maven
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'pom.xml'
- 'allow-list.xml'
Expand All @@ -14,19 +16,29 @@ on:
- '.github/workflows/cve-scanning.yml'

jobs:
build:
depcheck:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
- uses: ./.github/actions/maven-build
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn clean install -DskipTests
run-tests: false
- name: CVE scanning
run: mvn org.owasp:dependency-check-maven:check -DfailBuildOnCVSS=7 -DsuppressionFile="allow-list.xml"
uses: dependency-check/[email protected]
env:
JAVA_HOME: /opt/jdk
with:
project: 'Common Domain Model'
path: '.'
format: 'HTML'
out: 'reports'
args: >
--suppression allow-list.xml
--failOnCVSS 7
- name: Upload results
uses: actions/upload-artifact@v3
with:
name: CVE Scan Report
path: ${{github.workspace}}/reports
19 changes: 10 additions & 9 deletions .github/workflows/license-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: License Scanning for Maven
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'pom.xml'
- '.github/workflows/license-scanning.yml'
pull_request:
paths:
- 'pom.xml'
- '.github/workflows/license-scanning.yml'
Expand All @@ -16,19 +22,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
module-folder: ["./", "./examples", "./rosetta-source", "./rosetta-project", "./distribution"]
module-folder: ["./", "./examples", "./rosetta-source", "./rosetta-project"]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
cache: maven
distribution: 'adopt'
- name: Install XQ
run: pip install xq
- name: Build with Maven
run: mvn clean install -DskipTests
- uses: ./.github/actions/maven-build
with:
run-tests: false
- name: License XML report
run: mvn org.codehaus.mojo:license-maven-plugin:2.0.0:download-licenses
- name: Validate XML report
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
name: CDM Build on Windows machine

on: [workflow_dispatch, push, pull_request]
on:
workflow_dispatch:
pull_request:

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Maven install
run: mvn install
- uses: ./.github/actions/maven-build
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,7 @@ venv/
# Docusaurus website
website/.docusaurus
website/build
website/node_modules
website/node_modules

# CVE scan reports
/reports/
61 changes: 30 additions & 31 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,64 @@
# _Event Model - Qualification Functions - Enhancements for the Contract Formation qualification function_

_Background_

The current Contract Formation qualification function does not allow the inclusion of the inception premium. The latter can be transferred as part of the trade execution. This change allows a transfer instruction to be part of the representation of the business event.

# _Infrastructure - Dependency Update_

_What is being released?_

The logical expression for the `Qualify_ContractFormation` function is enhanced to allow for the presence of a transfer instruction.

This release updates the rune dependencies to version `11.24.2`. This update includes support for visualising the `Choice Type` elements in the Rosetta User Interface.

_Review directions_

In the CDM Portal, select the Textual Browser and inspect the function mentioned above.

Changes can be reviewed in PR: https://github.com/finos/common-domain-model/pull/2544
The changes can be reviewed in PR: [#3255](https://github.com/finos/common-domain-model/pull/3255)

# _Event Model - CounterpartyPositionBusinessEvent - Cardinality of the After state_
# _Mapping Update - InterestRateForwardDebtPriceMappingProcessor updated to handle 'Percentage' quoteUnits_

_Background_

Following the release of counterparty position in the Common Domain Model, a modelling update is required. The cardinality of the attribute `after` of type `CounterpartyPositionBusinessEvent` has been relaxed to unbounded list `(0..*)`. This change will support the cases when multiple `after` position states are generated as a result of a _partial option exercise_ event being applied to the position.

The price of bond forwards is captured as a monetary value whereas it should be a decimal/percentage. Even if the value in FpML was 'Percentage', the CDM representation value did not accurately represent this, causing misinterpretations.

_What is being released?_

- The cardinality of the `after` position state within `CounterpartyPositionBusinessEvent`is relaxed to unbounded list.

_Data types_
- An update to the **InterestRateForwardDebtPriceMappingProcessor** code to fix the described issue. This change, would correct the interpretation by dividing the current monetary value by 100, when the *quoteUnits* corresponds to the XML value '*Percentage*'.
- The **bond-fwd-generic-ex01.xml** and **bond-fwd-generic-ex02.xml** samples have been updated as the files were using the value 'Percent' but the correct value according to the enum should be 'Percentage'

- `after` attribute of type `CounterpartyPositionState` updated to multiple cardinality.

_Review directions_

In the CDM Portal, select the Textual Browser and inspect each of the changes listed above.
In Rosetta, select the Textual Browser and inspect each of the changes identified above.

The changes can be reviewed in PR: [#3244](https://github.com/finos/common-domain-model/pull/3244)

Changes can be reviewed in PR: https://github.com/finos/common-domain-model/pull/2539
# _CDM Model - CapacityUnit Enum_

# *Event / Product Model - FpML 5.13 Schema*
_Background_
In has been seen that in the ExternalUnitOfMeasure1Code from the 2Q2024 ISO External CodeSets v1, the unity Joule is supported in the Enum. However, in CDM this is not the case, as it does not appear anywhere in the CapacityUnitEnum. Therefore, the Joule unit of measure will be added to the CapacityUnitEnum for completeness and to align with 2Q2024 ISO External CodeSets v1, for versions 5 and 6 of CDM.

_What is being released?_

This release updates the FpML schema used for FpML to CDM ingestion. The version has been updated from `5.13 Second Working Draft` to `5.13 Third Working Draft`. For further details, visit https://www.fpml.org/spec/fpml-5-13-3-wd-3/.
- Updated `CapacityUnitEnum` in cdm.base.math

_Enumerations_

_Review Directions_
- Updated `CapacityUnitEnum` by adding 'J' to support Joule unit

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).
The changes can be reviewed in PR: [#3197](https://github.com/finos/common-domain-model/pull/3197)

# *Infrastructure - Dependency Update*
# _Infrastructure - Dependency Update_

_What is being released?_

This release updates the `rosetta-dsl` dependency.
This release updates the rune dependencies.

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.
- DSL 9.22.0: handle null for `min` and `max` operations. For further details see DSL release notes: https://github.com/finos/rune-dsl/releases/tag/9.22.0
- FpML Coding Scheme `11.25.1`: support for latest version (v2.20).

_Review directions_

Test expectations remain the same.
In Rosetta, select the Textual Browser and inspect changes due to the FpML code scheme update:
- `FloatingRateIndexEnum` has values added:
- `EUR_EuroSTR_ICE_Swap_Rate`
- `IDR_INDONIA`
- `IDR_INDONIA_OIS_Compound`
- `PHP_ORR`
- `USD_SOFR_ICE_Swap_Rate_Spreads`

The changes can be reviewed in PR [#2533](https://github.com/finos/common-domain-model/pull/2533).
The changes can be reviewed in PR: [#3260](https://github.com/finos/common-domain-model/pull/3260)
Empty file added cdm-python/test/__init__.py
Empty file.
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
import pytest
'''testing cardinality enforcement'''
import datetime
import pytest
from cdm.base.datetime.DateList import DateList
from rosetta.runtime.utils import ConditionViolationError


def test_1_many_fail():
'''DateList cannot be empty'''
dl = DateList(date=[])
with pytest.raises(ConditionViolationError):
dl.validate_conditions()


def test_1_many_fail_nopar():
def test_1_many_fail_empty_constructor():
'''DateList cannot be empty'''
dl = DateList()
with pytest.raises(ConditionViolationError):
dl.validate_conditions()


def test_1_many_pass():
'''Valid DateList'''
dl = DateList(date=[datetime.date(2020, 1, 1)])
dl.validate_conditions()


if __name__ == "__main__":
print("first one")
test_1_many_pass()
print("second one")
test_1_many_fail()
print("third one")
test_1_many_fail_nopar()


# EOF
print("test_1_many_pass")
test_1_many_pass()
print("test_1_many_fail")
test_1_many_fail()
print("test_1_many_fail_empty_constructor")
test_1_many_fail_empty_constructor()


# EOF
Original file line number Diff line number Diff line change
@@ -1,40 +1,50 @@
'''Full attribute validation - pydantic and constraints'''
import pytest
from pydantic import ValidationError
from rosetta.runtime.utils import ConditionViolationError
from cdm.base.math.NonNegativeQuantity import NonNegativeQuantity
from cdm.base.math.UnitType import UnitType
from cdm.base.datetime.Frequency import Frequency
from cdm.base.datetime.PeriodExtendedEnum import PeriodExtendedEnum

'''
def test_recursive_conds():
unit = UnitType(currency='EUR')
mq = NonNegativeQuantity(value=10, unit=unit)
mq.validate_model()

'''

def test_recursive_conds_base_fail():
def test_recursive_conditions_base_fail():
'''condition_0_AmountOnlyExists violation'''
unit = UnitType(currency='EUR')
mq = NonNegativeQuantity(unit=unit)
with pytest.raises(ConditionViolationError):
mq.validate_model()

def test_recursive_conds_direct_fail():

def test_recursive_conditions_direct_fail():
'''Negative quantity condition violation'''
unit = UnitType(currency='EUR')
mq = NonNegativeQuantity(value=-10, unit=unit)
with pytest.raises(ConditionViolationError):
mq.validate_model()


def test_attrib_validity():
def test_bad_attrib_validation():
'''Invalid attribute assigned'''
unit = UnitType(currency='EUR')
mq = NonNegativeQuantity(value=10, unit=unit)
mq.frequency = 'Blah'
with pytest.raises(ValidationError):
mq.validate_model()


def test_correct_attrib_validation():
'''Valid attribute assigned'''
unit = UnitType(currency='EUR')
mq = NonNegativeQuantity(value=10, unit=unit)
mq.frequency = Frequency(periodMultiplier=1, period=PeriodExtendedEnum.M)
mq.validate_model()


if __name__ == "__main__":
test_recursive_conds_base_fail()
test_recursive_conds_direct_fail()
test_attrib_validity()
test_recursive_conditions_base_fail()
test_recursive_conditions_direct_fail()
test_bad_attrib_validation()
test_correct_attrib_validation()

# EOF
Loading