Migrate to 5.3.0
Upgrading from version 5.2.0 - see Atoti Market Risk 5.3 Release Notes.- Atoti Market Risk uses Atoti Server 6.0.9 and Atoti UI 5.1.x. For new features and fixes included in these releases, please see the Atoti UI documentation and Atoti UI Migration Notes, and the release notes for Atoti Server.
Headline announcement
- Java 17 upgrade : The Atoti Market Risk is now compatible with, and requires, Java 17. For more details, see Java 17 upgrade
- Spring Security upgrade : We have upgraded Spring Security to version 5.8.7 to resolve vulnerabilities and prepare for the upgrade to Spring Security 6.0 (via Spring Boot 3).
- Atoti Server upgrade : The Atoti Market Risk has been upgraded to Atoti Server 6.0.9.
- Solutions Tools BOM upgrade : The Solutions Tools BOM dependency has been upgraded to 2.0-AS6.0. All included tools are compatible with, and require Java 17.
- Merged unfiltered pre-aggregated sensitivity measures: Unfiltered, pre-aggregated technical sensitivity measures (e.g.
Delta.Native.Vector.SUM.Technical,Gamma.Ladder.Native.Vector.SUM.Technical) are no longer split by sensitivity type. Generic replacement measures are provided:Sensitivities.Native.SUM.Technical/Sensitivities.Native.Vector.SUM.Technical,Sensitivities.Ladder.Native.Vector.SUM.Technical. - Defined stores against the GLOBAL schema: All stores in the application are now defined against the
GLOBALschema. TheAScalarDataAwareSchemafunctionality is now achieved through conditionally adding the correct store given the application run mode. - Store and reference configuration classes are appropriately named: Store
@Configurationclasses are now named*StoreConfigand reference@Configurationclasses are now named*ReferenceConfig. - Removed ActiveMonitor module and dependency: The
mr-activemonitormodule is no longer part of the MR modules, and the associated dependencies have been removed. - Refactored Sensitivities testing framework: Several improvements to the Sensitivities testing framework have been included, based on feedback.
- Cleaned up dimension configuration:
@Configurationclasses containing multiple dimension beans have been split up. Common static methods used in multiple similar dimensions are now available in standalone classes. - Migration to ConfigurationProperties: The majority of MR properties have been migrated to Spring @ConfigurationProperties classes and the properties files have been consolidated.
- Simplified market data API: A preview version of a market data API has been introduced. It covers several features of the current market data API, while reducing complexity. The implementation and configuration classes of the current market data API have been marked as deprecated. For details, see Market Data APIs.
Breaking changes
-
Upgrades
- The MR 5.3.0 release is now compatible with, and requires Java 17.
- The Solutions Tools BOM dependency has been upgraded to 2.0-AS6.0. All included tools are compatible with, and require Java 17.
- The Spring Security configuration has been upgraded to version 5.8.7, for future compatibility with Spring 6.0. Customizations built on previous versions will need to be migrated.
-
ConfigurationProperties
- Due to the introduction of ConfigurationProperties, the names of almost every property used in Atoti Market Risk have changed.
- A number of unused properties have been removed from properties files and have not been migrated to ConfigurationProperties.
- A number of properties have been moved to the application.yaml file from other properties files. We will generally prefer to use the application.yaml file because IDEs tend to offer auto-completion and documentation features for this file.
- A number of property files that have been removed are no longer imported into the application.
- Static constants that referred to property names have been removed.
- The most complex properties have been deconstructed to provide a cleaner interface, so the way those properties are defined has changed.
- Many classes set fields to property values by using the Spring
@Valueannotation, directly on the field or on a constructor parameter. For all those properties that are now located in ConfigurationProperties classes, these@Valueannotations have been replaced by the relevant ConfigurationProperties class. - Significant changes have been made to the measure parameter classes, which aggregate and provide access to property values.
- The keys used to set properties on a number of post-processors have changed, as have the corresponding constants.
- The static factory methods for a number of post-processors have changed.
- Removed autowired Environment attributes from classes where this is no longer required.
- Removed the ISpringEnvAware interface.
- Removed the
getCalculationMethodmethod on theCommonPostProcessorUtilsclass. - Removed
getReferences/getSuffix/getFoldermethods on theATaylorFactory/AVaRESFactoryclasses. - The
getFormulaInputmethod on theIInputSelectorinterface now returns a SensitivityInput type instead of a String. - The
copyFilesToWhatifand thecreateBranchmethods on theFileUploadWhatIfServiceclass, and thecreateBranchmethod on theFileUploadWhatIfRestfulServiceclass now expect Paths as input instead of Strings.
-
Misc
- All the dimensions, hierarchies, and level static names are now grouped in the file
DimensionConstantsConfig, the dimensions constants are suffixed with_DIMENSION, the hierarchies are suffixed with_HIERARCHY, and the levels with_LEVEL. - The
SensiAggregatedCubeExport,SensiScalarAggregatedCubeExportandSensiSummaryExportDEE templates have been updated. - The
SourceandInputTypecolumns have been removed from the default Summary Cube input files. - The
ATenorAwareSchemaclass has been moved to themr-common-configmodule, and its package has been changed accordingly. - The improvements to the Sensitivities testing framework have resulted in several changed classes.
- All the dimensions, hierarchies, and level static names are now grouped in the file
Input file formats
TheSource and InputType columns have been removed from the default Summary Cube input files (below). These columns are required for Sign-Off enabled applications and you should continue to include them if you have Sign-Off enabled. However, by default, Sign-Off is disabled, so they have been removed from the default reference files in src/main/resources/data. In this same directory you will still find the old files, which you can use instead. These are named in the format Sensitivity Signoff Cube....
Datastores
Removed
The following fields have been removed from the stores, but only where Sign-Off is disabled (configuration.sign-off.enabled=false). These fields are only required for Sign-Off. In a Sign-Off enabled application they are still present.
Cube schema
Removed
The following hierarchy has been removed from the Summary Cubes, but only where Sign-Off is disabled (configuration.sign-off.enabled=false). This hierarchy is only required for Sign-Off. In a Sign-Off enabled application, it is still present.
Measures
Added
Merging pre-aggregated sensitivity measures
Configuration classes
Files added
Dimensions configuration
Store configuration
All store and reference@Configuration classes are now appropriately named.
Application configuration
Changes to configuration classes
Migrated to ConfigurationProperties classes
The majority of the remaining properties have been migrated to ConfigurationProperties classes and removed from the properties files. ConfigurationProperties enforce hierarchical naming for properties that are grouped in the same class. As a result, most of the properties in MR have been renamed. We have taken this opportunity to apply a few semantic rules to property names:- each MR property is now prefixed with
mr.. - where a property is used in relation to another tool, that tool is included in the prefix, e.g.
mr.sign-off.date-hierarchiesormr.whatif.file-upload. - where a property is solely used in a module or predominantly relates to a module, that is indicated in the prefix, e.g.
mr.sensi.agg-cache, ormr.sign-off.sensi.levels.
bucketing.days.month is now mr.bucketing.days.month.
In other cases, we have deconstructed the more complex properties to provide a cleaner interface.
In simple cases we have taken properties where the value is a string containing a comma-separated list and converted it to a property of type list. For example, you may have previously used mr.bucketing.sets.maturities=DEFAULT,REDUCED, whereas you would now use:
in yaml format:
- properties in the
greek-based-pl-formula-rules.propertiesprefixed withformula.rulehave been deconstructed. Previously, each of these properties contained a sensitivity type and a risk class in the name, and the value was a comma-separated list of rule components, i.e.formula.rule.<sensi_name>.<risk_class>=<type>,<shift>.... Now, the components have been separated into distinct properties. Default properties have been provided for each of the previously defined rules and custom rules can be provided for a new risk class on an existing sensitivity, or a new sensitivity and risk class. This would appear as follows:
- properties named
(maturities|moneyness|tenors).fact.levels.*had values that were maps of sensitivity types to lists of levels, for instance,maturities.fact.levels.labels=Vega::Maturity@Maturities@Risk,Vanna::Maturity@Maturities@Risk,Volga::Maturity@Maturities@Risk. Each sensitivity type that was previously defined is now a separate property and the value is a list ofLevelIdentifiers. Lists can also be provided for custom sensitivity types. For example:
- the
sign-off.extraction.templatesproperty contained a similar map of cubes to a list of filenames, for instance,DEFAULT:CubeAdjustmentExport,FXRateExport,BookParentChildExport;VaR-ES Cube:VaRESCubeExport,VaRESAggCubeExport,VaRESCubeMetricExport,VaRSummaryExport;VaR-ES Cube|VaR:VaRESCubeMetricVaROnlyExport;Sensitivity Cube:SensiCubeExport,SensiAggCubeExport,SensiCubeMetricExport;PLCube:PLCubeExport,PLAggCubeExport,PnLSummaryExport. This property is now a map type with the cube name as the key and a strongly-typed ExportFilenamesMdxTemplate class as the value. For example:
- for properties prefixed with
formula.input,formula.order, orsensi.type, you could configure custom sensitivity types by appending the type to the property prefix, for exampleformula.input.my-new-type. These properties have now been grouped under themr.sensi.typesprefix. To add new sensitivity types, you now add custom to the prefix:mr.sensi.types.custom.my-new-type.(input|order|regex).
Unchanged properties
Atoti Market Risk includes configuration for Atoti Data Connectors and Atoti Sign-Off. Neither of these have been migrated to ConfigurationProperties and so properties for these continue to be externalized in properties files (dee.export.properties,azureCredentials.properties and application.yaml). Where these properties are accessed in the code, the Spring @Value annotation is used.
ConfigurationProperties classes
A number of new ConfigurationProperties classes have been created. These are all public, however, they are final and all fields are immutable. Where the class implements an interface, we would suggest using this in your application. The classes are structured to provide the best API for setting properties. For example, by using inner classes for nested properties. The interfaces abstract this implementation to provide simplified access for properties, often in a way that is consistent with the previous format of the property.Java 17 upgrade
The Solution is now built and intended to be run within a Java 17 JVM. Some functionality in the full application and in the regressions tests requires deep reflection access to Java packages. To enable access, please use the following JVM parameters, either through the command line or maven surefire/failsafe configuration.The Solution will not work in a Java 11 JVM.
Other changes
Spring Security upgrade
We have upgraded to Spring Security 5.8.7. To do so, we override the version of Spring Security in Spring Boot by importing thecommon-dependencies-bom version
1.2.0 into the parent pom file. The common-dependencies-bom overrides the Spring Security version using Spring’s migration guide.
You will eventually need to migrate your own custom security configuration(s) in preparation for
Spring Security 6.0. We have upgraded our out-of-the-box security configurations to help in this migration.
We recommend using your own custom security configuration(s) and referring to the out-of-the-box security configuration
provided only as a sample.
Stop Using WebSecurityConfigurerAdapter
We have replaced instances of WebSecurityConfigurerAdapter with SecurityFilterChain beans.
Use the new requestMatchers methods
In Authorize Http Requests, we have replaced invocations of http.authorizeHttpRequests((authz) -> authz.antMatchers(...)) with http.authorizeHttpRequests((authz) -> authz.requestMatchers(...)).
Use the new securityMatchers methods
We have replaced invocations ofhttp.antMatchers(...) with http.securityMatchers(...).
As an example of the previous changes, the configuration for accessing the endpoint which exposes the JWT token changed from:
Hierarchy definitions
All the dimensions, hierarchies, and level static names are now grouped in the fileDimensionConstantsConfig, the dimensions are suffixed with _DIMENSION,
the hierarchies are suffixed with _HIERARCHY, and the levels with _LEVEL.
Export templates
TheSensiAggregatedCubeExport, SensiScalarAggregatedCubeExport and SensiSummaryExport DEE templates have been updated to use Sensitivities.Native.SUM.Technical, Sensitivities.Native.Vector.SUM.Technical, and Sensitivities.Ladder.Native.Vector.SUM.Technical as appropriate.
ActiveMonitor removal
Sensitivity testing improvements
TheSensiMeasureTestConfig class is no longer an abstract base class for tests. A SensitivityMeasureTestBase class is provided as a replacement, with more Atoti Server components exposed as Spring Beans.
For usage details, see Testing.
Sign-off REST service
In the class SignOffRestService, the initiate(…) method has been updated following changes in the common library API.Market Data APIs
Some code changes have been made for the new Market Data API:- Classes have been moved from the
mr-sensi-configto themr-common-configmodule and to a different package:
- The new
TestDimensionsFilterclass has been created in themr-common-configtest package: it is an implementation of theDimensionsFilterinterface. - The following constants corresponding to fields in the newly added market data stores have been added to the
StoreFieldConstantsclass:
- The following constants corresponding to the names of the newly added market data stores have been added to the
StoreConstantsclass:
-
The
ATenorAwareSchemaclass has been changed:- It is no longer conditional on the sensitivities cube being enabled (tha annotation
@ConditionalOnSensitivityCubeEnabledhas been removed). - It has been made abstract.
- It is no longer conditional on the sensitivities cube being enabled (tha annotation
-
The following bean has been added in the
mr-applicationmodule. It can be replaced by defining a new bean, with the relevant@Qualifierand an@Primaryannotation. | Constant | Qualifier | Type | Details | | --- | --- | --- | --- | | SP_QUALIFIER__DAILY_SENSI_CONFIG_STORES | “daily-sensi-config-stores” | List| Provides the list of market data topics. |
SP_QUALIFIER__DAILY_SENSI_CONFIG_STORES has been added to the SpringConstants class.
- In the
DataLoadControllerFileConfigclass, the constants corresponding to the new market data stores have been added to switch statements. - The configuration and implementation classes for the current Market Data API have been marked as deprecated, to discourage new customizations from using them as a starting point.
Integration test changes
In themr-application-tests module, several files have been changed in the folder src/test/resources/legacy-test-data that contains input data used
for integration tests to fix errors and inconsistencies in the test input data. The changes impact some of the expected results in the folders
test-bookmarks and test-bookmarks-combined.