From c3783ab7bcc19a3b2612b9c8cdc49742100a4584 Mon Sep 17 00:00:00 2001 From: nnikolopoulos Date: Wed, 17 May 2023 14:28:46 +0200 Subject: [PATCH 1/2] Fix QueryReportVariablesSingleScenarioAsync --- ifrs17/Report/ReportConfigurationAndUtils.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ifrs17/Report/ReportConfigurationAndUtils.ipynb b/ifrs17/Report/ReportConfigurationAndUtils.ipynb index b31e0b07..c8f60f08 100644 --- a/ifrs17/Report/ReportConfigurationAndUtils.ipynb +++ b/ifrs17/Report/ReportConfigurationAndUtils.ipynb @@ -157,13 +157,14 @@ "\n", "\n await workspace.Partition.SetAsync(new { ReportingNode = args.ReportingNode, Scenario = (string)null});", "\n await workspace.Partition.SetAsync(new { ReportingNode = args.ReportingNode, Scenario = args.Scenario, Year = args.Year, Month = args.Month });", - "\n var reportVariables = await workspace.Query()", + "\n var reportVariables = (await workspace.Query()", "\n .Join(workspace.Query(),", "\n dn => dn.SystemName,", "\n iv => iv.DataNode,", "\n (dn, iv) => GetReportVariable(dn, iv, args, orderedProjectionConfigurations)", - "\n ).SelectMany(rv => rv) ", - "\n .ToArrayAsync();", + "\n ) ", + "\n .ToArrayAsync())", + "\n .SelectMany(rv => rv).ToArray();", "\n", "\n await workspace.Partition.SetAsync(null);", "\n await workspace.Partition.SetAsync(null);", From b49e430dbeee233e1395cfa847a994a7c540c284 Mon Sep 17 00:00:00 2001 From: nnikolopoulos Date: Wed, 17 May 2023 14:45:05 +0200 Subject: [PATCH 2/2] Update Initial notebook --- .../Database/MigrationAndScaffolding/Initial.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ifrs17-template/Database/MigrationAndScaffolding/Initial.ipynb b/ifrs17-template/Database/MigrationAndScaffolding/Initial.ipynb index 2d41bce1..8eeca40e 100644 --- a/ifrs17-template/Database/MigrationAndScaffolding/Initial.ipynb +++ b/ifrs17-template/Database/MigrationAndScaffolding/Initial.ipynb @@ -37,7 +37,7 @@ { "cell_type": "code", "source": [ - "[Migration(\"20230425145745_InitialTypes\")]", + "[Migration(\"20230517120004_InitialTypes\")]", "\npublic class InitialTypes : Migration", "\n{", "\n protected override void Up(MigrationBuilder migrationBuilder)", @@ -421,7 +421,8 @@ "\n SystemName = table.Column(type: \"nvarchar(16)\", maxLength: 16, nullable: false),", "\n Shift = table.Column(type: \"int\", nullable: false),", "\n TimeStep = table.Column(type: \"int\", nullable: false),", - "\n DisplayName = table.Column(type: \"nvarchar(max)\", nullable: true)", + "\n DisplayName = table.Column(type: \"nvarchar(max)\", nullable: true),", + "\n Order = table.Column(type: \"int\", nullable: false)", "\n },", "\n constraints: table =>", "\n {",