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

Dev to main #86

Merged
merged 97 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
6d7c59e
base code
dcolleoni Sep 28, 2022
1f545cd
correct broken links
dcolleoni Sep 28, 2022
2a4db13
Merge pull request #29 from Systemorph/importCeProject
dcolleoni Sep 28, 2022
fdbe77c
fixed Opening re-import
sbusato Sep 29, 2022
61d4332
Merge pull request #31 from Systemorph/OpeningImporterBug
sbusato Sep 29, 2022
6adb68e
Rename "PvBase" to "PresentValue" (#32)
nnikolopoulos Sep 30, 2022
2c0cc65
include new default spaces
sbusato Oct 5, 2022
c3c0bcb
Merge pull request #36 from Systemorph/CleanUpNotebooksSpaces
sbusato Oct 5, 2022
95c90f9
reorder global metadata using alphabetical order
sbusato Oct 6, 2022
7cb299a
Merge pull request #37 from Systemorph/ReorderGlobalMetadata
sbusato Oct 6, 2022
fc7816f
Break utils nb (#33)
dcolleoni Oct 6, 2022
9d1844a
Including FX positions to FP scope
sbusato Oct 6, 2022
ae5cbac
Merge remote-tracking branch 'origin/develop' into FXinPl
sbusato Oct 6, 2022
d171be7
FP specification nb - add FX aoc step
sbusato Oct 7, 2022
18fde56
Merge pull request #38 from Systemorph/FXinPl
dcolleoni Oct 7, 2022
2695c4e
Rename calculation type with estimate type (#34)
nnikolopoulos Oct 7, 2022
56fded2
new data node factory
Oct 8, 2022
9b77b4f
Merge branch 'develop' of https://github.com/Systemorph/IFRS17Calcula…
Oct 8, 2022
74a381b
metadata
Oct 10, 2022
10ef85f
metadata x2
Oct 10, 2022
28fd4f9
metadata x3
Oct 10, 2022
4a6c946
implement feedback
Oct 10, 2022
9ddbe58
Merge pull request #40 from Systemorph/defaultsStateParameters
amuolo Oct 10, 2022
260b872
split directories
dcolleoni Oct 10, 2022
5b072d7
fix tests + add readme + seperate overview nb
dcolleoni Oct 11, 2022
c24a558
include changes on factory
dcolleoni Oct 11, 2022
d2ad559
Merge remote-tracking branch 'origin/develop' into ExtractDataProject
dcolleoni Oct 11, 2022
4f6f4cb
Merge pull request #42 from Systemorph/ExtractDataProject
dcolleoni Oct 12, 2022
92f6876
adapt to the split
Oct 13, 2022
4f178e2
still not working properly
calderinisystemorph Oct 13, 2022
44412fa
code cleanup
calderinisystemorph Oct 13, 2022
d98b701
new file creation
calderinisystemorph Oct 13, 2022
005f28f
update packages and fix csm with bm
dcolleoni Oct 14, 2022
446edd0
Merge pull request #44 from Systemorph/UpdatePackageAndFixCsm
dcolleoni Oct 14, 2022
49a3b6f
approaching
Oct 14, 2022
bf8c098
Merge branch 'develop' of https://github.com/Systemorph/IFRS17Calcula…
Oct 14, 2022
59e5ca0
better
Oct 16, 2022
c6513da
testing ifrsvariables
calderinisystemorph Oct 17, 2022
fc000a1
Merge remote-tracking branch 'origin/develop' into Multiple_Scenario_…
calderinisystemorph Oct 17, 2022
efd06dc
implement feedback
Oct 17, 2022
886ec68
final feedback
Oct 17, 2022
7b8850b
fix
Oct 17, 2022
34a97cf
const version ce
Oct 17, 2022
9951430
Merge pull request #43 from Systemorph/defaultAocConfig
amuolo Oct 17, 2022
26970b4
testing IfrsVariables calculations
calderinisystemorph Oct 18, 2022
fa2154c
Merge remote-tracking branch 'origin/develop' into Multiple_Scenario_…
calderinisystemorph Oct 18, 2022
d304e3d
new partition added
calderinisystemorph Oct 18, 2022
ad47b3e
implementing new test
calderinisystemorph Oct 18, 2022
254a97e
test cleaned
calderinisystemorph Oct 18, 2022
016fac7
Update links (#51)
dcolleoni Oct 20, 2022
546ae04
removal arithmetics
Oct 21, 2022
c26697d
testing queries
calderinisystemorph Oct 24, 2022
5a1fc85
Merge remote-tracking branch 'origin/develop' into Multiple_Scenario_…
calderinisystemorph Oct 24, 2022
95ccbb2
Simple value test data (#54)
dtrzesniak Oct 24, 2022
03c35bf
reset consts
Oct 25, 2022
b8d6e88
implement feedback part 1
Oct 26, 2022
3a07d9a
Overview texts (#53)
UMueller1 Oct 26, 2022
2312bcb
finalized + hot fixes
Oct 26, 2022
22bd497
ReportGridOptions
dcolleoni Oct 26, 2022
193c066
checking multiple import of the same scenario
calderinisystemorph Oct 27, 2022
54c5327
Merge branch 'develop' of https://github.com/Systemorph/IFRS17Calcula…
Oct 27, 2022
5a143ff
final fixes and feedback implementations
Oct 27, 2022
a6ee353
Merge pull request #55 from Systemorph/removalArithmetic
amuolo Oct 27, 2022
4ca1bd3
dynamic problems solved
calderinisystemorph Oct 27, 2022
1a0647b
Merge remote-tracking branch 'origin/develop' into Multiple_Scenario_…
calderinisystemorph Oct 27, 2022
dfbc6b9
fixing aoctype for scenario
calderinisystemorph Oct 31, 2022
a864f0f
Interactive reports (#58)
dcolleoni Oct 31, 2022
b78b36a
test for actualsr
calderinisystemorph Nov 2, 2022
0e880bf
Merge remote-tracking branch 'origin/develop' into Multiple_Scenario_…
calderinisystemorph Nov 2, 2022
e614d1a
code cleanup
calderinisystemorph Nov 2, 2022
ca009df
New format design in importers (#62)
nnikolopoulos Nov 2, 2022
0c0821c
forward
Nov 3, 2022
7a4f464
Package update (#65)
dcolleoni Nov 3, 2022
dcac721
cleanups
Nov 4, 2022
07b3244
Merge branch 'develop' of https://github.com/Systemorph/IFRS17Calcula…
Nov 4, 2022
d62dc98
Fixing AA and OA opening and benchmark simple importer (#57)
dtrzesniak Nov 4, 2022
372dcb6
much better
Nov 5, 2022
091b4df
Merge branch 'develop' of https://github.com/Systemorph/IFRS17Calcula…
Nov 5, 2022
eb04b4d
implemented
Nov 7, 2022
10dcfc8
Aggregate by in report variable (#67)
sbusato Nov 7, 2022
ab1ddaa
Clean up doc (#71)
dcolleoni Nov 7, 2022
fae9b83
implement feedback
Nov 7, 2022
21d1b45
Merge pull request #72 from Systemorph/NoMorePartitions
amuolo Nov 7, 2022
7f507ef
Merge branch 'develop' of https://github.com/Systemorph/IFRS17Calcula…
Nov 7, 2022
8bddd27
cleanups
Nov 7, 2022
3cb6ee8
cleanups x2
Nov 7, 2022
bf0c9c7
fixes needed after merge
Nov 8, 2022
fd7cfbf
all tests are green
Nov 8, 2022
fa36959
implement feedback
Nov 8, 2022
98885ad
Doc cleanup2 (#76)
dcolleoni Nov 9, 2022
ace44c8
implement all feedbacks
Nov 9, 2022
85a6761
Merge pull request #45 from Systemorph/Multiple_Scenario_Implementation
amuolo Nov 9, 2022
2cc046d
packages + withGridOption + await HierarchyCache init (#83)
dcolleoni Nov 14, 2022
c1c4883
Change in ReportMutableScopes NB
nnikolopoulos Nov 14, 2022
fe5467d
Merge remote-tracking branch 'origin/main' into DevToMain
nnikolopoulos Nov 14, 2022
f7a3696
Change in ReportMutableScopes NB (#85)
nnikolopoulos Nov 14, 2022
ba4a8d5
Merge branch 'develop' into DevToMain
nnikolopoulos Nov 14, 2022
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
660 changes: 277 additions & 383 deletions Constants/Consts.ipynb

Large diffs are not rendered by default.

458 changes: 191 additions & 267 deletions Constants/Enums.ipynb

Large diffs are not rendered by default.

364 changes: 167 additions & 197 deletions Constants/Validations.ipynb

Large diffs are not rendered by default.

3,890 changes: 1,753 additions & 2,137 deletions DataModel/DataStructure.ipynb

Large diffs are not rendered by default.

218 changes: 90 additions & 128 deletions Database/Configure.ipynb
Original file line number Diff line number Diff line change
@@ -1,131 +1,93 @@
{
"metadata": {
"kernelspec": {
"display_name": "Formula Framework",
"language": "C#",
"name": "C#"
"metadata": {
"language_info": {
"file_extension": ".cs",
"mimetype": "text/plain",
"name": "C#"
},
"authors": [],
"kernelspec": {
"display_name": "Formula Framework",
"language": "C#",
"name": "C#"
},
"toc-autonumbering": "True",
"toc-showcode": "False",
"toc-showmarkdowntxt": "False"
},
"toc-autonumbering": "True",
"toc-showcode": "False",
"toc-showmarkdowntxt": "False",
"authors": [],
"language_info": {
"file_extension": ".cs",
"mimetype": "text/plain",
"name": "C#"
}
},
"nbformat": 4,
"nbformat_minor": 5,
"cells": [
{
"id": "vWKQtrDv20CeZFovAj82Vw",
"cell_type": "markdown",
"source": [
"<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> DataSource Configuration </span> </p>"
],
"metadata": {}
},
{
"id": "ekOMREP2YkKF0vgtOn6cyQ",
"cell_type": "code",
"source": [
"#!import \"../DataModel/DataStructure\""
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "eEI7AS2fc0-CFjAR_WzdHg",
"cell_type": "code",
"source": [
"#!import \"PersonalConnection\""
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "ZoHg5nndvEWdxnUy6nU0aQ",
"cell_type": "code",
"source": [
"using System.Reflection;"
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "V3sPPe7bkEOIAjZHtM5oTw",
"cell_type": "markdown",
"source": [
"# Database Configure"
],
"metadata": {}
},
{
"id": "ZxIo5q84i02LBlbq4AQnNA",
"cell_type": "code",
"source": [
"var allTypes = AppDomain.CurrentDomain.GetAssemblies().SelectMany(a => a.GetTypes())",
"\n .Where(t => (t.IsAssignableTo(typeof(IKeyed)) || t.IsAssignableTo(typeof(KeyedDimension)))",
"\n && !t.IsInterface",
"\n && !t.IsAbstract",
"\n ).ToArray();"
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "Wi93Z_KSukSEMiLoOfsKXA",
"cell_type": "code",
"source": [
"await DataSource.Configure().UseMsSql(opt => opt.WithConnectionString(connectionStringMsSql)",
"\n .WithTypes(allTypes)) .ConnectAsync();"
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "4jSr3apQzEm6bXs7ot9uJQ",
"cell_type": "code",
"source": [
"await DataSource.CommitAsync();"
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "SUiuO25f-0S6Uv5at0MehA",
"cell_type": "markdown",
"source": [
"# Reset Workspace"
],
"metadata": {}
},
{
"id": "T0pNd11nrkuDwN6S0YgItg",
"cell_type": "code",
"source": [
"Workspace.Reset(x => x.ResetInitializationRules());"
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "sAYMeiwmiUWC-T3QYXi7aw",
"cell_type": "code",
"source": [
""
],
"metadata": {},
"execution_count": 1,
"outputs": []
}
]
"nbformat": 4,
"nbformat_minor": 5,
"cells": [
{
"cell_type": "markdown",
"source": [
"<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> DataSource Configuration </span> </p>"
]
},
{
"cell_type": "code",
"source": [
"#!import \"../DataModel/DataStructure\""
]
},
{
"cell_type": "code",
"source": [
"#!import \"PersonalConnection\""
]
},
{
"cell_type": "code",
"source": [
"using System.Reflection;"
]
},
{
"cell_type": "markdown",
"source": [
"# Database Configure"
]
},
{
"cell_type": "code",
"source": [
"var allTypes = AppDomain.CurrentDomain.GetAssemblies().SelectMany(a => a.GetTypes())",
"\n .Where(t => (t.IsAssignableTo(typeof(IKeyed)) || t.IsAssignableTo(typeof(KeyedDimension)))",
"\n && !t.IsInterface",
"\n && !t.IsAbstract",
"\n ).ToArray();"
]
},
{
"cell_type": "code",
"source": [
"await DataSource.Configure().UseMsSql(opt => opt.WithConnectionString(connectionStringMsSql)",
"\n .WithTypes(allTypes)) .ConnectAsync();"
]
},
{
"cell_type": "code",
"source": [
"await DataSource.CommitAsync();"
]
},
{
"cell_type": "markdown",
"source": [
"# Reset Workspace"
]
},
{
"cell_type": "code",
"source": [
"Workspace.Reset(x => x.ResetInitializationRules());"
]
},
{
"cell_type": "code",
"source": [
""
]
}
]
}
144 changes: 60 additions & 84 deletions Database/Schema Delete.ipynb
Original file line number Diff line number Diff line change
@@ -1,87 +1,63 @@
{
"metadata": {
"kernelspec": {
"display_name": "Formula Framework",
"language": "C#",
"name": "C#"
"metadata": {
"language_info": {
"file_extension": ".cs",
"mimetype": "text/plain",
"name": "C#"
},
"authors": [],
"documentInfo": "{\r\n \"authors\": [\r\n \"Peter Kunszt\"\r\n ],\r\n \"contributors\": [],\r\n \"tags\": [\r\n \"storage\",\r\n \"database\",\r\n \"persistence\",\r\n \"dependency\"\r\n ],\r\n \"title\": \"Multiple Storages with Persistence\",\r\n \"description\": \"Demo the usage of database backend to resolve a data dependency.\",\r\n \"createdDate\": \"Jan. 2022\",\r\n \"publishedDate\": \"Jan. 2022\",\r\n \"changelog\": [\r\n {\r\n \"version\": \"1.0\",\r\n \"description\": \"Initial Notebook\"\r\n }\r\n ]\r\n }",
"kernelspec": {
"display_name": "Formula Framework",
"language": "C#",
"name": "C#"
}
},
"authors": [],
"language_info": {
"file_extension": ".cs",
"mimetype": "text/plain",
"name": "C#"
},
"documentInfo": "{\r\n \"authors\": [\r\n \"Peter Kunszt\"\r\n ],\r\n \"contributors\": [],\r\n \"tags\": [\r\n \"storage\",\r\n \"database\",\r\n \"persistence\",\r\n \"dependency\"\r\n ],\r\n \"title\": \"Multiple Storages with Persistence\",\r\n \"description\": \"Demo the usage of database backend to resolve a data dependency.\",\r\n \"createdDate\": \"Jan. 2022\",\r\n \"publishedDate\": \"Jan. 2022\",\r\n \"changelog\": [\r\n {\r\n \"version\": \"1.0\",\r\n \"description\": \"Initial Notebook\"\r\n }\r\n ]\r\n }"
},
"nbformat": 4,
"nbformat_minor": 5,
"cells": [
{
"id": "XekEwxVoCk6YtMSTaBi_6A",
"cell_type": "code",
"source": [
"#!import \"PersonalConnection\""
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "aMGWTiny-EO8ZtyaiC0M2A",
"cell_type": "code",
"source": [
"#r \"nuget:SqlConnection,1.0.4\""
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "dKBE6yQHq0CZbS4Oq7ZXag",
"cell_type": "code",
"source": [
"string[] split = connectionStringMsSql.Split(new char[] { '=', ':', ',', ';' });",
"\n",
"\nstring serverName = split[2];",
"\nstring database = split[5];",
"\nstring userID = split[9];",
"\nstring password = split[11];"
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "BBbDUGWgHUywoxk289vQ2A",
"cell_type": "code",
"source": [
"using SQLConnection;",
"\nusing System;",
"\nusing System.Data.SqlClient;"
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "S-_OArgE70qFUpEbX12H3Q",
"cell_type": "code",
"source": [
"string query = \"DECLARE @sql NVARCHAR(max)='' SELECT @sql += ' Drop table ' + QUOTENAME(TABLE_SCHEMA) + '.'+ QUOTENAME(TABLE_NAME) + '; 'FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' Exec Sp_executesql @sql\";"
],
"metadata": {},
"execution_count": 1,
"outputs": []
},
{
"id": "oeQryPr0l0uflGqNrUvmLw",
"cell_type": "code",
"source": [
"int rowAffect = SqlServer.AzureSqlConnection(serverName, database, userID, password, query);"
],
"metadata": {},
"execution_count": 1,
"outputs": []
}
]
"nbformat": 4,
"nbformat_minor": 5,
"cells": [
{
"cell_type": "code",
"source": [
"#!import \"PersonalConnection\""
]
},
{
"cell_type": "code",
"source": [
"#r \"nuget:SqlConnection,1.0.4\""
]
},
{
"cell_type": "code",
"source": [
"string[] split = connectionStringMsSql.Split(new char[] { '=', ':', ',', ';' });",
"\n",
"\nstring serverName = split[2];",
"\nstring database = split[5];",
"\nstring userID = split[9];",
"\nstring password = split[11];"
]
},
{
"cell_type": "code",
"source": [
"using SQLConnection;",
"\nusing System;",
"\nusing System.Data.SqlClient;"
]
},
{
"cell_type": "code",
"source": [
"string query = \"DECLARE @sql NVARCHAR(max)='' SELECT @sql += ' Drop table ' + QUOTENAME(TABLE_SCHEMA) + '.'+ QUOTENAME(TABLE_NAME) + '; 'FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' Exec Sp_executesql @sql\";"
]
},
{
"cell_type": "code",
"source": [
"int rowAffect = SqlServer.AzureSqlConnection(serverName, database, userID, password, query);"
]
}
]
}
Loading